Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't access Tomcat 6 Manager app

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

like image 827
udeleng Avatar asked Jan 04 '12 12:01

udeleng


1 Answers

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%.

like image 66
Alex Nevsky Avatar answered Sep 20 '22 00:09

Alex Nevsky