看看tomcat的日志呢?不是404就是你的映射没配置对,然而已经有配置了。
404 => #服务器找不到请求的网页。
jeecp 这个工程在webapps里面么 或者要从 tomcat配置文件server.xml配置的目录对不对。从这二方面查找。学习linux网页链接
查看一下日志,日志有详细的报错。
在你的hostA里manager的web.xml
<!-- Define a Security Constraint on this Application -->
<security-constraint>
<web-resource-collection>
<web-resource-name>Entire Application</web-resource-name>
<url-pattern>/manager/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>your-role</role-name>
</auth-constraint>
</security-constraint>
<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Application</realm-name>
</login-config>
<!-- Security roles referenced by this web application -->
<security-role>
<description>
The role that is required to log in to the Manager Application
</description>
<role-name>your-role</role-name>
</security-role>
把your-role替换成你的tomcat-users.xml定义的用户就行了...