File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes tomcat6-admin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat6-admin" Watch "tomcat6-admin" New topic


Pavan bhagavatula

Joined: Oct 22, 2011
Posts: 3
Just installed Tomcat 6 on Ubuntu OS and when i try to access Tomcat6-admin i got 401 error. I have update the tomcat-user.xml with role, user name and password. I am still not able to access admin console. Any help on this appreciated.

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 will contain the credentials to let you use this webapp.

You will need to add manager role to the config file listed above. For example:

<role rolename="manager"/>
<user username="tomcat" password="s3cret" roles="manager"/>
Kuldip Shetty
Ranch Hand

Joined: Jan 07, 2010
Posts: 42

The correct rolename is admin for the admin gui, manager is for tomcat manager. Also verify if you forgot to remove XML Comment markup in tomcat-users.xml file. As per your configuration, manager role is configured and you are trying to access admin pages.
I agree. Here's the link:
subject: tomcat6-admin
It's not a secret anymore!