Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
| Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat 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
  #1 (permalink)  
Old May 29th, 2006, 11:00 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Portsmouth, Hampshire, United Kingdom.
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aadz5
Default configuring security in Tomcat

Hi Guys,

I have declarative security for my application. When ever I go to a restricted page using Tomcat I go straight there without being propmted for a username and password. Am I doing somthing wrong in my web.xml? web.xml:

<security-constraint>

    <web-resource-collection>
        <web-resource-name>CheckUsers</web-resource-name>

        <url-pattern>*.jsp</url-pattern>

        <http-method>GET</http-method>
        <http-method>POST</http-method>
    </web-resource-collection>

    <auth-contraint>
        <role-name>test</role-name>
    </auth-contraint>

    <user-data-constraint>CONFIDENTIAL</user-data-constraint>

  </security-constraint>

  <login-config>
      <auth-method>FORM</auth-method>
    <form-login-config>
        <form-login-page>/login.jsp</form-login-page>
        <form-error-page>/loginerror.jsp</form-error-page>
    </form-login-config>
  </login-config>

could someone please advise?

Thanks and Regards

Adz - Its all about the JSPs baby!
__________________
Adz - Learning The J2EE Ways.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in configuring tomcat and apache jbashir Servlets 1 October 9th, 2006 08:28 PM
Configuring Tomcat 5.0 and IIS 5.1 bettyb1656 BOOK: Professional Apache Tomcat 3 May 30th, 2006 12:40 AM
Chapter 1: Configuring Directory Security BonnieY BOOK: Beginning ASP.NET 1.0 4 September 3rd, 2003 10:40 PM
configuring directory security butterbean ASP.NET 1.0 and 1.1 Basics 3 August 19th, 2003 04:17 PM





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