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@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@1b8cfa0]: org.springframework.beans.factory.support.DefaultListableBeanFactory@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@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@1826b7a{VFSClassLoaderPolicy@15e54e8{name=vfszip:/C:/Program%20Files/jboss-5.1/server/default/deploy/bcp.war/ domain=ClassLoaderDomain@146d5dc{name=com.loader:loader=service-web parentPolicy=BEFORE parent=ClassLoaderDomain@11a4bd4{DefaultDomain}} roots=[MemoryContextHandler@1604936[path= context=vfsmemory://1s2v3q48-c0zfap-gjqu2whq-1-gjqu3egf-29 real=vfsmemory://1s2v3q48-c0zfap-gjqu2whq-1-gjqu3egf-29], ZipEntryHandler@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@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@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@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@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]
_______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user