Thank you Lin and Charith! I added tools.jar to the 'shared.loader' parameter of catalina.properties and it works. I'm using Java6 on Linux FC. It seems tomcat doesn't have on the classpath that jar file
javier --- En date de : Ven 20.3.09, Charith Wickramarachchi <[email protected]> a écrit : > De: Charith Wickramarachchi <[email protected]> > Objet: Re: problem using jaxws WS on tomcat > À: [email protected] > Date: Vendredi 20 Mars 2009, 5h25 > Hi, > > Try putting jaxws-rt.jar and jaxws-tools.jar in the class > path (in the lib > directry in axis2). > This problem will not come when you are using JAVA 6 > > thank you, > Charith > > > On Tue, Mar 17, 2009 at 8:18 PM, Lin Sun > <[email protected]> wrote: > > > Hi, > > > > I haven't run axis2 with tomcat myself but > I've been running axis2 > > within geronimo for a while. > > > > I think the prob is that tomcat is unable to load/find > the Sun's jaxws > > tools (either jaxws-rt jar or jaxws-tools jar or both) > that are used > > to generate WSDL from annotated service. You may > need to copy the > > Sun's jaxws tools jar(s) to a sharedlib dir in > tomcat to get around > > this prob. > > > > HTH > > > > Lin > > > > On Sun, Mar 15, 2009 at 3:27 PM, javier > <[email protected]> wrote: > > > > > > Hello everybody, > > > > > > I have some issues trying to deploy my annotated > service on Tomcat 6. > > When I try to deploy the same WS using the standalone > server of Axis2 > > everything works fine (I'm using Java6 and latest > stable versions of Tomcat > > and Axis2.war). Using tomcat, I cannot obtain the wsdl > but I can get the > > wsdl2! Does exist any version limitation or extra > step to configure the > > system? I tried [1] and it didn't work and I think > I is applied only for > > Java5, isn't it?. Any clue is welcome. At the end > of this message you can > > see the error message displayed on the browser when I > click on the service > > URL > > > > > > Thank you > > > javier > > > > > > [1] > > > http://weblogs.java.net/blog/ramapulavarthi/archive/2007/07/running_jaxws_s.html > > > > > > > > > javax.xml.ws.WebServiceException: Error occurred > generating WSDL file for > > Web service implementation class {example.ws.Sample}: > > {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.ListingAgent.processListService(ListingAgent.java:287) > > > at > > > org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:242) > > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > > > at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > > > at > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > > > at > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > > > at > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) > > > at > > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) > > > at > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) > > > at > > > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > > > at java.lang.Thread.run(Thread.java:619) > > > Caused by: java.lang.ClassNotFoundException: > > com.sun.tools.ws.spi.WSToolsObjectFactory > > > at > > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) > > > at > > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) > > > 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) > > > ... 19 more > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > Charith Dhanushka Wickramarachchi > http://charithwiki.blogspot.com/
