Hello developers!

I'm trying to code an axis server like  
org.apache.axis2.transport.SimpleAxis2Server to deploy JAX-WS services. If I 
use the default AXIS2_CLASSPATH the server works. However I want to include in 
the classpath only the minimal set of necessary jars to do the same thing. 
Right now I just test with the modules axis2-jaxws, axis2-metadata, 
axis2-kernel and their dependencies, but when I start the server and try to 
recover the wsdl of any deployed service I have the following error: "Unable to 
generate WSDL 1.1 for this service" (see details at the end of the message). So 
I dont know which modules I should include to deploy a execute an annotated 
service propertly including the wsdl generation. Do you have any thought about 
this?

best regards
javier 

 javax.xml.ws.WebServiceException: Error occurred generating WSDL file for Web 
service implementation class {fr.cnrs.i3s.jgasw.ws.Jgaswmercury}: 
{java.lang.ClassNotFoundException: com.sun.tools.ws.spi.WSToolsObjectFactory}
        at 
org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:187)
        at 
org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:371)
        at 
org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:364)
        at 
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1322)
        at 
org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:146)
        at 
org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
        at 
org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
        at 
org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: 
com.sun.tools.ws.spi.WSToolsObjectFactory
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at 
org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:166)
        ... 10 more




Reply via email to