aspose file tools*
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
Author

Help required with tomcat-users.xml file

Alexander King
Greenhorn

Joined: Aug 11, 2011
Posts: 3
Hello,

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'?>
<tomcat-users>
<role rolename="manager-gui"/>
<user username="tomcat" password="password" roles="manager-gui" />
</tomcat-users>

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

Hi,

You can try with this entry:



Thanks and Regards,
Nilesh Sahni | nsahni@infocepts.com | www.infocepts.com
Alexander King
Greenhorn

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: http://aspose.com/file-tools
 
subject: Help required with tomcat-users.xml file