Hi, Can any body help me out please... I am trying with Axis2 on Tomcat 6 (embedded as axis2.war). But while trying to deploy web services as jar using annotations (WEB-INF/servicejars/myservice.jar or WEB-INF/pojo/MyService.class) It’s generating only the wsdl2. It’s not generating the wsdl (original wsdl1 as it says…in log).
Exception while trying to point to wsdl1… <<error> <description>Unable to generate WSDL 1.1 for this service</description> <reason>If you wish Axis2 to automatically generate the WSDL 1.1, then please +set useOriginalwsdl as false in your services.xml</reason> javax.xml.ws.WebServiceException: Error occurred generating WSDL file for Web service implementation class {HelloPojo}: {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 . . …… My problem is I want to avoid the services.xml file and want to use annotations to dynamically generate the configuration files required. In that case where can I specify for the useOriginalwsdl configuration as I don’t have the services.xml file itself… This is working if I use the services.xml file and deploy it in the services/ dir as a .aar file. But my goal is to avoid the services.xml file using annotations and deploy the service as .jar without any services.xml. Your suggestion / guidance will be highly appreciated as this is critical to our portability and maintenance of our web services. With Best Regds, Upananda Singha Kodiak Networks Bangalore – 560 001 -- View this message in context: http://www.nabble.com/useOriginalWsdl-generates-error-when-set-to-true.-tp16834658p21412469.html Sent from the Axis - User mailing list archive at Nabble.com.