the param value should point to the folder where you have created the class.


i followed this link to implement my first jersey web service : rest in java i run it on tomcat v7.0 and it worked fine. have you tried it on tomcat? if not, i suggest you to try it. sometimes it happened for me that i got 404 error permanently. to fix the error i deleted tomcat and create a new server wizard and then it works fine.

as @tom said it may related to "application/plain". use mediatype.text_plain instead.

you need to add these jar files under /web-inf/lib/ : asm-3.1, jackson-core-asl-1.9.2, jackson-jaxrs-1.9.2, jackson-mapper-asl-1.9.2, jackson-xc-1.9.2, jersey-client-1.11, jersey-core-1.11, jersey-json-1.11, jersey-server-1.11, jersey-servlet-1.11, jettison-1.1 and jsr311-api-1.1.1.

Related Query

More Query from same tag