Fails to generate wsdl when deploying annotated .class file using POJODeployer
in axis2-1.4
-------------------------------------------------------------------------------------------
Key: AXIS2-3831
URL: https://issues.apache.org/jira/browse/AXIS2-3831
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Environment: winxp, jdk15
Reporter: Charitha Kankanamge
Priority: Blocker
I deployed the following annotated class in Axis2-1.4 (Copied the .class file
to Axis2_home/repository/pojo)
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService
public class ExamplePOJOService {
@WebMethod
public String reverse(String input) {
StringBuffer buff = new StringBuffer();
for (int i=input.length()-1; i>=0; i--) {
buff.append(input.charAt(i));
}
return buff.toString();
}
}
When clicking on the servicename of the http://localhost:8080/axis2/services/
page I got the following exception.
[ERROR] Error occurred generating WSDL file for Web service implementation class
{ExamplePOJOService}: {java.lang.Exception: A WSDL Definition could not be gene
rated for the implementation class: ExamplePOJOService}
java.lang.Exception: A WSDL Definition could not be generated for the
implementation class: ExamplePOJOService
at
org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:177)
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:1319)
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:595)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]