Hello everyone, I'm newly introduced to camel and I'm currently playing around with it, with a view of integrating it in our stack. I've currently come up against an issue with CXF WS as a producer which has left me scratching my head. My setup is as follows
<camel-version>2.4.0</camel-version> <log4j-version>1.2.14</log4j-version> <cxf-version>2.2.3</cxf-version> Using Spring camel-context is <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" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd"> <bean name="testProcessor" class="com.gameaccount.remus.ConceptProcessor" /> <bean id="endpointBean" class="com.gameaccount.remus.EndpointBean" /> <!-- CXF configuration for web services --> <import resource="classpath:META-INF/cxf/cxf.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" /> <cxf:cxfEndpoint id="clientAuthEndpoint" address="http://test.xxxx.xx:8084/SeamlessIntegration.asmx" serviceClass="test.SeamlessIntegrationSoap" /> <camelContext xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="netty:tcp://127.0.0.1:5155?disconnect=true&textline=true&delimiter=NULL&encoding=UTF8" /> <unmarshal> <jaxb prettyPrint="true" contextPath="com.gameaccount.protocol.db" /> </unmarshal> <to uri="mock:result" /> <to uri="endpointBean" /> --> <to uri="cxf:bean:clientAuthEndpoint"/> </route> </camelContext> </beans> Two questions arise out of this. 1) How does the cxf endpoint call get populated? Do i need an intermediary Processor bean? 2) When I execute mvn camel:run I get the following error [pache.camel.spring.Main.main()] DefaultManagementAgent DEBUG Registered MBean with objectname: org.apache.camel:context=spazstik.local/camelContext,type=services,name=ProducerCache(0x1ff52524) [pache.camel.spring.Main.main()] CxfEndpoint DEBUG Using DefaultBus org.apache.cxf.bus.cxfbusi...@4b133fd6 ************************************* Error occurred while running main from: org.apache.camel.spring.Main java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:415) at java.lang.Thread.run(Thread.java:637) Caused by: java.lang.NoSuchFieldError: dataBindingSet at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.reset(ReflectionServiceFactoryBean.java:267) at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.reset(JaxWsServiceFactoryBean.java:125) All comments welcome :) Yiannis
