The following is the web.xml content
...............................
<security-constraint>
<web-resource-collection>
<http-method>
GET
</http-method>
<url-pattern>
/secret
</url-pattern>
</web-resource-collection>
<auth-constraint>
role1
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>
FORM
</auth-method>
<realm-name>
Tomcat Manager Application
</realm-name>
<form-login-config>
<form-login-page>
/login.jsp
</form-login-page>
<form-error-page>
/app
</form-error-page>
</form-login-config>
</login-config>
...............................
if i put the following in
http://localhost:8080/security/secret then the login page
appears. But when i put the user name and password for role role1, i am getting the error
page, that is /app. Any idea. Thanxs in advance.