wood burning stoves*
The moose likes Tomcat and the fly likes Cannot login into tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Cannot login into tomcat" Watch "Cannot login into tomcat" New topic
Author

Cannot login into tomcat

Anchit Jindal
Greenhorn

Joined: Feb 03, 2010
Posts: 21
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

Joined: Mar 03, 2008
Posts: 470
What are you trying to access?
Anchit Jindal
Greenhorn

Joined: Feb 03, 2010
Posts: 21
I want to upload .war file which contains my web-application.
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
Anchit, you haven't answered my questions. Please check Tell The Details
manoj r patil
Ranch Hand

Joined: Jun 06, 2002
Posts: 181
@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?


love your job and not your company;
...because you never know when your company will stop loving you!
Anchit Jindal
Greenhorn

Joined: Feb 03, 2010
Posts: 21
@Manoj

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

Joined: Jun 25, 2001
Posts: 15951
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Anchit Jindal
Greenhorn

Joined: Feb 03, 2010
Posts: 21
@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>
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9924
    
158

See this http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access

[My Blog] [JavaRanch Journal]
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
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"
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Cannot login into tomcat
 
Similar Threads
Java Servlets /JSP
Socket server inside Tomcat
Transaction rollback in a multithreaded scenario
J2EE and Tomcat
HttpServletRequest.getReader() returns nothing