title: Unable to find a MessageBodyReader of content-type text/html and type interface java.util.List
body: <p>Please do not consider it as duplicate request as i have gone through all the 
     post in stackoverflow, none of them answered. no response i found.</p>
  
  <p>Issue is : </p>
  
  <p>I am facing a very weird issue making a GET request with same piece of code 
     via standalone application (inside main()). It works where as if the same 
     code is put in Java EE app and deployed on a wildfly 10 server, 
     it gives Error </p>
  
  <p>"Unable to find a MessageBodyReader of content-type text/html and type 
     interface java.util.List"</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>ClientConfig configuration = new ClientConfig();
  configuration.property(ClientProperties.CONNECT_TIMEOUT, 10000);
  configuration.property(ClientProperties.READ_TIMEOUT, 10000);
  Client iexRestClient=ClientBuilder.newClient(configuration);
  WebTarget webTarget = 
  iexRestClient.target("https://api.iextrading.com/1.0/ref-data/symbols/");
  Response response = 
  webTarget.request().accept(MediaType.APPLICATION_JSON).get(Response.class);
  System.out.println("response status "+response.getStatus());
  List&lt;IEXTicker&gt; tickers = response.readEntity(new 
  GenericType&lt;List&lt;IEXTicker&gt;&gt;(){});
  System.out.println("size of tickers "+tickers.size());
  </code></pre>
  
  <p><strong>Required jars(pom.xml file)</strong></p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.glassfish.jersey.core&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
      &lt;version&gt;2.26&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.glassfish.jersey.inject&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-hk2&lt;/artifactId&gt;
      &lt;version&gt;2.26&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.glassfish.jersey.media&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-media-json-jackson&lt;/artifactId&gt;
      &lt;version&gt;2.26&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p><strong>Model class : IEX_Ticker.java</strong></p>
  
  <pre><code>@Entity
  @Table(name = "IEX_Ticker")
  @JsonIgnoreProperties(ignoreUnknown = true)
  public class IEXTicker implements Serializable {
  
  
      private static final long serialVersionUID = 1L;
  
      public IEXTicker() {
          super();
      }
  
      @Id
      @Column(name = "symbol", length = 20)
      private String symbol;
  
      @Column(name = "name", length = 500)
      private String name;
  
      @Column(name = "date", length = 20)
      private String date;
  
      @Column(name = "isEnabled")
      private boolean isEnabled;
  
      @Column(name = "type", length = 20)
      private String type;
  
      public String getSymbol() {
          return symbol;
      }
  
      public void setSymbol(String symbol) {
          this.symbol = symbol;
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      public String getDate() {
          return date;
      }
  
      public void setDate(String date) {
          this.date = date;
      }
  
  
      public boolean isEnabled() {
          return isEnabled;
      }
  
      public void setEnabled(boolean isEnabled) {
          this.isEnabled = isEnabled;
      }
  
  
      public String getType() {
          return type;
      }
  
      public void setType(String type) {
          this.type = type;
      }
  
      public String toString() {
          return "Symbol :" + symbol + " Name : " + name + " Date : " + date + " IsEnabled : 
          "+isEnabled+" Type:
          "+type;
      }
  
  }
  </code></pre>
  
  <p><strong>Error :</strong></p>
  
  <pre><code>2017-10-31 20:32:17 ERROR stderr:71 - javax.ws.rs.ProcessingException: RESTEASY003145: Unable to find a MessageBodyReader of content-type text/html and type interface java.util.List  
  2017-10-31 20:32:17 ERROR stderr:71 - javax.ws.rs.ProcessingException: RESTEASY003145: Unable to find a MessageBodyReader of content-type text/html and type interface java.util.List  
  2017-10-31 20:32:18 ERROR stderr:71 -   at org.jboss.resteasy.core.interception.ClientReaderInterceptorContext.throwReaderNotFound(ClientReaderInterceptorContext.java:42)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.getReader(AbstractReaderInterceptorContext.java:75)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.proceed(AbstractReaderInterceptorContext.java:52)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readFrom(ClientResponse.java:251)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readEntity(ClientResponse.java:181)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at  org.jboss.resteasy.specimpl.BuiltResponse.readEntity(BuiltResponse.java:225)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at com.swigel.iex.api.IEXTickerOperation.populateIEXTickerData1(IEXTickerOperation.java:127)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at java.lang.reflect.Method.invoke(Unknown Source)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at  org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at  org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at  org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)  
  2017-10-31 20:32:18 ERROR stderr:71 -   at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)
  </code></pre>