File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

tomcat6-admin

Pavan bhagavatula
Greenhorn

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: 39

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: http://aspose.com/file-tools
 
subject: tomcat6-admin
 
Similar Threads
Tomcat Manager app returns a 403
Tomcat 6.0.30: cannot deploy application: access denied.
What's the initial username/password for Tomcat administration?
changed the config file but still not working
need help with declarative security