Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Invalid
-
1.4
-
None
-
None
-
Axis2-1.4, jdk15, winxp
Description
Following error is thrown when invoking a java-first jaxws based service in RESTful manner.
[ERROR] An error was detected during JAXWS processing
org.apache.axis2.AxisFault: An error was detected during JAXWS processing
at org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:187)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:257)
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)
Steps to reproduce:
================
1. Deploy the attached service on Axis2server
It includes the following jaxws annotated class
package org.test;
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-)
return buff.toString();
}
}
2. Invoke the service in REStful manner
http://10.100.1.150:8080/axis2/services/ExamplePOJOServiceService.ExamplePOJOServicePort/reverse?input=hello
I copied jaxws-tools.jar and jaxws-rt.jar into Axis2/lib directory. However, I'm still getting the same error.