You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Charles Moulliard (JIRA)" <ji...@apache.org> on 2009/11/24 17:45:52 UTC

[jira] Updated: (CAMEL-2224) Response received is of type java.lang.String instead of javax.ws.rs.core.Response

     [ https://issues.apache.org/activemq/browse/CAMEL-2224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charles Moulliard updated CAMEL-2224:
-------------------------------------

    Assignee: Willem Jiang

> 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
>            Assignee: Willem Jiang
>         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.