<!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">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;">
Webapp deployment problem
</h3>
<span style="margin-bottom: 10px;">
reply from <a href="http://community.jboss.org/people/adryen31200">Adrien Ruffie</a> in <i>Spring Integration</i> - <a href="http://community.jboss.org/message/537206#537206">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Thank you Ales, for your response :-)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I have read this documentation, and I don't understand correctly I think ...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>For the moment I have installed spring deployer in my Jboss AS 5.1, and I have set these lines in my web.xml:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><p><?xml version="1.0" encoding="UTF-8"?></p><p><span><web-app id="WebApp_ID" version="2.4" xmlns="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/j2ee" target="_blank">http://java.sun.com/xml/ns/j2ee</a><span>" xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>" xsi:schemaLocation="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/j2ee" target="_blank">http://java.sun.com/xml/ns/j2ee</a><span> </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" target="_blank">http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd</a><span>"></span></p><p>    <display-name>Petals Master</display-name></p><p>    <context-param></p><p>        <param-name>contextConfigLocation</param-name></p><p>        <param-value>WEB-INF/applicationContext-ui.xml</p><p><span> </span>/WEB-INF/applicationContext-security.xml</param-value></p><p>    </context-param></p><p><span> </span><context-param></p><p><span> </span>  <param-name>contextClass</param-name></p><p><span> </span>  <param-value></p><p><span> </span>    org.jboss.spring.vfs.context.VFSXmlWebApplicationContext</p><p><span> </span>  </param-value></p><p><span> </span></context-param></p><p>    <context-param></p><p>        <param-name>log4jConfigLocation</param-name></p><p>        <param-value>/WEB-INF/log4j.xml</param-value></p><p>    </context-param></p><p>    <context-param></p><p>        <param-name>service-manager</param-name></p><p>        <param-value>org.ow2.dragon.ui.businessdelegate.spring.DragonServiceManagerImpl</param-value></p><p>    </context-param></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    <!-- Filter for Security --></p><p>    <filter></p><p>        <filter-name>springSecurityFilterChain</filter-name></p><p>        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class></p><p>    </filter></p><p>    <filter-mapping></p><p>        <filter-name>springSecurityFilterChain</filter-name></p><p>        <url-pattern>/petals-master/*</url-pattern></p><p>    </filter-mapping></p><p>    <filter-mapping></p><p>        <filter-name>springSecurityFilterChain</filter-name></p><p>        <url-pattern>/*</url-pattern></p><p>    </filter-mapping></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    <!-- Listeners for Log4j --></p><p>    <listener></p><p>        <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class></p><p>    </listener></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span> </span><listener></p><p><span> </span>  <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></p><p><span> </span></listener></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    <listener></p><p>        <listener-class>org.springframework.security.ui.session.HttpSessionEventPublisher</listener-class></p><p>    </listener></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    <servlet></p><p>        <description> The Petals Master servlet </description></p><p>        <servlet-name>DragonServlet</servlet-name></p><p>        <servlet-class>org.ow2.dragon.ui.DragonServlet</servlet-class></p><p>        <init-param></p><p>            <param-name>xml</param-name></p><p>            <param-value>/WEB-INF/DragonApp.xml</param-value></p><p>        </init-param></p><p>        <init-param></p><p>            <param-name>defaultTransformerFactory</param-name></p><p>            <param-value>com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl</param-value></p><p>        </init-param></p><p>        <!-- Parameter allowing to load a dataset at dragon startup </p><p>        <init-param></p><p><span> </span><param-name>datasetLocation</param-name></p><p><span> </span><param-value>classpath:dataset/sample-dataset.xml</param-value></p><p><span> </span></init-param>--></p><p><span> </span><!-- Parameter allowing to load base tmodels at petals-master startup --></p><p>        <init-param></p><p><span> </span><param-name>baseTModelsLocation</param-name></p><p><span> </span><param-value>classpath:tmodel/base-tmodels.xml</param-value></p><p><span> </span></init-param></p><p>        <load-on-startup>0</load-on-startup></p><p>    </servlet></p><p>    <servlet-mapping></p><p>        <servlet-name>DragonServlet</servlet-name></p><p>        <url-pattern>/petals-master/*</url-pattern></p><p>    </servlet-mapping></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    <!-- A filter used to open and close hibernate sessions --></p><p>    <filter></p><p>        <filter-name>OpenHibernateSessionInViewFilter</filter-name></p><p>        <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class></p><p>    </filter></p><p>    <filter-mapping></p><p>        <filter-name>OpenHibernateSessionInViewFilter</filter-name></p><p>        <url-pattern>/petals-master/*</url-pattern></p><p>    </filter-mapping></p><p>    <filter-mapping></p><p>        <filter-name>OpenHibernateSessionInViewFilter</filter-name></p><p>        <url-pattern>/ws/*</url-pattern></p><p>    </filter-mapping></p><p>    <filter-mapping></p><p>        <filter-name>OpenHibernateSessionInViewFilter</filter-name></p><p>        <url-pattern>/repository/*</url-pattern></p><p>    </filter-mapping></p><p></web-app></p></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I haven't jboss-spring.xml for the moment (I don't know if it's really necessary, and I have several spring configuration files ...)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>But I have now a new stacktrace:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><div id="_mcePaste">org.springframework.context.ApplicationContextException: Custom context class [org.jboss.spring.vfs.context.VFSXmlWebApplicationContext] is not of type [org.springframework.web.context.ConfigurableWebApplicationContext]</div><div id="_mcePaste">at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245)</div><div id="_mcePaste">at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)</div><div id="_mcePaste">at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)</div><div id="_mcePaste">at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)</div><div id="_mcePaste">at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)</div><div id="_mcePaste">at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)</div><div id="_mcePaste">at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)</div><div id="_mcePaste">at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)</div><div id="_mcePaste">at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)</div><div id="_mcePaste">at org.jboss.web.deployers.WebModule.start(WebModule.java:97)</div><div id="_mcePaste">at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</div><div id="_mcePaste">at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</div><div id="_mcePaste">at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</div><div id="_mcePaste">at java.lang.reflect.Method.invoke(Method.java:597)</div><div id="_mcePaste">at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)</div><div id="_mcePaste">at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)</div><div id="_mcePaste">at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)</div><div id="_mcePaste">at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)</div><div id="_mcePaste">at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)</div><div id="_mcePaste">at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)</div><div id="_mcePaste">at $Proxy38.start(Unknown Source)</div><div id="_mcePaste">at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)</div><div id="_mcePaste">at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)</div><div id="_mcePaste">at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)</div><div id="_mcePaste">at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)</div><div id="_mcePaste">at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)</div><div id="_mcePaste">at org.jboss.system.ServiceController.doChange(ServiceController.java:688)</div><div id="_mcePaste">at org.jboss.system.ServiceController.start(ServiceController.java:460)</div><div id="_mcePaste">at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)</div><div id="_mcePaste">at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)</div><div id="_mcePaste">at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)</div><div id="_mcePaste">at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)</div><div id="_mcePaste">at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)</div><div id="_mcePaste">at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)</div><div id="_mcePaste">at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)</div><div id="_mcePaste">at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)</div><div id="_mcePaste">at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)</div><div id="_mcePaste">at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)</div><div id="_mcePaste">at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)</div><div id="_mcePaste">at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)</div><div id="_mcePaste">at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)</div><div id="_mcePaste">at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)</div><div id="_mcePaste">at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)</div><div id="_mcePaste">at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)</div><div id="_mcePaste">at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)</div><div id="_mcePaste">at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)</div><div id="_mcePaste">at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)</div><div id="_mcePaste">at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)</div><div id="_mcePaste">at org.jboss.Main.boot(Main.java:221)</div><div id="_mcePaste">at org.jboss.Main$1.run(Main.java:556)</div><div id="_mcePaste">at java.lang.Thread.run(Thread.java:619)</div><div> </div><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>For this stack, I check if the spring-web-2.5.6.jar is correclty located in /lib of my webapp.</p><p>What's the difference if spring-web-2.5.6.jar is in /lib, or if I paste it in jboss-5.1.0.GA/server/default/deployers/jboss-spring-3.2.CR1.deployer ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thank again :-), because I'm blocked since yesterday morning on this error ...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Best regards,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Adrien</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/537206#537206">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Spring Integration 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>