0 Replies Latest reply on Mar 23, 2011 6:21 PM by Peter Gylling

    Undeploy error - Exception sending context destroyed event

    Peter Gylling Newbie

      Dear JBoss experts,


      I have searched your forum for a simple answer to this undeployment error. An error I only get when undeploying a spring dependent webservice from the JBoss server (JBoss 5.1 + JBossWS-CXF).


      In my webservice I have included a jar file: WEB-INF/lib/org.springframework.web-3.0.3.RELEASE.jar.


      The complete webservice functionality is working as expected when deploying and during actual use of the webservice, but when undeploying the webservice from JBoss I get this error:


      "Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener"


      Extract of stacktrace:


      21:37:23,563 INFO  [XmlWebApplicationContext] Closing Root WebApplicationContext: startup date [Wed Mar 23 21:33:37 CET 2011]; root of context hierarchy

      21:37:23,563 INFO  [DefaultListableBeanFactory] Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@140a4b5: defining beans [configurationBean,soapFaultBean]; root of factory hierarchy

      21:37:23,567 ERROR [[/ws_fwarn_jboss_cxf]] Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener

      java.lang.IllegalAccessError: tried to access method org.springframework.web.context.ContextCleanupListener.cleanupAttributes(Ljavax/servlet/ServletContext;)V from class org.springframework.web.context.ContextLoaderListener

          at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:80)

          at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3949)

          at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4615)

          at org.apache.catalina.core.ContainerBase.destroy(ContainerBase.java:1175)

          at org.apache.catalina.core.StandardContext.destroy(StandardContext.java:4705)


      I would appreciate any hints to where in my configuration I missed the missing option.