title: NoMessageBodyWriterFoundFailure: Could not find MessageBodyWriter for response object of type
body: <p>I am getting the below error even though the RESTEasy JAXB jar - resteasy-jaxb-provider.jar is bundled in the WAR file</p>
  
  <pre><code>04:52:54,461 ERROR [org.jboss.resteasy.core.SynchronousDispatcher] (default task-1) Failed executing GET /editor/getMetadata/com.karthik.editor.model.EditorAuditEditor: o
  rg.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not find MessageBodyWriter for response object of type: com.karthik.SerializedStatusTO of media type: app
  lication/xml
          at org.jboss.resteasy.core.ServerResponse.writeTo(ServerResponse.java:166)
          at org.jboss.resteasy.core.SynchronousDispatcher.writeJaxrsResponse(SynchronousDispatcher.java:485)
          at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:422)
          at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:111)
          at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:217)
          at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:159)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
          at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
          at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
  </code></pre>
  
  <p>I have also included jboss-deployment-structure.xml in my WAR to exclude JBoss provided module/jars</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2"&gt;
    &lt;deployment&gt;
          &lt;exclude-subsystems&gt;
              &lt;subsystem name="resteasy" /&gt;
          &lt;/exclude-subsystems&gt;
          &lt;exclusions&gt;
              &lt;module name="javaee.api" /&gt;
              &lt;module name="javax.ws.rs.api"/&gt;
              &lt;module name="org.jboss.resteasy.resteasy-jaxrs" /&gt;
          &lt;/exclusions&gt;
          &lt;local-last value="true" /&gt;
      &lt;/deployment&gt;
  &lt;/jboss-deployment-structure&gt;
  </code></pre>
  
  <p>I have deployed the WAR on JBoss 7 EAP. I am currently working on migrating my apps from JBoss 5 to JBoss 7. There is no code change and works fine on JBoss5. Can you please help resolve this issue on JBOSS 7.</p>