java.lang.NoSuchMethodException:com.sun.xml.bind.v2.model.nav.ReflectionNavigator.getInstance()

时间:2017-06-01 07:03:07

标签: java web-services soap jax-ws

在java中发布(Endpoint.publish)soap web服务时出现以下错误:

  

java.lang.NoSuchMethodException:com.sun.xml.bind.v2.model.nav.ReflectionNavigator.getInstance()   at java.lang.Class.getDeclaredMethod(Class.java:2004)   在com.sun.xml.ws.model.Utils。(Utils.java:73)   在com.sun.xml.ws.model.WrapperBeanGenerator。(WrapperBeanGenerator.java:77)   at com.sun.xml.ws.model.RuntimeModeler.getRequestWrapperClass(RuntimeModeler.java:375)   at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:800)   在com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:730)   at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:490)   at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:320)   在com.sun.xml.ws.db.DatabindingImpl。(DatabindingImpl.java:99)   at com.sun.xml.ws.db.DatabindingProviderImpl.create(DatabindingProviderImpl.java:74)   at com.sun.xml.ws.db.DatabindingProviderImpl.create(DatabindingProviderImpl.java:58)   at com.sun.xml.ws.db.DatabindingFactoryImpl.createRuntime(DatabindingFactoryImpl.java:120)   at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:521)   at com.sun.xml.ws.server.EndpointFactory.create(EndpointFactory.java:300)   at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:164)   at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:577)   在com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:560)   at com.sun.xml.ws.transport.http.server.EndpointImpl.createEndpoint(EndpointImpl.java:323)   at com.sun.xml.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:246)   at com.sun.xml.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:136)   在javax.xml.ws.Endpoint.publish(Endpoint.java:240)   在com.publisher.AMLpublisher.main(AMLpublisher.java:15)

1 个答案:

答案 0 :(得分:0)

如果您还可以向我们展示您的部分代码,那将会有所帮助。更重要的是抛出异常的行和一些逻辑