While I am trying to return List its throwing No message body writer has been found for response class ArrayList.
I have code as follows:
@POST
@Path("/{scope}/{application}/tables")
@Produces("application/xml")
public List<String> getTableNames(@PathParam("scope") String scope,
@PathParam("application") String application, Request request) {
// For example, I am returning a list of String
return new ArrayList<String>(4);
}
Please help me. Thanks in advance
context.xml
and Mavenpom.xml
, see https://mcmap.net/q/282221/-using-jaxb-to-unmarshal-marshal-a-list-lt-string-gt – Contemporary