qq_27634743
从入门到大神
采纳率0%
2018-11-29 03:14 阅读 1.1k

cxf发布webService报错Could not resolve a binding for http://schemas.xmlsoap.org/wsdl/soap/

我在本地调试运行都是正常的,但是当我把程序放在linux服务器运行时就会报错,
我是使用jersey框架和glassfish服务器,没有使用到spring框架,错误信息如下:
com.heren.his.commons.filters.SecurityFilter -** javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Could not resolve a binding for http://schemas.xmlsoap.org/wsdl/soap/**
javax.servlet.ServletException: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Could not resolve a binding for http://schemas.xmlsoap.org/wsdl/soap/
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:421) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:222) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.heren.his.commons.filters.UTF8Encoding.doFilter(UTF8Encoding.java:22) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.heren.his.commons.filters.SecurityFilter.filterChainDoFilter(SecurityFilter.java:92) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.heren.his.commons.filters.SecurityFilter.doFilter(SecurityFilter.java:86) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.heren.his.commons.filters.RouterFilter.doFilter(RouterFilter.java:52) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.heren.his.commons.filters.HerenWebStatFilter.doFilter(HerenWebStatFilter.java:77) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.heren.his.commons.filters.ForwardFilter.doFilter(ForwardFilter.java:85) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.heren.i0.jpa.PersistFilter.doFilter(PersistFilter.java:98) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.grizzly.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:137) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.grizzly.servlet.FilterChainImpl.invokeFilterChain(FilterChainImpl.java:106) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.grizzly.servlet.ServletHandler.doServletService(ServletHandler.java:226) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.grizzly.servlet.ServletHandler.service(ServletHandler.java:173) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
Caused by: 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) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:155) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at javax.xml.ws.Endpoint.publish(Endpoint.java:240) ~[na:1.8.0_60]
at com.heren.his.diseasereport.api.InfectionWebResource.pointService(InfectionWebResource.java:41) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60]
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:164) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:181) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:203) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:101) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:305) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.internal.Errors.process(Errors.java:315) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.internal.Errors.process(Errors.java:297) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.internal.Errors.process(Errors.java:267) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:288) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1110) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:401) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
... 28 common frames omitted
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) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServerFactoryBean.java:182) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:259) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:144) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
... 53 common frames omitted
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:123) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:339) ~[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na]
... 60 common frames omitted

恳求大佬们帮帮忙

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

相关推荐