You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by k2g <kk...@gmail.com> on 2007/11/21 16:25:39 UTC

Axis2-1.3 runtime libs for app running in Weblogic 8.1 ( Runtime NoClassDefFoundError )

Experts,

When i do a request I see a java.lang.NoClassDefFoundError. Till now I was
unable to figure out which class could be missing. The following
Axis2-1.3libs were  used during "runtime" and the app is running on
weblogic
8.1 app server.

    <classpathentry kind="lib" path="lib/service/axis2-adb-1.3.jar"/>
    <classpathentry kind="lib"
path="lib/service/axis2-adb-codegen-1.3.jar"/>

    <classpathentry kind="lib" path="lib/service/axis2-codegen-1.3.jar"/>
    <classpathentry kind="lib" path="lib/service/axis2-fastinfoset-1.3.jar
"/>
    <classpathentry kind="lib" path="lib/service/axis2-java2wsdl-1.3.jar"/>
    <classpathentry kind="lib" path="lib/service/axis2-jaxbri-1.3.jar"/>
    <classpathentry kind="lib" path="lib/service/axis2-jaxws-1.3.jar"/>
    <classpathentry kind="lib" path="lib/service/axis2-jaxws-api-1.3.jar"/>
    <classpathentry kind="lib" path="lib/service/axis2-jibx-1.3.jar"/>
    <classpathentry kind="lib" path="lib/service/axis2-json-1.3.jar"/>
    <classpathentry kind="lib" path="lib/service/axis2-kernel-1.3.jar"/>
    <classpathentry kind="lib" path="lib/service/axis2-metadata-1.3.jar"/>

    <classpathentry kind="lib" path="lib/service/axis2-saaj-1.3.jar"/>
    <classpathentry kind="lib" path="lib/service/axis2-saaj-api-1.3.jar"/>
    <classpathentry kind="lib" path="lib/service/axis2-spring-1.3.jar"/>
    <classpathentry kind="lib" path="lib/service/axis2-xmlbeans-1.3.jar"/>

    <classpathentry kind="lib" path="lib/service/commons-io-1.2.jar"/>
    <classpathentry kind="lib" path="lib/service/commons-logging-1.1.jar"/>

    <classpathentry kind="lib" path="lib/service/jaxb-api-2.0.jar"/>
    <classpathentry kind="lib" path="lib/service/jaxb-impl-2.0.5.jar"/>
    <classpathentry kind="lib" path="lib/service/jaxb-xjc-2.0.5.jar"/>
    <classpathentry kind="lib" path="lib/service/jaxen-1.1.1.jar"/>
    <classpathentry kind="lib" path="lib/service/jettison-1.0-RC1.jar"/>
    <classpathentry kind="lib" path="lib/service/jibx-bind-1.1.5.jar"/>
    <classpathentry kind="lib" path="lib/service/jibx-run-1.1.5.jar"/>
    <classpathentry kind="lib" path="lib/service/soapmonitor-1.3.jar"/>
    <classpathentry kind="lib" path="lib/service/stax-api-1.0.1.jar"/>
    <classpathentry kind="lib" path="lib/service/wstx-asl-3.2.1.jar"/>
    <classpathentry kind="lib" path="lib/service/xalan-2.7.0.jar"/>
    <classpathentry kind="lib" path="lib/service/xbean-2.2.0.jar"/>
    <classpathentry kind="lib" path="lib/service/xercesImpl-2.8.1.jar"/>

I am not sure if all/any of these are necessary ... but it doesnt fix the
following exception....

(id=1195657881683) javax.ejb.EJBException: EJB Exception: :
java.lang.NoClassDefFoundError
    at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:564)
    at org.apache.axis2.deployment.DescriptionBuilder.buildOM(
DescriptionBuilder.java:96)
    at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(
AxisConfigBuilder.java:79)
    at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(
DeploymentEngine.java:615)
    at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
FileSystemConfigurator.java:115)
    at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.java:64)
    at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
(ConfigurationContextFactory.java:180)
    at org.apache.axis2.client.ServiceClient.configureServiceClient(
ServiceClient.java:146)
    at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:139)



Generating stubs from wsdl (wsdl2java) was a breeze and i used the following
libs...
<classpathentry kind="lib" path="lib/tools/axis2-1.3/activation-1.1.jar"/>
    <classpathentry kind="lib" path="lib/tools/axis2-1.3/axiom-api-1.2.5.jar
"/>
    <classpathentry kind="lib" path="lib/tools/axis2-1.3/axis2-adb-1.3.jar
"/>
    <classpathentry kind="lib" path="lib/tools/axis2-1.3/axis2-
adb-codegen-1.3.jar"/>
    <classpathentry kind="lib" path="lib/tools/axis2-1.3/axis2-
codegen-1.3.jar"/>
    <classpathentry kind="lib" path="lib/tools/axis2-1.3/axis2-
kernel-1.3.jar"/>
    <classpathentry kind="lib" path="lib/tools/axis2-1.3/neethi-2.0.2.jar"/>
    <classpathentry kind="lib" path="lib/tools/axis2-1.3/wsdl4j-1.6.2.jar"/>
    <classpathentry kind="lib" path="lib/tools/axis2-1.3/XmlSchema-1.3.2.jar
"/>
    <classpathentry kind="lib" path="lib/tools/axis2-1.3/xml-apis-1.3.03.jar
"/>


I tested the client request/response to webserver without weblogic and it
worked fine. But when i introduced weblogic 8.1 (ejb layer) i am having all
these issues popping up. I spent lot of time trying to figure out the
combination of runtime libs but i dont see it working.

Also referred to this forum topic which discusses about runtime libs ...
which you see in the classpath entry but it didnt work either.


Appreciate your early response.

-- 
--
Krishna