I have problem when generating the WSDL usinf metro.
The error was :
genwsdl-ant.xml:5: taskdef class com.sun.tools.ws.ant.WsGen cannot be found.
In the classpath defined in the ant file, the jaxws-tools.jar and jaxws-rt.jar should be explicitely mentioned.
<taskdef classname="com.sun.tools.ws.ant.WsGen" name="wsgen">
<classpath path="${metroLib}/jaxws-tools.jar:${metroLib}/jaxws-rt.jar"></classpath>
</taskdef>
The error was :
genwsdl-ant.xml:5: taskdef class com.sun.tools.ws.ant.WsGen cannot be found.
In the classpath defined in the ant file, the jaxws-tools.jar and jaxws-rt.jar should be explicitely mentioned.
<taskdef classname="com.sun.tools.ws.ant.WsGen" name="wsgen">
<classpath path="${metroLib}/jaxws-tools.jar:${metroLib}/jaxws-rt.jar"></classpath>
</taskdef>
Where metroLib= C:/jaxws-ri-2.2.8/jaxws-ri/lib
Another error which accured also was :
You are running on JDK6 which comes with JAX-WS 2.1 API, but this tool requires JAX-WS 2.2 API
To resolve this problem, the jaxb-api.jar and jaxws-api.jar, you should create an endorsed directory in JAVA_Home/jre/lib/endorsed
No comments :
Post a Comment