java写的webservice,部署成功了,可是客户端调用的时候出错了。

thinkhejie 2009-07-13 01:13:38
java写的webservice,部署成功了,可是客户端调用的时候出错了。
TransportTubeFactory but not found 这个没找到 但是我明明加载了jaxws-ri 里面的21个包了,为什么还是找不到。。。

com.sun.xml.ws.util.ServiceConfigurationError: com.sun.xml.ws.api.pipe.TransportTubeFactory: Provider com.sun.xml.ws.transport.local.LocalTransportFactory is specified in jar:file:/C:/workspace/myWsClient/lib/jaxws-rt.src.zip!/META-INF/services/com.sun.xml.ws.api.pipe.TransportTubeFactory but not found
at com.sun.xml.ws.util.ServiceFinder.fail(ServiceFinder.java:241)
at com.sun.xml.ws.util.ServiceFinder.access$100(ServiceFinder.java:141)
at com.sun.xml.ws.util.ServiceFinder$LazyIterator.next(ServiceFinder.java:376)
at com.sun.xml.ws.api.pipe.TransportTubeFactory.create(TransportTubeFactory.java:117)
at com.sun.xml.ws.api.pipe.ClientTubeAssemblerContext.createTransportTube(ClientTubeAssemblerContext.java:214)
at com.sun.xml.ws.util.pipe.StandaloneTubeAssembler.createClient(StandaloneTubeAssembler.java:56)
at com.sun.xml.ws.client.WSServiceDelegate.createPipeline(WSServiceDelegate.java:411)
at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:572)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:320)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:302)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:295)
at javax.xml.ws.Service.getPort(Service.java:92)
at wstest.my.com.client.WsService.getWsPort(WsService.java:56)
at junit.test.WsTest.mytest(WsTest.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
...全文
243 点赞 收藏 4
写回复
4 条回复
thinkhejie 2009年07月13日
没人知道吗?
回复 点赞
thinkhejie 2009年07月13日
jaxws-rt.src.zip 里面有这个类的 TransportTubeFactory
不知道为什么说找不到。郁闷
回复 点赞
thinkhejie 2009年07月13日
应该不是的。环境变量没啥问题。
回复 点赞
hui94781674 2009年07月13日
环境变量??
回复 点赞
发动态
发帖子
Java SE
创建于2007-09-28

3.4w+

社区成员

30.7w+

社区内容

Java 2 Standard Edition
社区公告
暂无公告