Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Security Constraint not working with Tomcat Server in Eclipse
Security Constraint not working with Tomcat Server in Eclipse [message #505620] Sun, 03 January 2010 09:00 Go to next message
Eclipse UserFriend
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>
Re: Security Constraint not working with Tomcat Server in Eclipse [message #505646 is a reply to message #505620] Mon, 04 January 2010 01:26 Go to previous messageGo to next message
Eclipse UserFriend
Aloha wrote:
> Hi there,
>
> The only security constraint I can seem to get working in my Web project
> [...]

This would probably be a good question for the eclipse.webtools forum.
Re: Security Constraint not working with Tomcat Server in Eclipse [message #506007 is a reply to message #505620] Tue, 05 January 2010 13:31 Go to previous message
Eclipse UserFriend
Sorry have reposted in correct forum now.

Cheers,
Aloha
Previous Topic:Hotspot Exception
Next Topic:SSH port forwarding in Eclipse 3.3x
Goto Forum:
  


Current Time: Sun Mar 23 21:14:31 EDT 2025

Powered by FUDForum. Page generated in 0.04329 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top