Spring security with GAE
Posted
by
xybrek
on Stack Overflow
See other posts from Stack Overflow
or by xybrek
Published on 2012-07-03T00:56:47Z
Indexed on
2012/07/03
3:15 UTC
Read the original article
Hit count: 390
I'm trying to implement Spring security for my GAE application however I'm getting this error:
No bean named 'springSecurityFilterChain' is defined
I added this configuration on my application web.xml:
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
And in the servlet-context:
<!-- Configure security -->
<security:http auto-config="true">
<security:intercept-url pattern="/**" access="ROLE_USER" />
</security:http>
<security:authentication-manager alias="authenticationManager">
<security:authentication-provider>
<security:user-service>
<security:user name="jimi" password="jimi" authorities="ROLE_USER, ROLE_ADMIN" />
<security:user name="bob" password="bob" authorities="ROLE_USER" />
</security:user-service>
</security:authentication-provider>
</security:authentication-manager>
What could be causing the error?
© Stack Overflow or respective owner