Hi everybody!
We have integrated Axis2 1.3 into an existing Web Application which has to be
deployed on an IBM WAS 5.1 (Java 1.4.2) running on an IBM AIX machine.
Classloading is set to PARENT_LAST due to IBMs own qname.jar implementation.
ClassLoaders are set to "many" (each application has its own classloader).
Our problem is that each time we try to access Axis2 functionality in our web
application - either the web interface (axis2-web) or a Web Service, an
NoClassDefFound Exception is thrown and written to system out:
java.lang.NoClassDefFoundError: org/apache/axis2/engine/DispatchPhase
This drives me crazy because of three reasons:
1. I have taken everything from the Axis2 1.3 war distribution and put it in
our existing application. Our application as well as the web services are
running well on Tomcat 5.5 w/ JDK 1.4.2.
2. The more Java I do the more I am starting to dislike classpath issues. I
looked up where class resides. org.apache.axis2.engine.DispatchPhase is located
in axis2-kernel-1.3.jar which is located in WEB-INF/lib. The OS user which is
running WAS has access rights to the file. So this file is there, it is in the
classpath and it is accessible. But for some reasons I do not know it cannot be
loaded.
3. I have also deployed the Axis2 1.3 web distribution as downloaded on the
same machine and deployed a prototype Web Service afterwards. This application
is running fine without any issues.
Any Help Greatly Appreciated,
Chris
--
Here is the stack trace:
[8/19/08 16:57:01:578 CEST] 46dd2625 WebGroup E SRVE0026E: [Servlet
Error]-[AxisServlet]: java.lang.NoClassDefFoundError:
org/apache/axis2/engine/DispatchPhase
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:80)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java(Compiled
Code))
at java.lang.reflect.Constructor.newInstance(Constructor.java(Compiled
Code))
at java.lang.Class.newInstance3(Class.java(Compiled Code))
at java.lang.Class.newInstance(Class.java(Compiled Code))
at
org.apache.axis2.deployment.AxisConfigBuilder.getPhase(AxisConfigBuilder.java:638)
at
org.apache.axis2.deployment.AxisConfigBuilder.processPhaseList(AxisConfigBuilder.java:390)
at
org.apache.axis2.deployment.AxisConfigBuilder.processPhaseOrders(AxisConfigBuilder.java:433)
at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:133)
at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:615)
at
org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:146)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:500)
at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420)
at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
at
com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
at
com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:876)
at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:455)
at
com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(WebApp.java:733)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebAppRequestDispatcherInfo.java:217)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.<init>(WebAppRequestDispatcherInfo.java:88)
at
com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1579)
at
com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1538)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:311)
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:246)
at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:458)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:937)
Send instant messages to your online friends http://uk.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]