title: ProcessingException: RESTEASY003145: Unable to find a MessageBodyReader of content-type application/json and type interface java.util.List - JAR only
body: <p>I'm using the resteasy client with the jackson provider. Here is the build.gradle snippet:</p>
  
  <pre><code>compile "org.jboss.resteasy:resteasy-jaxrs:3.6.2.Final"
  compile "org.jboss.resteasy:resteasy-client:3.6.2.Final"
  compile "org.jboss.resteasy:resteasy-jackson2-provider:3.6.2.Final"
  </code></pre>
  
  <p>The line in which I deal with the server response is</p>
  
  <pre><code>(List&lt;String&gt;) response.readEntity(List.class)
  </code></pre>
  
  <p>(the server returns a <code>List&lt;String&gt;</code> and the request method is annotated with <code>@Produces(MediaType.APPLICATION_JSON)</code>)</p>
  
  <p>When I run the client from within Eclipse everything is fine, but after I create a JAR with gradle (task: jar) and launch it and do the request, I get:</p>
  
  <pre><code>javax.ws.rs.ProcessingException: RESTEASY003145: Unable to find a MessageBodyReader of content-type application/json and type interface java.util.List
      at org.jboss.resteasy.core.interception.ClientReaderInterceptorContext.throwReaderNotFound(ClientReaderInterceptorContext.java:37)
      at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.getReader(AbstractReaderInterceptorContext.java:80)
      at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.proceed(AbstractReaderInterceptorContext.java:53)
      at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readFrom(ClientResponse.java:334)
      at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readEntity(ClientResponse.java:261)
      at org.jboss.resteasy.specimpl.BuiltResponse.readEntity(BuiltResponse.java:237)
  
  ... (at the line (List&lt;String&gt;) response.readEntity(List.class))
  </code></pre>
  
  <p>Inside <code>META-INF\services\</code> of the jar there are 2 <code>javax.ws.rs.ext.Providers</code> files:</p>
  
  <pre><code>org.jboss.resteasy.plugins.providers.DataSourceProvider
  org.jboss.resteasy.plugins.providers.DocumentProvider
  org.jboss.resteasy.plugins.providers.DefaultTextPlain
  org.jboss.resteasy.plugins.providers.DefaultNumberWriter
  org.jboss.resteasy.plugins.providers.DefaultBooleanWriter
  org.jboss.resteasy.plugins.providers.StringTextStar
  org.jboss.resteasy.plugins.providers.SourceProvider
  org.jboss.resteasy.plugins.providers.InputStreamProvider
  org.jboss.resteasy.plugins.providers.ReaderProvider
  org.jboss.resteasy.plugins.providers.ByteArrayProvider
  org.jboss.resteasy.plugins.providers.FormUrlEncodedProvider
  org.jboss.resteasy.plugins.providers.JaxrsFormProvider
  org.jboss.resteasy.plugins.providers.CompletionStageProvider
  org.jboss.resteasy.plugins.providers.ReactiveStreamProvider
  org.jboss.resteasy.plugins.providers.FileProvider
  org.jboss.resteasy.plugins.providers.FileRangeWriter
  org.jboss.resteasy.plugins.providers.StreamingOutputProvider
  org.jboss.resteasy.plugins.providers.IIOImageProvider
  org.jboss.resteasy.plugins.interceptors.CacheControlFeature
  org.jboss.resteasy.plugins.interceptors.encoding.ClientContentEncodingAnnotationFeature
  org.jboss.resteasy.plugins.interceptors.encoding.ServerContentEncodingAnnotationFeature
  org.jboss.resteasy.plugins.interceptors.encoding.MessageSanitizerContainerResponseFilter
  org.jboss.resteasy.plugins.providers.sse.SseEventProvider
  org.jboss.resteasy.plugins.providers.sse.SseEventOutputProvider
  org.jboss.resteasy.plugins.providers.sse.SseEventSinkInterceptor
  </code></pre>
  
  <p>and</p>
  
  <pre><code>org.jboss.resteasy.plugins.providers.jackson.ResteasyJackson2Provider
  org.jboss.resteasy.plugins.providers.jackson.UnrecognizedPropertyExceptionHandler
  org.jboss.resteasy.plugins.providers.jackson.PatchMethodFilter
  </code></pre>
  
  <p>So the jackson2 provider seems to be listed.</p>
  
  <p>Questions I looked at:</p>
  
  <p><a href="https://stackoverflow.com/questions/39861900/resteasy003145-unable-to-find-a-messagebodyreader-of-content-type-application-j">RESTEASY003145: Unable to find a MessageBodyReader of content-type application/json and type class org.keycloak.representations.AccessTokenResponse</a></p>
  
  <p><a href="https://stackoverflow.com/questions/12175564/unable-to-find-a-messagebodyreader-of-content-type-application-json-and-type-cla">Unable to find a MessageBodyReader of content-type application/json and type class java.lang.String</a></p>
  
  <p><a href="https://stackoverflow.com/questions/47040557/unable-to-find-a-messagebodyreader-of-content-type-text-html-and-type-interface">Unable to find a MessageBodyReader of content-type text/html and type interface java.util.List</a></p>
  
  <p>I don't know if the problem is in the gradle task of creating the jar, the jackson provider, resteasy...</p>