how to login into admin tool - Tomcat Views : 913
Tagged in : Tomcat
0 0
Send mail
After installing apache tomcat into the local machine you can login into the admin tool.

Find the file tomcat-users.xml

First i had the following code in the file and i was unable to login into it.

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>

To login as admin add role and user tag inside the xml code:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="admin" password="ramesh" roles="manager,admin"/>
</tomcat-users>

to take effect restart the tomcat server.
By RameshKumar, On - 2008-05-27



    Login to add Comments .