Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning JavaServer Pages
BOOK: Beginning JavaServer Pages
This is the forum to discuss the Wrox book Beginning JavaServer Pages by Vivek Chopra, Jon Eaves, Rupert Jones, Sing Li, John T. Bell; ISBN: 9780764574856
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaServer Pages section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 6th, 2005, 09:51 AM
Registered User
Join Date: Nov 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

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

Could anyone make any suggestions?

Old November 6th, 2005, 07:45 PM
Registered User
Join Date: Nov 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

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'?>
  <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"/>

Silly mistake.:D

Old February 2nd, 2009, 10:20 PM
Authorized User
Join Date: Oct 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to C@uark

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.

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 1.0 Chapter 20 Custom Authentication and . rjwelte .NET Web Services 0 September 2nd, 2004 07:31 PM
ModuleConfig Users and Authentication Chapter 5 seanmayhew BOOK: ASP.NET Website Programming Problem-Design-Solution 0 July 5th, 2004 10:49 AM
chapter 20 basic authentication egivler BOOK: Beginning ASP.NET 1.0 3 June 29th, 2004 09:16 PM
Chapter 20 -Forms based Authentication bshay BOOK: Beginning ASP.NET 1.0 2 October 7th, 2003 09:17 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.