<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: springSecurityFilterChain filter not loaded in JBOss 5.1 deployment
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/sanintel3">santhosh kotha</a> in <i>Snowdrop</i> - <a href="http://community.jboss.org/message/585408#585408">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>After updating web.xml with snowdrop context class and the jars(snowdrop) to WEB-INF/lib of war file still getting the exception.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2011-02-04 13:59:54,648 INFO&#160; [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</p><p>2011-02-04 14:00:01,039 INFO&#160; [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</p><p>2011-02-04 14:00:01,070 INFO&#160; [org.springframework.beans.factory.support.DefaultListableBeanFactory] (main) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@8122ba: defining beans []; root of factory hierarchy</p><p>2011-02-04 14:00:01,070 INFO&#160; [org.springframework.web.context.ContextLoader] (main) Root WebApplicationContext: initialization completed in 6453 ms</p><p>2011-02-04 14:00:01,086 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/bcp]] (main) Exception starting filter springSecurityFilterChain</p><p>org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined</p><p>&#160;&#160;&#160; at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:387)</p><p>&#160;&#160;&#160; at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:971)</p><p>&#160;&#160;&#160; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:246)</p><p>&#160;&#160;&#160; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)</p><p>&#160;&#160;&#160; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)</p><p>&#160;&#160;&#160; at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:884)</p><p>&#160;&#160;&#160; at org.springframework.web.filter.DelegatingFilterProxy.initDelegate(DelegatingFilterProxy.java:216)</p><p>&#160;&#160;&#160; at org.springframework.web.filter.DelegatingFilterProxy.initFilterBean(DelegatingFilterProxy.java:145)</p><p>&#160;&#160;&#160; at org.springframework.web.filter.GenericFilterBean.init(GenericFilterBean.java:179)</p><p>&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:234)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Though from logs it's clear that it's considering VFSXmlWebApplicationContext to load the spring resources, but still getting the error.</p><p>Also getting below exception </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2011-02-04 14:00:01,773 ERROR [com.webex.util.Logger] (main) [FreemarkerManager]</p><p>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], </p><p>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],</p><p>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],</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>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?</p><p><br/>Help me in understanding the concept.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/585408#585408">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Snowdrop at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2082">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>