my dog learned polymorphism
The moose likes Tomcat and the fly likes cannot login in tomcat adim Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "cannot login in tomcat adim " Watch "cannot login in tomcat adim " New topic

cannot login in tomcat adim

rahul soni

Joined: Aug 22, 2005
Posts: 24
I am using tomcat-5.0.28 on linux9.0 working well.
I start tomcat server with http://localhost:8080 or to login but when i using http://localhost:8080/admin or
index page appears and asking enter username and password after the sabbmition it given error message

I downloaded tomcat from jakarta side "jakarta-tomcat-5.0.28.tar.gz"
taken the refranace from wrox publication book ISBN 81-265-0583-4 Page no 14

I have the following tomcat_user.xml file

<?xml version='1.0' encoding='utf-8'?>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>

please help me how to login this tomcat 5.0
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
Your installation of Tomcat comes with complete documentation on how to activate the Administration and Management applications - you should get familiar with the contents of /tomcat-docs/
For security reasons, the default tomcat-users.xml file does not have entries for the admin and manager roles - you have to supply these.
Rich Walton

Joined: Sep 16, 2005
Posts: 4
so you really need to create a role in your tomcat-users.xml called admin
and then a user with admin role eg.

and the same thing for the manager role

and then you can either create a new manager user or just add manager role to the admin user eg.

but Bill is right before you go any firther do some reading up on Tomcat and how to configure it etc. you dont want to open your web server to problems :-)
I agree. Here's the link:
subject: cannot login in tomcat adim
It's not a secret anymore!