Greetings,
I'm developing a WS in Jersey / Restful which is working correctly on Glassfish but on Tomcat I get the error trying to consume the service.
SEVERE: Mapped exception to response: 500 (Internal Server Error) javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class java.util.ArrayList, and Java type java.util.ArrayList, and MIME media type application / json was not found at com.sun.jersey.spi.container.ContainerResponse.write (ContainerResponse.java:285) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest (WebApplicationImpl.java:1437)
Only occurs with "application / json" produces or MediaType.APPLICATION_JSON already with "text / html" does not give tomcat error.
Has anyone ever gone through this?!
[]'s