how to login into admin tool

by RameshKumar 2008-05-27 16:13:32

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.

Tagged in:

913
like
0
dislike
0
mail
flag

You must LOGIN to add comments