title: No message body writer has been found for response class ArrayList [jboss 7]
body: <p>Our application with restful services are working fine on jboss 6, after upgrading to jboss 7, none of the rest services are working.   </p>
  
  <p>Exception we encountered is http 500 internal server error:</p>
  
  <pre><code>One of the restful service error is:
      INFO  - HTTP Status Code: 500
      INFO  - Web Service call execution: 1410 ms.
      INFO  - Content-Length: null
      INFO  - Content-Type: text/plain
      INFO  - Message-Body: **No message body writer has been found for response class ArrayList.**
  </code></pre>
  
  <p>application has the following dependencies.</p>
  
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
              &lt;artifactId&gt;cxf-bundle-jaxrs&lt;/artifactId&gt;
              &lt;version&gt;2.7.8&lt;/version&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;com.sun.xml.bind&lt;/groupId&gt;
                      &lt;artifactId&gt;jaxb-impl&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;javax.ws.rs&lt;/groupId&gt;
                      &lt;artifactId&gt;javax.ws.rs-api&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
     &lt;dependency&gt;
              &lt;groupId&gt;javax.ws.rs&lt;/groupId&gt;
              &lt;artifactId&gt;javax.ws.rs-api&lt;/artifactId&gt;
              &lt;version&gt;2.0&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>After analysis I found that the jboss has rest easy api which is conflicting with cxf libraries. </p>
  
  <p>I tried lot of options available on the web to exclude resteasy, but it didnt help.</p>
  
  <p>how to exclude the jboss embedded libraries rest easy and other rest components to force jboss to use the application libraries?</p>