I keep getting prompted for a user name and password when I try to access the following URL:
http://localhost:8080/manager/html
App Server: Tomcat 6.0.35
Browser: Firefox 3.6.18
OS: Centos 5.5
Content of tomcat-users.xml:
<tomcat-users>
<role rolename="manager"/>
<user username="tomcat" password="tomcat" roles="manager"/>
</tomcat-users>
I started Tomcat with: sudo ./startup.sh
I stopped Tomcat with: sudo ./shutdown.sh
The roles have changed with Apache Tomcat 6 as per the link to the documentation below. http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Configuring_Manager_Application_Access
There are four roles defined by the manager application:
manager-gui - Allows access to the html interface
manager-script - Allows access to the plain text interface
manager-jmx - Allows access to the JMX proxy interface
manager-status - Allows access to the read-only status pages
For your problem, try this:
<role rolename="manager"/>
<role rolename="manager-gui"/>
<role rolename="admin"/>
<user username="user" password="password" roles="admin,manager,manager-gui"/>
Login with user
and password
.
It works 100%.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With