CXF 和xercesImpl.jar有冲突才报的错.

CXF 和xercesImpl.jar有冲突才报的错.


java.lang.AbstractMethodError: org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object; at org.apache.cxf.staxutils.StaxUtils.addLocation(StaxUtils.java:1038) at org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:893) at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:965) at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:848) at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:219) at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:161) at org.apache.cxf.wsdl11.WSDLServiceFactory.(WSDLServiceFactory.java:67) at org.apache.cxf.endpoint.ClientImpl.(ClientImpl.java:152) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:255) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:198) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:191) at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:146) 今天发现CXF 和xercesImpl.jar有冲突才报的错。有两种方式解决, 1、是直接删除xercesImpl.jar, 2、把xercesImpl.jar替换成xercesImpl-2_9_1.jar即可,希望对大家有帮助。

xercesImpl-2_9_1.jar下载地址http://download.csdn.net/source/2908274


来自:tgh1983的专栏



你可能感兴趣的:(jar)