I am trying to integrate CXF restful web services with Apache Camel. I am getting the following exception when I send a request to my web service:
Caused by:
solved all the errors.. actually the problem was not when my cxf server was getting hit, it comes out to be when the exchange was in the "to" part... i had to add a processor in between from and to and override all the CamelHttpUri , CamelHttpMethod etc .... to make it work.
<camelcxf:rsServer id="rsServer" address="http://localhost:port/MyApplication/rest/foobar serviceClass="com.camel.example.FooBar" /> <camel:camelContext id="camelContext-1"> <camel:route>
<camel:from uri="cxfrs:bean:rsServer" />
<camel:process ref="customInProcessor" />
<camel:to uri="http://www.google.com" />
</camel:route>
</camel:camelContext>
<bean id="customInProcessor" class="com.camel.MyInProcessor" />