camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: Error on using camel cxf "No binding factory… registered (but works in eclipse)
Date Fri, 27 Jun 2014 02:15:44 GMT

Can you use “mvn dependency:tree” to dump the third party jar list?
Just make sure the cxf-rt-bindings-soap-***.jar is in the list to fix the issue.

Willem Jiang

Red Hat, Inc.
Blog: (English) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem

On June 27, 2014 at 4:30:34 AM, dermoritz ( wrote:
> In my camel app i am creating cxf endpoints in java dsl:
> CxfEndpoint cxf = new CxfEndpoint(rtdmUrl, new
> CxfComponent(this.getContext()));
> cxf.setServiceClass(EventPortType.class);
> process.process(rtdmSetNameFactory.get(eventName)).to(cxf).process(handleRtdmAnswer);
> If try to run this route i get:
> Exception in thread "main" org.apache.camel.FailedToCreateProducerException:  
> Failed to create Producer for endpoint: End
> point[http://localhost:8088/mockEventSoapBinding]. Reason:
> org.apache.cxf.service.factory.ServiceConstructionException:
> Could not resolve a binding for null
> ...
> Caused by: org.apache.cxf.BusException: No binding factory for namespace
> registered.
> But if i run main[] from within eclipse (called in a @Test with same
> configuration) it is working fine!?
> My jar is built with maven-assembly-plugin (executable jar with all
> dependencies) I hope/think this is only a configuration problem or is
> related to how i set up the cxf endpoint.
> I also tried to add a camel-cxf.xml to src/main/resources (like the one from
> camel in action but without the endpoint config), no success.
> Additional info:
> The code above is run in a loop after a "process". The exchange containing
> data is created once but this exchange will be processed multiple times
> (setting name in exchange object) and then it is sent to same web service
> multiple times with different names. (don't ask about this silly web service
> design ;-))
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

View raw message