users@jax-ws.java.net

Re: Problems with ant wsgen

From: Thierry Rietsch <thierry.rietsch_at_students.fhnw.ch>
Date: Mon, 21 Aug 2006 21:55:10 +0200

Sending a mail, and reciving a reply at the same moment. Well that's
luck :-)

It was a problem with the classpath. Thanks for your idea!

thierry

Jitendra Kotamraju wrote:
> Probably, you require to embed the classpath element
>
> <wsgen>
> ...
> <classpath refid="compile.classpath"/>
> </wsgen>
>
> What does wsgen.sh -version show ?
>
>
> Jitu
>
> Thierry Rietsch wrote:
>
>> Hi
>>
>> I try to run the wsgen from a build.xml:
>>
>> <target name="wsgen" depends="compile" description="Build the webservice
>> artifacts">
>> <wsgen
>> classpath="${build.classes}"
>> sei="test.webservice.server.Hello"
>> destdir="${build.generated}"
>> genwsdl="true"
>> debug="true"
>> />
>> </target>
>>
>>
>> [wsgen] error: Could not find class file for test.webservice.server.Hello
>> [wsgen] 1 error
>> {wsgen] error: compilation failed, errors should have been reported
>> [wsgen] Command invoked: wsgen /opt/java/jre/bin/java -classpath
>> /home/thierry/development/eclipse/test/build/web/WEB-INF/classes -d
>> /home/thierry/development/eclipse/test/build/web/WEB-INF/generated -g
>> -wsdl test.webservice.server.Hello
>>
>> But when I run the command over the wsgen.sh from jaxws-ri/bin, it works:
>>
>> ./wsgen.sh -classpath /home/thierry/development/eclips
>> e/test/build/web/WEB-INF/classes -d
>> /home/thierry/development/eclipse/test/build /web/WEB-INF/generated -g
>> -wsdl test.webservice.server.Hello
>>
>> Is this a bug or did I missconfigured something?
>>
>> Thanks for your help,
>>
>> Thierry
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
>> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>