1
Greetings,
I am developing a WS in Jersey/Restful which is working properly in Glassfish but in Tomcat I get the error when trying to consume the service.
GRAVE: Mapped Exception to Answer: 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 produces "application/json" or Mediatype.APPLICATION_JSON already with "text/html" does not give error in Tomcat.
someone has been there?!
[]s
Could post your code and configuration file?
– Luídne
I’m sorry, I hadn’t noticed your comment... but I’ve discovered the problem... see below... Thank you !
– Leandro Silva