Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Security Constraint not working with Tomcat Server in Eclipse
Security Constraint not working with Tomcat Server in Eclipse [message #506005] Tue, 05 January 2010 13:29
Aloha  is currently offline Aloha
Messages: 3
Registered: January 2010
Junior Member
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>
Previous Topic:our existing web project not recognized in eclipse
Next Topic:WSDL - using IP addr instead of hostname
Goto Forum:
  


Current Time: Sun Apr 20 19:41:13 EDT 2014

Powered by FUDForum. Page generated in 0.07253 seconds