ClassNotFoundException occurs when application is undeployed or at shutdown even though the class exists in JBoss EAP 5
Issue
- ClassNotFoundException occurs when application is undeployed or at shutdown even though the class exists in JBoss EAP 5
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/examplewar]] (RMI TCP Connection(2287817)-127.0.0.1:) Servlet AxisServlet threw unload() exception
javax.servlet.ServletException: Servlet.destroy() for servlet AxisServlet threw exception
at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1269)
at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1568)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4564)
at org.apache.catalina.core.ContainerBase.destroy(ContainerBase.java:1175)
at org.apache.catalina.core.StandardContext.destroy(StandardContext.java:4668)
...
Caused by: java.lang.NoClassDefFoundError: org/apache/axis2/context/ConfigurationContext$2
at org.apache.axis2.context.ConfigurationContext.deleteTempFiles(ConfigurationContext.java:772)
at org.apache.axis2.context.ConfigurationContext.cleanupTemp(ConfigurationContext.java:768)
at org.apache.axis2.context.ConfigurationContext.terminate(ConfigurationContext.java:747)
at org.apache.axis2.transport.http.AxisServlet.destroy(AxisServlet.java:465)
at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1250)
... 108 more
Caused by: java.lang.ClassNotFoundException: org.apache.axis2.context.ConfigurationContext$2 from BaseClassLoader@3cad30a2{vfszip:/home/jboss/jboss-eap-5.1/jboss-as/server/all/deploy/example.ear/examplewar.war/}
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:477)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 113 more
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
