axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tongjie Li <litong...@gmail.com>
Subject Re: NoClassDefFoundError: javax/activation/DataSource in axis-java2wsdl
Date Mon, 18 Jul 2005 19:28:05 GMT
I have this problem before. And then I change my classpath. It is
works. Maybe you can check you classpath.

On 7/18/05, Stuart Barlow <sbarlow@peopledoc.com> wrote:
> Did you find an answer to this?
> We are getting the same thing.
> 
> Alessandro Malgaroli wrote:
> > Hi all.
> >
> > Using axis 1.2 final, we're facing a strange "NoClassDefFoundError"
> > while running axis-java2wsdl ant task.
> >
> > the task declaration in our build.xml is as follows:
> >
> > <axis-java2wsdl classname="mc2.ws.AlertWS"
> >    output="${basedir}/AlertService.wsdl"
> >    location="${wsdl.namespace}/services/AlertService"
> >    namespace="urn:mc2WS">
> >    <classpath path="${build.dir.ws}/WEB-INF/classes"/>
> >    <classpath refid="cc.classpath"/>
> >    <mapping namespace="urn:mc2WS" package="mc2.ws" />
> > </axis-java2wsdl>
> >
> > The refid for "cc.classpath" is as follows:
> >
> > <path id="cc.classpath">
> > <pathelement location="${env.WL81_HOME}/lib/weblogic.jar"/>
> > <pathelement location="${serviceengine.dir}/dist/serviceejb.jar"/>
> > <path refid="axis.classpath"/>
> > </path>
> >
> > The path "axis.classpath" contains all JARs in axis "lib" directory
> > (axis.jar, axis-ant.jar, saaj.jar, ...).
> >
> > The strange fact is that the class "javax.activation.DataSource" is
> > present, readable, (and jad decompiles it correctly) in weblogic.jar.
> >
> > Any hint?
> >
> > We tried also changing axis-java2wsdl classpath removing weblogic's jar
> > (currently 8.1SP4) and substituting it with J2EE's j2ee.jar, but the
> > result is the same.
> >
> > Stack trace we get is below. JDK we use are: Sun's 1.4.2_02, Sun/Bea
> > 1.4.2_05, Bea's Jrockit 1.4.2_05.
> > Thanks in advance.
> >
> > --------------------------------
> >
> > java.lang.NoClassDefFoundError: javax/activation/DataSource
> >        at java.lang.Class.forName0(Native Method)
> >        at java.lang.Class.forName(Class.java:141)
> >        at
> > org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.class$(JAFDataHandlerSerializerFactory.java:37)
> >
> >        at
> > org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.getSerializerClass(JAFDataHandlerSerializerFactory.java:46)
> >
> >        at
> > org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory.<init>(JAFDataHandlerSerializerFactory.java:34)
> >
> >        at
> > org.apache.axis.encoding.DefaultTypeMappingImpl.initMappings(DefaultTypeMappingImpl.java:120)
> >
> >        at
> > org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMappingImpl.java:91)
> >
> >        at
> > org.apache.axis.encoding.DefaultTypeMappingImpl.getSingletonDelegate(DefaultTypeMappingImpl.java:85)
> >
> >        at
> > org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRegistryImpl.java:155)
> >
> >        at
> > org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRegistryImpl.java:149)
> >
> >        at org.apache.axis.wsdl.fromJava.Emitter.<clinit>(Emitter.java:747)
> >        at
> > org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:172)
> >
> >        at
> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >        at org.apache.tools.ant.Task.perform(Task.java:364)
> >        at org.apache.tools.ant.Target.execute(Target.java:341)
> >        at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
> >        at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
> >        at org.apache.tools.ant.Main.runBuild(Main.java:673)
> >        at org.apache.tools.ant.Main.startAnt(Main.java:188)
> >        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
> >        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
> >
> >
> >
> 
> --
> Stuart
> 
>

Mime
View raw message