Response received is of type java.lang.String instead of javax.ws.rs.core.Response ----------------------------------------------------------------------------------
Key: CAMEL-2224 URL: https://issues.apache.org/activemq/browse/CAMEL-2224 Project: Apache Camel Issue Type: Bug Components: camel-cxf Affects Versions: 2.1.0 Reporter: Charles Moulliard Attachments: camel-cxf-rest-issue.zip {code} D:\Soft\opensource\curl-7.19.5-win32-nossl>curl -i -H "Accept: application/xml" http://localhost:8080/cxf/camel-rest-example/reportservice/incidents/1 11/ HTTP/1.1 500 Internal Server Error Content-Type: text/xml; charset=iso-8859-1 Content-Length: 256 Server: Jetty(6.1.x) <ns1:XMLFault xmlns:ns1="http://cxf.apache.org/bindings/xformat"><ns1:faultstring xmlns:ns1="http://cxf.apache.org/bindings/xformat">java.lang.ClassCa stException: java.lang.String cannot be cast to javax.ws.rs.core.Response</ns1:faultstring></ns1:XMLFault> {code} See the code in attachment Here is the config of apache karaf feature {code} # # Comma separated list of features repositories to register by default # featuresRepositories=mvn:org.apache.felix.karaf/apache-felix-karaf/1.0.0/xml/features,mvn:org.apache.camel.karaf/features/2.1-SNAPSHOT/xml/features,jar:mvn:org.apache.camel.example/reportincident.restful.features/1.0-SNAPSHOT!/reportincident.features-1.0-SNAPSHOT-features.xml # # Comma separated list of features to install at startup # featuresBoot=spring,spring-dm,camel,http-reportingincident,spring-web,camel-cxf,reportincident {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.