p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning JavaServer Pages (http://p2p.wrox.com/forumdisplay.php?f=162)
-   -   Chapter 1 : Authentication for Manager access (http://p2p.wrox.com/showthread.php?t=34904)

AC Evergreen November 6th, 2005 09:51 AM

Chapter 1 : Authentication for Manager access
 
I have entered the administrator login username as 'tomcat' and password as 'tomcat' as the book suggested during installation.
But, when I tried login as that username to access the Manager utility in the following URL in Chapter 1
http://localhost:8080/manager/html

I get the message "access to the requested resource has been denied".

Could anyone make any suggestions?


AC Evergreen November 6th, 2005 07:45 PM

I have solved the problem by adding the 'manager' into the role in the tomcat-user.xml file.

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <role rolename="manager"/>
  <role rolename="admin"/>
  <user username="tomcat" password="tomcat" roles="tomcat,manager"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>

Silly mistake.:D


C@uark February 2nd, 2009 10:20 PM

Is that all you did i had that very same problem, and tried that adding the role manger to my tomcat user name as the documnetation stated but I still get the same access denied message.


All times are GMT -4. The time now is 09:04 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.