*
The moose likes Tomcat and the fly likes Tomcat Console & Manager App Error - Two Items Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Console & Manager App Error - Two Items" Watch "Tomcat Console & Manager App Error - Two Items" New topic
Author

Tomcat Console & Manager App Error - Two Items

Lou Pelagalli
Ranch Hand

Joined: Nov 11, 2003
Posts: 150
    
    1
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: 12756
    
    5
Now try defining and turning on the roles that control access to the manager and admin apps

<role rolename="manager"/>
<role rolename="admin"/>


Bill
Lou Pelagalli
Ranch Hand

Joined: Nov 11, 2003
Posts: 150
    
    1
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Console & Manager App Error - Two Items
 
Similar Threads
Cannot login into Tomcat Webserver Admin
<login-config> tag not working for Tomcat server
startup.bat is overwritting tomcat-users.xml
HTTP Status 403
Cannot login to Admin App in Tomcat 5.5.7