users@jax-ws.java.net

Problems with ant wsgen

From: Thierry Rietsch <thierry.rietsch_at_students.fhnw.ch>
Date: Mon, 21 Aug 2006 12:26:14 +0200

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