webservice 調用錯誤

調用webservice接口時報了下面錯誤。
Exception in thread "main" java.lang.ExceptionInInitializerError
 at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:239)
 at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
 at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
 at $Proxy31.getBlFzxxList(Unknown Source)
 at com.foresee.tax.lc.manager.LcWxYyManager.getTest(LcWxYyManager.java:77)
 at com.foresee.tax.lc.Test.main(Test.java:36)
Caused by: java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to com.sun.xml.internal.bind.api.JAXBRIContext
 at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.<clinit>(SOAPFaultBuilder.java:488)
 ... 6 more


 在網上查資料說是webservice內部jar版本與如今所用的jdk的jar有衝突,須要設置下系統屬性
而後加了以下代碼修改,
System.setProperty("javax.xml.bind.JAXBContext", "com.sun.xml.internal.bind.v2.ContextFactory");


 而後又報下面錯誤,請問是否這些方法還未實現的。
 the serviceclass object does not implement the requied method in the flowing form: omelement (omelement e)
相關文章
相關標籤/搜索