I am trying to develop simple REST web service using JAX-RS and Jersey. I have created Maven Project in IntelliJ. Here is my web service example codes:
and here is my pom.xml file structure:
When I deploy my project to Tomcat Server 7.0.84 it is working very well. Every type HTTP request which I added to MessageResource.java class is listened from server and responded. But if I try to deploy my project to Resin 4.0.55 Server, I get the following error every single try.
When I check my Maven dependency libraries, for this scenario I check javax.ws.rs it can be clearly seen the related class "MessageBodyReader" is in my project exrternal library.
Please help me guys, im trying for days to fix this problem and I have researched all related Resin documantation and I have got nothing. Thanks.
Problems with MessageBodyReader/Writer not being found is something that most users of JAX-RS implementations run into from time to time and is often a configuration issue with the providers not being on the classpath. However, there is a range of potential reasons and there is a very good article on the Jersey website which lists different actions you can try: What to do when JAX-RS cannot find it’s Providers aka My message body writer is not used.