I am trying with simple Jersey + JSON example but I get following error message body writer for Java class com.test.jsonexample and MIME media type application/json w
message body writer for Java class com.test.jsonexample and MIME media type application/json w
First of all if your @POST web-service returns a response you must add @Produces annotation.
@POST
@Produces
Ensure that jersey-json lib is in your classpath. Try removing the toString() method because it may broke the beans structure format.
jersey-json
toString()