title: RestEasy Client Exception - Cannot serialize object to JSON
body: <p>Edit:  I saw the "duplicate" question but I do not have a dependency problem.  I think it has something to do with not running in a container or using the MVN shade plugin to generate a "fat" jar.</p>
  
  <p>I have this code calling a service - I know the service works b/c I can call via CURL.  The issue is that the <code>ResteasyClient</code> is not recognizing the jackson-mapper serializer (I think):</p>
  
  <pre><code>ResteasyClient client = new ResteasyClientBuilder().build();
  String endpoint = ClientUtil.getEndpoint();
  ResteasyWebTarget target = client.target(endpoint);
  IService simple = target.proxy(IService.class);
  IAlertFact alertFact = ClientUtil.propertiesToAlertFact(alertProperties);
  Response response = simple.processAlert(alertFact);
  </code></pre>
  
  <p>Here are the maven deps:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt;
          &lt;artifactId&gt;resteasy-client&lt;/artifactId&gt;
          &lt;version&gt;3.0.9.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt;
          &lt;artifactId&gt;resteasy-jackson-provider&lt;/artifactId&gt;
          &lt;version&gt;3.0.9.Final&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>I thought having the <code>resteasy-jackson-provider</code> on the classpath would do the trick, but I keep getting this exception:</p>
  
  <pre><code>Caused by: javax.ws.rs.ProcessingException: could not find writer for content-type application/json type: com.myproject.AlertFact
          at org.jboss.resteasy.core.interception.ClientWriterInterceptorContext.throwWriterNotFoundException(ClientWriterInterceptorContext.java:40)
  </code></pre>
  
  <p>Is there something I have to do to the <code>ResteasyClientBuilder</code> to make it use Jackson, or what?</p>