cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barry Hathaway <>
Subject Returning classes with lists
Date Wed, 17 Aug 2011 23:22:51 GMT
I have a method that returns a class containing a couple of lists; 
however, when it executes I get:

javax.xml.bind.JAXBException: class java.util.ArrayList nor any of its 
super class is known to this context.

The method is:

     @WebMethod(operationName="query", action="urn:query")
     public QueryResultSet query(@WebParam(name="sparcql")String sparcql)

where QueryResultSet is:

     public class QueryResultSet {
         private List<Object> columnNames;
         private List<Object> resultSet; <- Object will actually be a 
         ... getters and setters

How do you go about annotating the classes so the it gets marshalled 

Barry Hathaway

View raw message