title: Can't enable POJO based JSON binding support for Jackson in Jersey 2.0
body: <p>I'm using Jersey to produce JSON (with POJO mapping through Jackson) and Jetty (start from main method).<br>
  It works perfect for Jersey 1.x.:</p>
  
  <pre class="lang-java prettyprint-override"><code>ServletHolder sh = new ServletHolder(ServletContainer.class);
  sh.setInitParameter("com.sun.jersey.config.property.resourceConfigClass",
                          "com.sun.jersey.api.core.PackagesResourceConfig");
  sh.setInitParameter("com.sun.jersey.config.property.packages", "service");
  sh.setInitParameter("com.sun.jersey.api.json.POJOMappingFeature", "true");
  ...
  context.addServlet(sh, "/rest/*");
  Server server = new Server(8080);
  server.setHandler(context);
  server.start();
  </code></pre>
  
  <p>Now I migrated my project to Jersey 2.0 and failed to enable POJO based JSON binding in it, I get the following:
  <code>org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: MessageBodyWriter not found for media type=application/json, type=class business.entity.ExampleEntity, genericType=class business.entity.ExampleEntity.</code></p>
  
  <p>Obviously, <code>com.sun.jersey.api.json.POJOMappingFeature</code> no longer valid as Jersey goes to <code>org.glassfish</code></p>
  
  <p>The <a href="https://jersey.java.net/documentation/latest/media.html#json.jackson">documentation</a> say the following:</p>
  
  <blockquote>
    <p>In order to use Jackson as your JSON (JAXB/POJO) provider you need to register JacksonFeature and a ContextResolver for ObjectMapper (if needed) in your Configurable (client/server).</p>
  </blockquote>
  
  <p>But I can't figure out how to do it correctly in my case.</p>
  
  <p>I created a little <a href="https://github.com/halfstrik/Jersey20Migration">project</a> for this question:</p>
  
  <p>branch <code>master</code> - worked example for Jersey 1.17.1;</p>
  
  <p>branch <code>jersey-2.0-migration</code> - not working attempt to migrate to Jersey 2.0 - <strong>test failed</strong>;</p>
  
  <p>branch <code>jersey-2.0-migrate-client-only</code> - non working attempt to use Jersey client 2.0 with working Jersey server 1.17.1 - <strong>test failed</strong>.</p>
  
  <p><strong>Question is: how to enable POJO based JSON binding in Jersey 2.0</strong></p>