• 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
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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.
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.

All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!