NutzCN Logo
问答 cxf linux问题
发布于 3191天前 作者 苍蓝猛兽 2557 次浏览 复制 上一个帖子 下一个帖子
标签:

请各位大神原谅我在nutz上问这个问题.....

Mar 28, 2016 4:56:46 PM org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
INFO: Creating Service {http://server.demo2.demo.webservice.practice.wukong.band/}PollyService from class band.wukong.practice.webservice.demo.demo2.server.Bird
Exception in thread "main" javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Could not resolve a binding for http://schemas.xmlsoap.org/wsdl/soap/
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:155)
at javax.xml.ws.Endpoint.publish(Endpoint.java:170)
at band.wukong.practice.webservice.demo.demo2.server.BirdServer1.publishByEndpoint(BirdServer1.java:20)
at band.wukong.practice.webservice.demo.demo2.server.BirdServer1.main(BirdServer1.java:24)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Could not resolve a binding for http://schemas.xmlsoap.org/wsdl/soap/
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:352)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServerFactoryBean.java:182)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:259)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:144)
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
... 5 more
Caused by: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered.
at org.apache.cxf.bus.managers.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:93)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:339)
... 12 more

    做了个cxf的小例子,windows上很正常,可以访问服务,打成可运行jar包后,linux上报这个错,试了很多种方式,就是不行,大神们,求帮助啊
10 回复

所谓"windows上很正常",是指在eclipse内运行正常???

如何打包成jar的? eclipse export runnable jar?

soga, 所以是打包方式错误, 要选这个: extract required libraries

untitled1_png

俺不信,上传到qq群我看看

@wendal 我上传了,我在群里找你了

依然是打包的问题, 直接maven命令执行算了

mvn  -Dexec.mainClass=band.wukong.practice.webservice.demo.demo2.server.BirdServer1 exec:java
添加回复
请先登陆
回到顶部