I cannot access tomcat admin console?
I am try to build an app with the integration of JPA and Struts. to do it need to access tomcat manager. But when I access URL http://localhost:8080/manager/html
it gives 404 Error to me.
My tomcat-users.xml
<?xml version='1.0' encoding='cp1252'?>
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<!--<user name="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status" />-->
<user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status"/>
</tomcat-users>
Thanks in Advance.
Your tomcat-users.xml
looks good.
Make sure you have the manager/
application inside your $CATALINA_BASE/webapps/
You have to install tomcat-admin package: sudo apt-get install tomcat8-admin
(for version 8)
I am using Eclipse. I had to copy the manager/
folder from C:Program Filesapache-tomcat-8.5.20webapps
to my Eclipse workspace ( ~workspace.metadata.pluginsorg.eclipse.wst.server.coretmp0webapps
).
Notice that the http code response status you are getting is an HTTP 404. The 404 or Not Found error message is a response code indicating that the client was able to communicate with a given server, but the server could not find what was requested.
If you have got an 403 Forbidden vs 401 Unauthorized HTTP responses then it might make a sense to review your tomcat-users.xml.
Resuming: check the manager resources and files of your server installation, some file/directory might be missing, or the path to the manager resources has been changed.
Perhaps manager app does not exist look if you the manager application is on $APACHE_HOME/server/webapps directory. on this directory you must have : docs,examples, host-manager,manager, ROOT.
链接地址: http://www.djcxy.com/p/18110.html上一篇: HTML PHP成功登录后显示用户名
下一篇: 我无法访问tomcat管理控制台?