title: No message body writer has been found for response class ArrayList
body: <p>While I am trying to return List its throwing No message body writer has been found for response class ArrayList.</p>
  
  <p>I have code as follows:</p>
  
  <pre><code>@POST 
  @Path("/{scope}/{application}/tables")
  @Produces("application/xml")
  public List&lt;String&gt; getTableNames(@PathParam("scope") String scope,
      @PathParam("application") String application, Request request) {
  
      // For example, I am returning a list of String
      return new ArrayList&lt;String&gt;(4);
  }
  </code></pre>
  
  <p>Please help me. Thanks in advance</p>