|
|
how to login into admin tool - Tomcat
|
Views : 913
|
|
Tagged in : Tomcat
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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 |
|
|
|