Hi Heike,

The name of the filter needs to match the name of the filter chain bean. If 
your bean indeed has 'springSecurityFilterChain' as its id then maybe your xml 
isn't included. Add an import in your application-context.xml

Regards,

Tobias Mattsson
Senior Software Engineer
Magnolia International Ltd.

--------------------------------------

Magnolia®  - Yes, we're open!

--------------------------------------


On Feb 13, 2012, at 12:08 PM, Magnolia Forums (on behalf of Heike Franosch) 
wrote:

> Hi all,
> 
> I try to configure spring security. I followed the recommendation 
> in[url]http://wiki.magnolia-cms.com/display/WIKI/Using+Spring+Security+with+Magnolia+and+Blossom[/url]
>  
> and inserted the filter in web.xml:
> 
>               [code]<filter>
>               <filter-name>springSecurityFilterChain</filter-name>
>               
> <filter-class>info.magnolia.module.blossom.web.InstallationAwareDelegatingFilterProxy</filter-class>
>       </filter>
>       <filter-mapping>
>               <filter-name>springSecurityFilterChain</filter-name>
>               <url-pattern>/*</url-pattern>
>       </filter-mapping>               [/code]
> 
> and inserted the spring configuration in my module.xml:
>       [code]<servlets>
>               <servlet>
>                       <name>xxx</name>
>                       
> <class>info.magnolia.module.blossom.web.InstallationAwareDispatcherServlet</class>
>                       <mappings>
>                               <mapping>*.do</mapping>
>                       </mappings>
>                       <params>
>                               <param>
>                                       <name>contextConfigLocation</name>
>                                       
> <value>/WEB-INF/classes/security.xml</value>
>                               </param>
>                       </params>
>               </servlet>
> 
>       </servlets>
> [/code]
> 
> But I always get a 
> [code]org.springframework.beans.factory.NoSuchBeanDefinitionException: No 
> bean named 'springSecurityFilterChain' is defined[/code]
> 
> So, I guess I am missing some main part.
> The security.xml is never read.
> 
> Is there some extra Listener to be configured?
> 
> Thanks, Heike
> 
> -- 
> Context is everything: 
> http://forum.magnolia-cms.com/forum/thread.html?threadId=bbe5cc24-fa3d-4ecd-9a50-85e3776a2317
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to