I added the dependency but still get the error. Here is my config:

<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:cxf="http://camel.apache.org/schema/cxf";
        xmlns:jaxrs="http://cxf.apache.org/jaxrs";
        xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
       http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf.xsd
       http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
       http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
    ">
        <!-- Defined the real JAXRS back end service  -->
        <jaxrs:server id="restService" address="http://localhost:9002/rest";
                staticSubresourceResolution="true">
                <jaxrs:serviceBeans>
                        <ref bean="eventProcessor" />
                </jaxrs:serviceBeans>
        </jaxrs:server>

        <bean id="jsonProvider" 
class="org.apache.cxf.jaxrs.provider.JSONProvider"
/>

        <bean id="eventProcessor" class="org.blah.MyClass" />

        <!-- Defined the server endpoint to create the cxf-rs consumer -->
        <cxf:rsServer id="rsServer" address="http://localhost:9000/route";
                serviceClass="org.blah.MyClass" />

        <!-- Defined the client endpoint to create the cxf-rs consumer -->
        <cxf:rsClient id="rsClient" address="http://localhost:9002/rest";
                serviceClass="org.blah.MyClass" />

        <!-- The camel route context -->
        <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring";>
                <route>
                        <from uri="cxfrs://bean://rsServer" />

                        <setHeader headerName="CamelCxfRsUsingHttpAPI">
                                <constant>True</constant>
                        </setHeader>
                        <to uri="cxfrs://bean://rsClient" />
                </route>
        </camelContext>

</beans>
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-REST-tp3213086p3214116.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to