| Author |
Tomcat Console & Manager App Error - Two Items
|
Lou Pellegrini
Ranch Hand
Joined: Nov 11, 2003
Posts: 105
|
|
Hi,
I have Apache Tomcat/7.0.5.
1) When I tried to access the Manager App in Tomcat I received the dreaded "403 Access Denied You are not authorized to view this page." message. I checked my conf/tomcat-users.xml, code is below my signature, according to the instructions making sure the users and roles were not commented out, but still I get the message even after restarting Tomcat and then the pc.
2) I'm trying to view the Tomcat console. Is the Manager App the correct place to do it once I get in there?
Your help with either or both of these issues would be greatly appreciated.
Thanks,
Lou
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12271
|
|
Now try defining and turning on the roles that control access to the manager and admin apps
<role rolename="manager"/>
<role rolename="admin"/>
Bill
|
Java Resources at www.wbrogden.com
|
 |
Lou Pellegrini
Ranch Hand
Joined: Nov 11, 2003
Posts: 105
|
|
Hi Bill,
I tried your suggestion, still get the same result.
The red lines are what I added.
<role rolename="manager"/>
<role rolename="admin"/> <role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="manager" password="manager" roles="manager"/>
<user username="admin" password="admin" roles="admin"/>
I clicked on manger webapp and tried loggin in with user=mannager, password=manager. Still get 403 Access Denied
You are not authorized to view this page.
Also I noticed the first line is
<?xml version='1.0' encoding='cp1252'?>
but should it be
<?xml version='1.0' encoding='utf-8'?>
like other examples I've see to use utf-8 encoding?
Thanks,
Lou
|
 |
 |
|
|
subject: Tomcat Console & Manager App Error - Two Items
|
|
|