• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Help required with tomcat-users.xml file

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 55
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can try with this entry:

 
Alexander King
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!