my dog learned polymorphism
The moose likes Tomcat and the fly likes Tomcat Manager and Admin Login Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Manager and Admin Login" Watch "Tomcat Manager and Admin Login" New topic

Tomcat Manager and Admin Login

carina caoor
Ranch Hand

Joined: Jun 23, 2007
Posts: 300

Hi i want to configure the admin and manager for the tomcat 5.5 that is installed on my machine, my tomcat path is
c:\Tomcat 5.5
i unziped the apache-tomcat-5.5.27-admin folder from and copied \conf\Catalina\localhost\admin.xml file of unzipped apache-tomcat-5.5.27-admin folder in my c:\Tomcat 5.5\conf and also copied the admin folder present in the server\webapps\ of unzipped apache-tomcat-5.5.27-admin in my
C:\Tomcat 5.5\server\webapps
Now i could see the tomcat web server administration tool page which asks for username and password, on entering the username="admin" and password=""
it says Invalid username or password! in my tomcat users.xml file i have the entries as

<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="standard"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="administrator" password="ruquia" roles="admin,standard,manager"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="admin" password="" roles="admin,manager"/>

i tried with all the username and passwords but it still says that invalid username and password.
any suggestions on this issue i need to install admin and manager console.
carina caoor
Ranch Hand

Joined: Jun 23, 2007
Posts: 300

i could solve this issue the realm that i was specifying in the server.xml file doesnot describe any role thats why it was taking that as null and was not allowing to login when i commented out the realm i could log into admin console.
<Realm className="org.apache.catalina.realm.JDBCRealm"
debug="99" driverName="net.sourceforge.jtds.jdbc.Driver"
connectionName="sa" connectionPassword="water"
userTable="login1" userNameCol="loginname" userCredCol="password"

David Boby

Joined: Jan 24, 2010
Posts: 1

You can see same topic at the side bar of this site. You can find out some thing same your questions.

I agree. Here's the link:
subject: Tomcat Manager and Admin Login
It's not a secret anymore!