首先,我可以在自己的计算机(Windows)上运行该程序,但是当我将其放在Linux上时,我将报告无法解析http://schemas.xmlsoap.org/wsdl/soap/绑定的错误
信息如下:
javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException:无法 解决http://schemas.xmlsoap.org/wsdl/soap/的绑定 javax.servlet.ServletException:javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException:无法 解决http://schemas.xmlsoap.org/wsdl/soap/的绑定 在org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:421) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:222) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.heren.his.commons.filters.UTF8Encoding.doFilter(UTF8Encoding.java:22) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.heren.his.commons.filters.SecurityFilter.filterChainDoFilter(SecurityFilter.java:92) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.heren.his.commons.filters.SecurityFilter.doFilter(SecurityFilter.java:86) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.heren.his.commons.filters.RouterFilter.doFilter(RouterFilter.java:52) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.heren.his.commons.filters.HerenWebStatFilter.doFilter(HerenWebStatFilter.java:77) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.heren.his.commons.filters.ForwardFilter.doFilter(ForwardFilter.java:85) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.heren.i0.jpa.PersistFilter.doFilter(PersistFilter.java:98) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.google.inject.servlet.GuiceFilter $ 1.call(GuiceFilter.java:133) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.google.inject.servlet.GuiceFilter $ 1.call(GuiceFilter.java:130) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.google.inject.servlet.GuiceFilter $ Context.call(GuiceFilter.java:203) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.grizzly.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:137) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.grizzly.servlet.FilterChainImpl.invokeFilterChain(FilterChainImpl.java:106) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.grizzly.servlet.ServletHandler.doServletService(ServletHandler.java:226) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.grizzly.servlet.ServletHandler.service(ServletHandler.java:173) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.grizzly.http.server.HttpHandler $ 1.run(HttpHandler.java:224) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.grizzly.threadpool.AbstractThreadPool $ Worker.doWork(AbstractThreadPool.java:593) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.grizzly.threadpool.AbstractThreadPool $ Worker.run(AbstractThreadPool.java:573) [heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在java.lang.Thread.run(Thread.java:745)[na:1.8.0_60]原因:javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException:无法 解决http://schemas.xmlsoap.org/wsdl/soap/的绑定 在org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:155) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在javax.xml.ws.Endpoint.publish(Endpoint.java:240)〜[na:1.8.0_60] 在com.heren.his.diseasereport.api.InfectionWebResource.pointService(InfectionWebResource.java:41) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在sun.reflect.GeneratedMethodAccessor48.invoke(未知来源)〜[na:na] 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 〜[na:1.8.0_60] 在java.lang.reflect.Method.invoke(Method.java:497)〜[na:1.8.0_60] 在org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory $ 1.invoke(ResourceMethodInvocationHandlerFactory.java:81) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher $ 1.run(AbstractJavaResourceMethodDispatcher.java:164) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:181) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider $ TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:203)处 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:101) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.server.ServerRuntime $ 2.run(ServerRuntime.java:305) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.internal.Errors $ 1.call(Errors.java:271) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.internal.Errors $ 1.call(Errors.java:267) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.internal.Errors.process(Errors.java:315) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.internal.Errors.process(Errors.java:297) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.internal.Errors.process(Errors.java:267) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:288) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1110) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:401) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] ...省略了28个常见框架造成原因:org.apache.cxf.service.factory.ServiceConstructionException:无法 解决http://schemas.xmlsoap.org/wsdl/soap/的绑定 在org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:352) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServerFactoryBean.java:182) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:259) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:144) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] ...省略了53个共同的框架原因:org.apache.cxf.BusException:没有命名空间的绑定工厂 http://schemas.xmlsoap.org/wsdl/soap/已注册。 在org.apache.cxf.bus.managers.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:123) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] 在org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:339) 〜[heren-main-disease-report-1.0.0-SNAPSHOT.jar:na] ...省略了60个共同的框架
我使用glassfish作为服务器 没有使用spring框架 如何解决这个问题