Forum Home » Fuse Distributions » Fuse Services Framework

Thread: No Conduit Initiator error

This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Permlink Replies: 1 - Last Post: Sep 8, 2010 9:32 PM Last Post By: marcelcasado

Posts: 1
Registered: 07/11/10
No Conduit Initiator error
Posted: Jul 11, 2010 12:58 AM
  Click to reply to this thread Reply
Attachment pom.xml (7.3 KB)

I'm trying to create a web service client from within an OSGi service in FUSE 4.2. I'm creating the client through Java calls, not through Spring configuration. This code has been working in stand-alone mode.

This version of the code which I am incorporating into servicemix is producing the following error which I have not been able to resolve after reviewing several related discussion on the web:

org.apache.cxf.interceptor.Fault: No conduit initiator was found for the namespace
at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(
at org.apache.cxf.endpoint.UpfrontConduitSelector.selectConduit(
at org.apache.cxf.endpoint.ClientImpl.getConduit(
at org.apache.camel.impl.ServiceSupport.start(
at org.apache.camel.util.ServiceHelper.startService(
at org.apache.camel.impl.DefaultCamelContext.start(
at org.apache.camel.spring.SpringCamelContext.maybeStart(
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(
at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(
at org.springframework.context.event.SimpleApplicationEventMulticaster$
at org.springframework.core.task.SyncTaskExecutor.execute(
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$
Caused by: org.apache.cxf.BusException: No conduit initiator was found for the namespace
at org.apache.cxf.transport.ConduitInitiatorManagerImpl.getConduitInitiator(
at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(
... 24 more

According to the discussion on the web, I should be able to resolve this problem by adding the dependency cxf-rt-transports-http-jetty jar file to my POM. I already have this dependency and also import this package into my bundle, and I still get this message.

POM is attached.

Any answers/suggestions would be greatly appreciated.



Posts: 54
Registered: 02/03/09
Re: No Conduit Initiator error
Posted: Sep 8, 2010 9:32 PM   in response to: tbishop in response to: tbishop
  Click to reply to this thread Reply

Did you figure out a solution to this problem ? I'm running into the same problem. It seems like a class loader issue.

Did you have the imports below in the Spring config ?

<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.xml" />

Did you try the solution proposed below and set the bus in your client class ?

The solution here works for me but I will prefer a cleaner solution

Does anybody have a better approach ?