2017-06-01 748 views
0

雖然出版(Endpoint.publish)SOAP的Web中的Java服務得到以下錯誤:java.lang.NoSuchMethodException:com.sun.xml.bind.v2.model.nav.ReflectionNavigator.getInstance()

java.lang.NoSuchMethodException: com.sun.xml.bind.v2.model.nav.ReflectionNavigator.getInstance() at java.lang.Class.getDeclaredMethod(Class.java:2004) at com.sun.xml.ws.model.Utils.(Utils.java:73) at 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) at 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) at 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) at 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) at javax.xml.ws.Endpoint.publish(Endpoint.java:240) at com.publisher.AMLpublisher.main(AMLpublisher.java:15)

回答

0

如果您也可以向我們展示您的代碼的一部分,這將有所幫助。更重要的是拋出異常的線和一些邏輯