File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

cannot login in tomcat adim

rahul soni
Greenhorn

Joined: Aug 22, 2005
Posts: 24
hi
I am using tomcat-5.0.28 on linux9.0 working well.
I start tomcat server with http://localhost:8080 or 127.0.0.1:8080 to login but when i using http://localhost:8080/admin or 127.0.0.1:8080/admin
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'?>
<tomcat-users>
<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"/>
</tomcat-users>

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

Joined: Mar 22, 2000
Posts: 12781
    
    5
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.
Bill
Rich Walton
Greenhorn

Joined: Sep 16, 2005
Posts: 4
so you really need to create a role in your tomcat-users.xml called admin
eg.
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: http://aspose.com/file-tools
 
subject: cannot login in tomcat adim