I'm using JAX-RS to provide rest API in my Java application and I'm having problem with deserializing objects that contain other objects. For such objects (beans), upon deserializing, I get the error "A message body reader for Java class ClassName, and Java type class ClassNAme2, and MIME media type application/json was not found". I googled the error and figured out that there should be something wrong regarding "MessageBodyReader"; however, I'm not quite sure what is going on and how I should use this interface to address the problem. Any help is much appreciated.