wood burning stoves 2.0*
The moose likes Servlets and the fly likes login-config not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "login-config not working" Watch "login-config not working" New topic

login-config not working

Bipra De

Joined: Nov 06, 2011
Posts: 14
This is my web.xml DD

<?xml version="1.0" encoding="ISO-8859-1"?>

<servlet-name>Ch3 Beer</servlet-name>

<servlet-name>Ch3 Beer</servlet-name>

This is my tomcat-users.xml file

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

Instead of asking for login when tryying to access "localhost:8080/beerv1/form.html" , it is allowing me to access it. What is the problem?
Thanks in advance.

Warm Regards,
Bipra De.
SCJP 1.6
It is sorta covered in the JavaRanch Style Guide.
subject: login-config not working
Similar Threads
Webapp-Security chapter revision notes from HFSJ , may be useful
HTTP Status 403 Access to the requested resource has been denied
Authentication and Authorization implementation using DD Problem
security constraints - login doesnt work
Problem with enforcing security in web-app