I would like to add basic authentication to a web bundle and I am using the Spring DM server.
My problem is that the application cannot find a filterChainProxy. The same configuration works on a standalone example application.
bundle-context.xml
web.xml:Code:<security:global-method-security secured-annotations="enabled" /> <security:authentication-provider> <security:password-encoder hash="plaintext"/> <security:user-service> <security:user name="james" password="secret" authorities="ROLE_USER" /> </security:user-service> </security:authentication-provider> <security:http auto-config="true"> <security:intercept-*** pattern="/**" access="ROLE_USER" /> <security:http-basic/> </security:http>
trace.log:Code:<listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value> /*.xml </param-value> </context-param> <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class> org.springframework.web.filter.DelegatingFilterProxy </filter-class> </filter> <filter> <filter-name>encoding-filter</filter-name> <filter-class> org.springframework.web.filter.CharacterEncodingFilter </filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> </filter> <filter-mapping> <filter-name>encoding-filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
Code:org.springframework.web.context.ContextLoader.unknown I Root WebApplicationContext: initialization completed in 2 ms [2008-11-07 15:16:05.992] async-delivery-thread-1 e.[springsource.server.catalina].[localhost].[/webadmin].unknown E Exception starting filter springSecurityFilterChain org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined I would be happy to have a very basic example that works. Thanks.


