File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Cannot login to Admin App in Tomcat 5.5.7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Cannot login to Admin App in Tomcat 5.5.7" Watch "Cannot login to Admin App in Tomcat 5.5.7" New topic

Cannot login to Admin App in Tomcat 5.5.7

R. Peeters

Joined: Mar 24, 2005
Posts: 2

i downloaded and installed the Admin App, as described in an earlier post on this forum:

When i try to login using http://localhost/admin/login.jsp, a username and password is asked.

The question is: what to fill in ?

There is a line in the ../Tomcat5.5/conf/tomcat-users.xml file that goes like:
<user username="admin" password="" roles="admin,manager"/>
This is the default setting that comes with the installation. It suggests filling in a blank as password, but that doesn't work.

Thanks in advance for answer,

Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
I haven't used the Admin package maybe twice. So, I believe the default userName/password for Admin and Manager access are "admin" and "".

What tomcat is suggesting that you do for security reasons, is determine your own user/password for either the admin or manager screens or both.

Once you have done this, I believe you must restart tomcat for the changes to take effect.
Jeffrey Spaulding
Ranch Hand

Joined: Jan 15, 2004
Posts: 149
You need to play a bit with the file


create a new user and put him in the admin group

Masoud Kalali
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

I have tomcat 5.5.7 installed and i used (first time after installing Admin JMX console) the username and password i used for tomcat manager
and it works , i suggest ou use the user/password of your tomcat manager for administration console
hope it helps

Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
R. Peeters

Joined: Mar 24, 2005
Posts: 2
Don't get me started about those stupid light bulbs.
subject: Cannot login to Admin App in Tomcat 5.5.7
Similar Threads
jsp, servlet-mapping, forward request problem
Admin tool: "Invalid direct reference to form login"
Studying HeadFirst book: cannot make authentification
Tomcat login problem
how to disable autocomplete for password