• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Tomcat Console & Manager App Error - Two Items

 
Ranch Hand
Posts: 150
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Oh. Hi guys! Look at this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic