[jboss-user] [Snowdrop] - Re: springSecurityFilterChain filter not loaded in JBOss 5.1 deployment

santhosh kotha do-not-reply at jboss.com
Fri Feb 4 04:05:39 EST 2011


santhosh kotha [http://community.jboss.org/people/sanintel3] created the discussion

"Re: springSecurityFilterChain filter not loaded in JBOss 5.1 deployment"

To view the discussion, visit: http://community.jboss.org/message/585408#585408

--------------------------------------------------------------
After updating web.xml with snowdrop context class and the jars(snowdrop) to WEB-INF/lib of war file still getting the exception.

2011-02-04 13:59:54,648 INFO  [org.jboss.spring.vfs.context.VFSXmlWebApplicationContext] (main) Refreshing org.jboss.spring.vfs.context.VFSXmlWebApplicationContext at 1b8cfa0: display name [Root WebApplicationContext]; startup date [Fri Feb 04 13:59:54 IST 2011]; root of context hierarchy
2011-02-04 14:00:01,039 INFO  [org.jboss.spring.vfs.context.VFSXmlWebApplicationContext] (main) Bean factory for application context [org.jboss.spring.vfs.context.VFSXmlWebApplicationContext at 1b8cfa0]: org.springframework.beans.factory.support.DefaultListableBeanFactory at 8122ba
2011-02-04 14:00:01,070 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (main) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory at 8122ba: defining beans []; root of factory hierarchy
2011-02-04 14:00:01,070 INFO  [org.springframework.web.context.ContextLoader] (main) Root WebApplicationContext: initialization completed in 6453 ms
2011-02-04 14:00:01,086 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/bcp]] (main) Exception starting filter springSecurityFilterChain
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:387)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:971)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:246)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:884)
    at org.springframework.web.filter.DelegatingFilterProxy.initDelegate(DelegatingFilterProxy.java:216)
    at org.springframework.web.filter.DelegatingFilterProxy.initFilterBean(DelegatingFilterProxy.java:145)
    at org.springframework.web.filter.GenericFilterBean.init(GenericFilterBean.java:179)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:234)



Though from logs it's clear that it's considering VFSXmlWebApplicationContext to load the spring resources, but still getting the error.
Also getting below exception 

2011-02-04 14:00:01,773 ERROR [com.webex.util.Logger] (main) [FreemarkerManager]
java.lang.ClassNotFoundException: context from BaseClassLoader at 1826b7a{VFSClassLoaderPolicy at 15e54e8{name=vfszip:/C:/Program%20Files/jboss-5.1/server/default/deploy/bcp.war/ domain=ClassLoaderDomain at 146d5dc{name=com.loader:loader=service-web parentPolicy=BEFORE parent=ClassLoaderDomain at 11a4bd4{DefaultDomain}} roots=[MemoryContextHandler at 1604936[path= context=vfsmemory://1s2v3q48-c0zfap-gjqu2whq-1-gjqu3egf-29 real=vfsmemory://1s2v3q48-c0zfap-gjqu2whq-1-gjqu3egf-29], ZipEntryHandler at 29966225[path=bcp.war/WEB-INF/classes context=file:/C:/Program%20Files/jboss-5.1/server/default/deploy/ real=file:/C:/Program%20Files/jboss-5.1/server/default/deploy/bcp.war/WEB-INF/classes], DelegatingHandler at 23875759[path=bcp.war/WEB-INF/lib/XmlSchema-1.4.2.jar context=file:/C:/Program%20Files/jboss-5.1/server/default/deploy/ real=file:/C:/Program%20Files/jboss-5.1/server/default/deploy/bcp.war/WEB-INF/lib/XmlSchema-1.4.2.jar], DelegatingHandler at 2442542[path=bcp.war/WEB-INF/lib/activation-1.1.jar context=file:/C:/Program%20Files/jboss-5.1/server/default/deploy/ real=file:/C:/Program%20Files/jboss-5.1/server/default/deploy/bcp.war/WEB-INF/lib/activation-1.1.jar], 
DelegatingHandler at 12725032[path=bcp.war/WEB-INF/lib/struts2-core-2.1.6.jar context=file:/C:/Program%20Files/jboss-5.1/server/default/deploy/ real=file:/C:/Program%20Files/jboss-5.1/server/default/deploy/bcp.war/WEB-INF/lib/struts2-core-2.1.6.jar],
DelegatingHandler at 23833340[path=bcp.war/WEB-INF/lib/freemarker-2.3.13.jar context=file:/C:/Program%20Files/jboss-5.1/server/default/deploy/ real=file:/C:/Program%20Files/jboss-5.1/server/default/deploy/bcp.war/WEB-INF/lib/freemarker-2.3.13.jar],

>From the complete log, I could able to see that struts.jar(which is containing Freemarkermanager) is in the path where VFSClassloader is searching, but still it says classnotFound. What could be the reason for it?

Help me in understanding the concept.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/585408#585408]

Start a new discussion in Snowdrop at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2082]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110204/427f0ab2/attachment.html 


More information about the jboss-user mailing list