Hi In CXF 2.3.x http://svn.apache.org/repos/asf/cxf/tags/cxf-2.3.4/rt/transports/http/src/main/java/org/apache/cxf/transport/http/ClientOnlyHTTPTransportFactory.java
needs to be available on the classpath if the http-jetty one is absent, I think in 2.3.5 the exception handling to do with the missing ConduitInitiator has been improved and ClientOnlyHTTPTransportFactory is registered explicitly in the catch block. You probably need to add an http-jetty dep as a workaround CXF 2.3.4 or earlier. Or may be explicitly register ClientOnlyHTTPTransportFactory with the bus ConduitInitiatorManager extension Cheers, Sergey On Tue, Aug 23, 2011 at 4:37 PM, Andrew <[email protected]> wrote: > I have created a CXF REST client that works perfectly when I run via eclipse > or from command line, but when I package with maven, using the > jar-with-dependencies Assembly, it fails with: > > resolving resource <org.apache.cxf.wsdl11.WSDLManagerImpl/bus> type > <interface org.apache.cxf.Bus> > resolving resource <null> type <interface org.apache.cxf.Bus> > resolving resource <org.apache.cxf.workqueue.WorkQueueManagerImpl/bus> type > <interface org.apache.cxf.Bus> > resolving resource <null> type <interface org.apache.cxf.Bus> > resolving resource <org.apache.cxf.buslifecycle.CXFBusLifeCycleManager/bus> > type <interface org.apache.cxf.Bus> > resolving resource <null> type <interface org.apache.cxf.Bus> > resolving resource <org.apache.cxf.endpoint.ServerRegistryImpl/bus> type > <interface org.apache.cxf.Bus> > resolving resource <null> type <interface org.apache.cxf.Bus> > resolving resource > <org.apache.cxf.transport.http.QueryHandlerRegistryImpl/bus> type <interface > org.apache.cxf.Bus> > resolving resource <null> type <interface org.apache.cxf.Bus> > resolving resource <org.apache.cxf.headers.HeaderManagerImpl/bus> type > <interface org.apache.cxf.Bus> > resolving resource <null> type <interface org.apache.cxf.Bus> > resolving resource <org.apache.cxf.catalog.OASISCatalogManager/bus> type > <interface org.apache.cxf.Bus> > resolving resource <null> type <interface org.apache.cxf.Bus> > Unexpected error > org.apache.cxf.interceptor.Fault: No conduit initiator was found for the > namespace http://schemas.xmlsoap.org/wsdl/soap/http. > at > org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:101) > at > org.apache.cxf.endpoint.UpfrontConduitSelector.selectConduit(UpfrontConduitSelector.java:71) > at > org.apache.cxf.jaxrs.client.ClientConfiguration.getHttpConduit(ClientConfiguration.java:113) > at controller.util.JaxRsClient.<init>(JaxRsClient.java:46) > at > automation.setup.AutomationSetupClient.setup(AutomationSetupClient.java:70) > at > automation.setup.AutomationSetupClient.main(AutomationSetupClient.java:147) > Caused by: org.apache.cxf.BusException: No conduit initiator was found for > the namespace http://schemas.xmlsoap.org/wsdl/soap/http. > at > org.apache.cxf.transport.ConduitInitiatorManagerImpl.getConduitInitiator(ConduitInitiatorManagerImpl.java:112) > at > org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:72) > ... 5 more > > > The only difference between the two is the jar-with-dependencies flattens > all classes into the same folder, so only one unique file/path is allowed > and others are skipped. I see a lot of > > [INFO] META-INF/LICENSE already added, skipping > [INFO] META-INF/NOTICE already added, skipping > [INFO] META-INF/maven/ already added, skipping > [INFO] META-INF/ already added, skipping > [INFO] META-INF/MANIFEST.MF already added, skipping > [INFO] schemas/ already added, skipping > [INFO] schemas/configuration/ already added, skipping > [INFO] org/ already added, skipping > [INFO] org/apache/ already added, skipping > [INFO] org/apache/cxf/ already added, skipping > [INFO] org/apache/cxf/configuration/ already added, skipping > [INFO] org/apache/cxf/configuration/spring/ already added, skipping > > > CXF 2.3.5 does not have this issue but unfortunately I'm not able to upgrade > yet. Any ideas? Thanks, > > Andrew > -- Sergey Beryozkin http://sberyozkin.blogspot.com Talend - http://www.talend.com
