Iam using Dynamic Web Project 2.5, Jersey and Tomcat 7.0 to create a Java Restful Webservice. I want to response JSON if someone request data. But i always get the following error from Tomcat:
That my configurations in relation to web.xml and annotations are ok is demonstrated by using xml instead of JSON. Then its working fine:
If i switch MediaType Notation from APPLICATION_XML to APPLICATION_JSON the error is thrown.
Iam using Chrome-Browser and i read that chrome just show a json-string if requested. I hope someone can help me. Thanks in advance.