Problem Logging into Tomcat Manager Topic: JSP
Joe Lee, May 22, 2003 [replies:1]
Hi,
i've been using Tomcat for some time however, i only started to explore the in-built Manager. I can't seem to get it to work and it produce this error when i tried to login with my username and password:
HTTP Status 403 - Access to the requested resource has been denied
This is what i have for my tomcat-users.xml
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager"/>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="admin" password="secret" roles="manager"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
</tomcat-users>
Can anyone tell me what's wrong with it ?
Regards,
Joe
Is this item
helpful? yes no
Previous votes Yes: 2 No: 0
|
|

 |
Re: Problem Logging into Tomcat Manager Topic: JSP
Joe Lee, May 22, 2003
Hi all, i've solved the problem. To those who had the similiar problem, your tomcat-users.xml should include one more role, 'admin'..e.g.
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="admin"/>
<role rolename="manager"/>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="admin" password="secret"
roles="manager,admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
</tomcat-users>
Hope it will help those who had the similiar problem :)
Joe
Is this item
helpful? yes no
Previous votes Yes: 2 No: 0
|
|
|
|
|
 |
|