Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:23 AM.


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