title: No message body writer has been found for class org.apache.cxf.message.MessageContentsList, ContentType: application/xml
body: <pre><code>&lt;cxf:rsServer id="rsServer" address="/services"
          serviceClass="com.mayank.restservice.resource.RestfulResource"&gt;
  
          &lt;cxf:providers&gt;
              &lt;bean class="org.codehaus.jackson.jaxrs.JacksonJsonProvider" /&gt;
              &lt;bean class="org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider" /&gt;
          &lt;/cxf:providers&gt;
  
      &lt;/cxf:rsServer&gt;
  
      &lt;camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"&gt;
  
          &lt;route&gt;
              &lt;from uri="cxfrs:bean:rsServer" /&gt;
              &lt;to uri="log:body?level=INFO" /&gt;
              &lt;to uri="activemq:queue:testQueue" pattern="InOnly" /&gt;
          &lt;/route&gt;
  
      &lt;/camelContext&gt;
  
      &lt;!-- ActiveMQ-beans definition --&gt;
      &lt;bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent"&gt;
          &lt;property name="brokerURL" value="tcp://localhost:61616" /&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>I have implemented the rest service using camel-cxf component support to route the response to activemq queue. Now when running the services url i get         No message body writer has been found for class org.apache.cxf.message.MessageContentsList, ContentType: application/xml
      message.</p>
  
  <pre><code>Below is my RestResource class.
  
  import javax.ws.rs.Consumes;
  import javax.ws.rs.POST;
  import javax.ws.rs.Path;
  import javax.ws.rs.Produces;
  import javax.ws.rs.core.MediaType;
  import com.mayank.restservice.model.ChequeDetails;
  import com.mayank.restservice.service.RestfulService;
  
  public class RestfulResource {
  
      private RestfulService restfulservice;
      public void setRestfulservice(RestfulService restfulservice) {
          this.restfulservice = restfulservice;
      }
  
      @Path("post")
      @POST
      @Consumes(MediaType.APPLICATION_JSON)
      @Produces(MediaType.APPLICATION_XML)
      public ChequeDetails persistDB(ChequeDetails chequedetails){
  
          return restfulservice.persistDB(chequedetails);
  
      }
  }
  </code></pre>
  
  <p>For testing when I tried using @Produce(APPLICATION_JSON) I get a success response.
  Not sure is this a problem from camel-cxf or in my application?</p>