1 Reply Latest reply on Sep 8, 2010 5:32 PM by marcelcasado

    No Conduit Initiator error

    tbishop

      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.(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