Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Console & Manager App Error - Two Items

 
Lou Pelagalli
Ranch Hand
Posts: 150
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 150
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic