Hello all,

I have a very simple Axis2 1.4.1/JAX-WS web service with two operations: one 
which returns a String and which works just fine and another one with is 
supposed to return a list of strings.

When attempting to invoke the getList operation (listed below) I get the 
following:

org.apache.axis2.AxisFault: javax.xml.bind.MarshalException
 - with linked exception:
[javax.xml.bind.JAXBException: java.util.List is not known to this context]
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at 
org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:220)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
        at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
[..]


Here is the method:
public List<String> getList() {
        List<String> ret = new LinkedList<String>();
        ret.add("whee");
        return ret;
    }

Any suggestion or idea as to why this is happening and/or how I might go about 
fixing it would be greatly appreciated.

Thank you,
Chris



      

Reply via email to