Security Constraint not working with Tomcat Server in Eclipse [message #505620] |
Sun, 03 January 2010 09:00  |
Eclipse User |
|
|
|
Hi there,
The only security constraint I can seem to get working in my Web project is /*
I have made a folder called private under the WebContent dir and tried to constrain it using the url-pattern /private/* but it doesn't register it as a constrained resource at all.
Is there anything else I need to configure in my web.xml?
Thanks in advance,
Aloha
<!-- Setting up security -->
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/error.html</form-error-page>
</form-login-config>
</login-config>
<security-role><role-name>admin</role-name></security-role>
<security-role><role-name>guest</role-name></security-role>
<security-constraint>
<web-resource-collection>
<web-resource-name>ReceiptLogin</web-resource-name>
<url-pattern>/private/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>guest</role-name>
</auth-constraint>
</security-constraint>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04329 seconds