Hi everyone
Also our development team added the blossom module in Magnolia 5.3.1 and
installed all the necessary Spring libraries in order to use the
spring-security plugin. But got the same exceptions.
We changed the web.xml file adding the filter:
<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>
Before the default Magnolia filter.
We configured in the same way the applicationContext.xml:
<bean id="springSecurityFilterChain"
class="info.magnolia.module.blossom.web.InstallationAwareDelegatingFilterProxy"/>
We added also the default blossom-servlet.xml as set up in the default Magnolia
blossom module, available as archetype.
In the start() method of our module we load the blossom configuration:
super.initRootWebApplicationContext("classpath:/applicationContext.xml");
super.initBlossomDispatcherServlet("blossom","classpath:/blossom-servlet.xml");
In the web.xml file we added also the context-params proper of the
spring-security module, just after the <listener> tags:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/spring-database.xml,
/WEB-INF/spring-security.xml
</param-value>
</context-param>
The two XML added as context param are correctly created in the WEB-INF folder
of our webapp.
The Magnolia instance started correctly, but trying to open the admincentral
page we get the same error:
INFO: Server startup in 21477 ms
Exception in thread "http-bio-8080-exec-3" java.lang.StackOverflowError
at
info.magnolia.module.blossom.web.InstallationAwareDelegatingFilterProxy.isInitialized(InstallationAwareDelegatingFilterProxy.java:67)
at
info.magnolia.module.blossom.web.InstallationAwareDelegatingFilterProxy.doFilter(InstallationAwareDelegatingFilterProxy.java:59)
at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
at
info.magnolia.module.blossom.web.InstallationAwareDelegatingFilterProxy.doFilter(InstallationAwareDelegatingFilterProxy.java:60)
at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
at
info.magnolia.module.blossom.web.InstallationAwareDelegatingFilterProxy.doFilter(InstallationAwareDelegatingFilterProxy.java:60)
Can someone help us in solving this problem?
Or have someone already found a solution about this?
Thanks,
Xena
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=d5af03f7-aa4e-4196-b9d2-1e16b9d5534d
----------------------------------------------------------------
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]>
----------------------------------------------------------------