File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot login in tomcat adim

 
rahul soni
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13049
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic