title: Restful MessageBodyWriter not found
body: <p>I am working on Restful service. The problem occurred after we moved to Glassfish 4.1 . The error string is :</p>
  
  <p><strong>SEVERE:   MessageBodyWriter not found for media type=application/xml, type=...</strong></p>
  
  <p>But my classes consume application/json. Here is example:</p>
  
  <pre><code>@Path("get_customer_info")
  @Consumes("application/json;charset=utf8")
  public class CustomerInfoResource {
  
      @Context
      private UriInfo context;
  
      public CustomerInfoResource () {
      }
  
      @POST
      public Player getPlayerInfo(){
      ....
      }
  }
  </code></pre>
  
  <p>I have done the following and could not solve it:
  Added all jersey jars version 2.13 , jackson jars 2.4.3 . Also added jersey-media-json-jackson-2.13.jar which contains org.glassfish.jersey.jackson.JacksonFeature class. By the way ApplicationConfig class is:</p>
  
  <pre><code>@javax.ws.rs.ApplicationPath("resources")
  public class ApplicationConfig extends Application {
  
      @Override
      public Set&lt;Class&lt;?&gt;&gt; getClasses() {
          Set&lt;Class&lt;?&gt;&gt; resources = new java.util.HashSet&lt;Class&lt;?&gt;&gt;();
          try {
              Class jsonProvider = Class.forName("org.glassfish.jersey.jackson.JacksonFeature");
              resources.add(jsonProvider);
          } catch (ClassNotFoundException ex) {
              java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, null, ex);
          }
          addRestResourceClasses(resources);
          return resources;
      }
  </code></pre>