Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Tomcat and the fly likes Tomcat Administration ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Administration ???" Watch "Tomcat Administration ???" New topic

Tomcat Administration ???

Khushi Panesar

Joined: May 26, 2004
Posts: 10
Hi Everyone
I have just installed Tomcat5.0.25, so far it is working fine, have just tested it using examples only. Now my question is that on http://localhost page it says that ..................
" For security reasons, using the administration webapp is restricted to users with role "admin". The manager webapp is restricted to users with role "manager". Users are defined in $CATALINA_HOME/conf/tomcat-users.xml. "
What actually is this i.e administration? I tried to follow the link Tomcat Administration, it asks for login/password. I refered users.xml, and tried to enter tomcat/tomcat. However the request was denied. Was just trying it, don't have any idea what it is for and how to use it.
Thanks a lot in advance.

Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

The Manager lets you stop, start and deploy individual web apps. Generally speaking, the Manager is for 'self-contained' or 'previously deployed' applications.

The Administration console is used to perform changes to the configuration of Tomcat itself. Basically, it is a GUI/web-app editing system for server.xml.

as for tomcat/tomcat -> did you edit the tomcat-users.xml file? (You need to). Assign the 'admin' and 'manager' roles to that user.
<user username="tomcat" password="tomcat" roles="admin,manager"/>
Khushi Panesar

Joined: May 26, 2004
Posts: 10
Hi Mike Curwen , Thanks a lot. Seems it will help me clear my doubts.

I agree. Here's the link:
subject: Tomcat Administration ???
It's not a secret anymore!