1

Possible Duplicate:
JAXB Marshalling Objects with java.lang.Object field

I am new in Web Services.I am trying to develop a service using JAX-WS.My service signature is like this.

@WebService
@MTOM
@SOAPBinding(style = SOAPBinding.Style.RPC)
public interface DocumentOperationService {
    @WebMethod
    Object[] getDocumentById(String strDocumentId);
}

but while running,at run time it's throwing an Exception:

javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException
 - with linked exception:
[javax.xml.bind.JAXBException: class [Ljava.lang.String; nor any of its super class is known to this context.]

I am not able to identify the problem.Can anybody suggest what's wrong in this.

Community
  • 1
  • 1
Nirdesh Sharma
  • 734
  • 5
  • 14

0 Answers0