I have a similar case described here: Dynamically changing the return type of a RESTEasy service
The problem I am facing is that I am trying to return a list of objects (annotated using @XMLRootEntity ), but I get an error code on 500 servers:
The server detected an internal error (could not find a MessageBodyWriter for the response object of type: java.util.ArrayList media type: application / json), which prevented it from executing this request.
Can you give some tips on how to solve this problem?
I'm not sure where to look.
Thanks.
java rest web-services tomcat7
Radu
source share