• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

cannot login in tomcat adim

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 :-)
reply
    Bookmark Topic Watch Topic
  • New Topic