新手初学tomcat问题《HTTP Status 404 - /host-manager/html》

kangwor 2011-04-30 06:59:34
HTTP Status 404 - /host-manager/html

--------------------------------------------------------------------------------

type Status report

message /host-manager/html

description The requested resource (/host-manager/html) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/7.0.11
我是新手才开始熟悉tomcat 大家帮忙看看 这是什么问题
...全文
3177 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
insert_viann 2011-08-24
  • 打赏
  • 举报
回复
二楼正解
kangwor 2011-05-01
  • 打赏
  • 举报
回复
老兄我里面没有这句话
xmlValidation="false" xmlNamespaceAware="false
什么都不能 2011-05-01
  • 打赏
  • 举报
回复
访问的地址不存在
微甜灬呼吸 2011-05-01
  • 打赏
  • 举报
回复
没这文件呗....

zysoft17 2011-05-01
  • 打赏
  • 举报
回复
要访问的不存在,可能是Tomcat没有配置对,
1、看看 %CATALINA_HOME%\conf\server.xml 文件中有没有配置虚拟目录
(%CATALINA_HOME% 为 Tomcat 的安装目录)

<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">


<Context path="/test" docBase="d:\web\test" reloadable="true" />

</Host>
红色部分是自己要手工加入的,注意大小写不能错,path是浏览器访问的目录, docBase是jsp文件的目录,一定不能错,reloadable="true"代表了当java类发生改变时,服务器会自动重载新的java类.

2、如果用myEclipse, docBase一定要是:Jsp项目路径\WebRoot
如:
<Context path="/test" docBase="d:\web\test\WebRoot" reloadable="true" />

kangwor 2011-05-01
  • 打赏
  • 举报
回复
我改了tomcat-users.xml 以后 都进不去了 密码和用户名都是对的 但是都提示
401 Unauthorized

You are not authorized to view this page. If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your installation. That file must contain the credentials to let you use this webapp.

For example, to add the manager-gui role to a user named tomcat with a password of s3cret, add the following to the config file listed above.
<role rolename="manager-gui"/>
<user username="tomcat" password="s3cret" roles="manager-gui"/>

Note that for Tomcat 7 onwards, the roles required to use the manager application were changed from the single manager role to the following four roles. You will need to assign the role(s) required for the functionality you wish to access.
•manager-gui - allows access to the HTML GUI and the status pages
•manager-script - allows access to the text interface and the status pages
•manager-jmx - allows access to the JMX proxy and the status pages
•manager-status - allows access to the status pages only

The HTML interface is protected against CSRF but the text and JMX interfaces are not. To maintain the CSRF protection:
•Users with the manager-gui role should not be granted either the manager-script or manager-jmx roles.
•If the text or jmx interfaces are accessed through a browser (e.g. for testing since these interfaces are intended for tools not humans) then the browser must be closed afterwards to terminate the session.

For more information - please see the Manager App HOW-TO.

81,117

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧