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

Help required with tomcat-users.xml file

Alexander King

Joined: Aug 11, 2011
Posts: 3

I have just installed apache tomcat 7.0.19 on a mac OSX, and am unable to gain access to the manager App, or the Server status pages.

The tomcat-users.xml file is:
<?xml version='1.0' encoding='utf-8'?>
<role rolename="manager-gui"/>
<user username="tomcat" password="password" roles="manager-gui" />

I spent pretty much all day yesterday searching around the internet, and I can't understand why I'm having a problem. Sorry if this post already exists, I searched for it but with I had no luck

If it's of any use, I looked through the /logs/catalina.out log, and found this error:
Aug 11, 2011 8:55:42 AM org.apache.catalina.realm.LockOutRealm authenticate
WARNING: An attempt was made to authenticate the locked user "tomcat"

Thankyou for your help, much appreciated!
N Sahni
Ranch Hand

Joined: Jul 07, 2011
Posts: 55


You can try with this entry:

Thanks and Regards,
Nilesh Sahni | |
Alexander King

Joined: Aug 11, 2011
Posts: 3
Yes! Thankyou that did the trick!

I read in the documentation for tomcat though that it's inadvisable to create a user who has manager-gui, as well as manager-script, and manager-jmx, because this could compromise the security?

Having said that, this set up is just for experimentation, and learning the platform, so security isn't a major issue at the moment

Thanks again for your help!
I agree. Here's the link:
subject: Help required with tomcat-users.xml file
It's not a secret anymore!