This content has been marked as final.
Show 3 replies
-
1. Re: ant task produces java.lang.NoClassDefFoundError: com/s
heiko.braun Jun 5, 2007 8:56 AM (in response to teknokrat)Could you post the build file excerpt that defines the wsconsume task?
-
2. Re: ant task produces java.lang.NoClassDefFoundError: com/s
rphadnis Jun 6, 2007 1:50 PM (in response to teknokrat)Can you ensure that the tools.jar for jdk 1.5 or higher is available in the classpath?
-
3. Re: ant task produces java.lang.NoClassDefFoundError: com/s
teknokrat Jun 11, 2007 6:49 AM (in response to teknokrat)The relevant build.xml fragment is
<path id="class.path"> <fileset dir="."> <include name="jbossws-client.jar"/> <include name="getopt.jar"/> <include name="jbossws-wsconsume-impl.jar"/> <include name="jaxb-xjc.jar"/> <include name="jaxb-impl.jar"/> </fileset> </path> <target name="wsgenerate" description=""> <taskdef name="wsconsume" classname="org.jboss.ws.tools.jaxws.ant.wsconsume" classpathref="class.path" /> <wsconsume fork="true" verbose="true" destdir="bin" sourcedestdir="src" keep="true" wsdllocation="META-INF/wsdl/MyService.wsdl" wsdl="MyService.wsdl" package="my.ws"> <binding dir="." includes="bindings.xml"/> </wsconsume> </target>
When I add tools.jar to the classpath, this works OK. But why can't it find tools.jar anyway as its being executed by the jvm anyway?