Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot login into tomcat

 
Anchit Jindal
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have installed Apache Tomcat 5.5 version on Windows. But I cannot log in with the username and password I choosed while installing tomcat. What can be the problem??
Please help.
Thanks..
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you trying to access?
 
Anchit Jindal
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to upload .war file which contains my web-application.
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anchit, you haven't answered my questions. Please check Tell The Details
 
manoj r patil
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Achit

I think you are trying to access "Manager" module of Tomcat to deploy your webapp.

Have you ensured that "manager" role is defined and appropriate user is available in $CATALINA_HOME/conf/tomcat-users.xml?
 
Anchit Jindal
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Manoj

Manager Role is not defined in above said file. What should I do now??
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18218
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anchit Jindal wrote:@Manoj

Manager Role is not defined in above said file. What should I do now??


You have to add it. There should be instructions in the copy of tomcat-users.xml that came with tomcat.

It's not in there by default because people would deploy Tomcat with a known password in the manager account.
 
Anchit Jindal
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Tim Holoway

Can you please tell how to add it. Here is contents of my tomcat-users.xml file. Please edit it so that I could deploy my .war file.

<?xml version="1.0" encoding="utf-8" ?>
- <tomcat-users>
<role rolename="tomcat" />
<role rolename="role1" />
<user username="both" password="tomcat" roles="tomcat,role1" />
<user username="tomcat" password="tomcat" roles="tomcat" />
<user username="role1" password="tomcat" roles="role1" />
</tomcat-users>
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anchit, it is possible to deploy app without Tomcat manager http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html Check "Deployment on Tomcat startup" and "Deploying on a running Tomcat server"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic