This is my web.xml and it's working with Spring security 2 I think the filter name springSecurityFilterChain is some kind of special name that spring recoginizes
Martijn <?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2007 The Apache Software Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>Mimesecure Web</display-name> <context-param> <!-- The only significant configuration for Tapestry 5, this informs Tapestry of where to look for pages, components and mixins. --> <param-name>tapestry.app-package</param-name> <param-value>mitm.mimesecure.web</param-value> </context-param> <context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/spring.xml </param-value> </context-param> <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> </filter> <filter> <filter-name>app</filter-name> <!-- Special filter that adds in a T5 IoC module derived from the Spring WebApplicationContext. --> <filter-class> org.apache.tapestry5.spring.TapestrySpringFilter </filter-class> </filter> <filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>app</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> </web-app> On Thu, 2008-08-07 at 12:07 -0700, kace wrote: > Hi fellas, > > has anyone gotten Spring Security 2 to integrate with Tapestry 5? I have > Spring running but it seems to be ignoring the security.xml rules > > I have this in my web.xml > > <filter> > <filter-name>securityFilter</filter-name> > > <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> > <init-param> > <param-name>targetBeanName</param-name> > <param-value>springSecurityFilterChain</param-value> > </init-param> > </filter> > <filter-mapping> > <filter-name>securityFilter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > <filter> > <filter-name>app</filter-name> > > <filter-class>org.apache.tapestry5.spring.TapestrySpringFilter</filter-class> > </filter> > <filter-mapping> > <filter-name>app</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > and this is part of the security.xml file > > <http auto-config="true" lowercase-comparisons="false"> > <intercept-url pattern="/Index" access="ROLE_ADMIN,ROLE_USER"/> > <form-login login-page="/Login" > authentication-failure-url="/Login?error=true" > login-processing-url="/j_security_check" default-target-url="/Index"/> > </http> > > Instead of going to the login page it defaults to the welcome-page. Anyone > gotten this to work? > > Thanks, > > ..kace --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]