• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Resin Server java.lang.ClassNotFoundException: javax.ws.rs.ext.MessageBodyReader  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Ranch Hand
Posts: 114
Java Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Faruk

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.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!