users@jax-ws.java.net

LocalTransportFactory exception not found when invoking generated client stub

From: Willard, Keith <Keith.Willard_at_McKesson.com>
Date: Mon, 9 Apr 2007 12:56:54 -0500

I am using jdk 1.5.0_10 and the JAXWS 2.1 nightly release (from 5 nights
ago:-)) to invoke a wsimport generated client stub in a standalone java
process and am getting Provider
com.sun.xml.ws.transport.local.LocalTransportFactory not found

 error message on invoking the client. As far as I can tell an http
request is never even attempted before the exception is thrown. The
wsdl is available via a URL link and is getting retrieved during the
invocation of the client.

 

 

I have all the jars in my classpath that came in the JAXWS nightly
release 2.1 jaxws-ri\lib directory and these include those that are
documented in the user doc page

 

 

This is what my test harness snippet looks like and the resulting stack
trace

 

BookstoreImpl locator=new BookstoreImpl();

      BookstoreService proxy=locator.getBasicHttpBinding();

      java.util.List<Book> books=proxy.getTopSellers().getBook();

 

 

 

Exception in thread "main"
com.sun.xml.ws.util.ServiceConfigurationError:
com.sun.xml.ws.api.pipe.TransportTubeFactory: Provider
com.sun.xml.ws.transport.local.LocalTransportFactory not found

      at com.sun.xml.ws.util.ServiceFinder.fail(ServiceFinder.java:227)

      at
com.sun.xml.ws.util.ServiceFinder.access$100(ServiceFinder.java:127)

      at
com.sun.xml.ws.util.ServiceFinder$LazyIterator.next(ServiceFinder.java:3
60)

      at
com.sun.xml.ws.api.pipe.TransportTubeFactory.create(TransportTubeFactory
.java:81)

      at
com.sun.xml.ws.api.pipe.ClientTubeAssemblerContext.createTransportTube(C
lientTubeAssemblerContext.java:200)

      at
com.sun.xml.ws.api.pipe.ClientPipeAssemblerContext.createTransportPipe(C
lientPipeAssemblerContext.java:74)

      at
com.sun.xml.ws.assembler.PipelineAssemblerFactoryImpl$WsitPipelineAssemb
ler.createClient(PipelineAssemblerFactoryImpl.java:160)

      at
com.sun.xml.ws.api.pipe.TubelineAssemblerFactory$TubelineAssemblerAdapte
r.createClient(TubelineAssemblerFactory.java:100)

      at
com.sun.xml.ws.client.WSServiceDelegate.createPipeline(WSServiceDelegate
.java:383)

      at
com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServ
iceDelegate.java:544)

      at
com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:2
92)

      at
com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:2
74)

      at
com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:2
67)

      at javax.xml.ws.Service.getPort(Service.java:92)

      at
bookstore.BookstoreImpl.getBasicHttpBinding(BookstoreImpl.java:51)

      at bookstore.TestClient.main(TestClient.java:6)

 

 

Thanks for any pointers,

 

--Keith