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
tbishop

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)
Hi,

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 http://schemas.xmlsoap.org/soap/http.
at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:102)
at org.apache.cxf.endpoint.UpfrontConduitSelector.selectConduit(UpfrontConduitSelector.java:71)
at org.apache.cxf.endpoint.ClientImpl.getConduit(ClientImpl.java:711)
at mil.army.us.sec.c2gw.adaptor.pass.PASSPort.setHTTPsConnection(PASSPort.java:514)
at mil.army.us.sec.c2gw.adaptor.pass.PASSPort.<init>(PASSPort.java:118)
at mil.army.us.sec.c2gw.adaptor.pass.osgi.PASSReceiverService.init(PASSReceiverService.java:58)
at mil.army.us.sec.c2gw.adaptor.Service.initialize(Service.java:46)
at mil.army.us.sec.c2gw.adaptor.pass.camel.PASSConsumer.doStart(PASSConsumer.java:63)
at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:53)
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:49)
at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:989)
at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:197)
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101)
at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:593)
at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:
235)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationConte
xt.java:358)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplic
ationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(Dep
endencyWaiterApplicationContextExecutor.java:136)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.cxf.BusException: No conduit initiator was found for the namespace http://schemas.xmlsoap.org/soap/http.
at org.apache.cxf.transport.ConduitInitiatorManagerImpl.getConduitInitiator(ConduitInitiatorManagerImpl.java:112)
at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:73)
... 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.

-tbb

marcelcasado

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
Hi,

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 ?

https://cwiki.apache.org/CAMEL/how-to-avoid-importing-bunch-of-cxf-packages-when-start-up-the-camel-cxf-endpoint-from-osgi-platform-.html

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

Does anybody have a better approach ?

Thanks,

-Marcel