wood burning stoves 2.0*
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


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

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 http://tomcat.apache.org/download-55.cgi 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

<tomcat-users>
<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"/>
</tomcat-users>


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"
connectionURL="jdbc:jtds:sqlserver://DCSRV02:1433/REGISTRATION_TEMP_LTR_PRINT;username=sa;password=water"
connectionName="sa" connectionPassword="water"
userTable="login1" userNameCol="loginname" userCredCol="password"


/>
David Boby
Greenhorn

Joined: Jan 24, 2010
Posts: 1
Hi

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

Rgs
 
Don't get me started about those stupid light bulbs.
 
subject: Tomcat Manager and Admin Login
 
Similar Threads
forget the tomcat credentials
Can't Login as admin
Tomcat 7.0 Manager's Username and Password
Cannot login to Admin App in Tomcat 5.5.7
JNDI