在CXF Client 调用是总是出现这个错误。
我用的是JDK6.0
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
变成了
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
加一句
System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl");
不会出现这个错误
但会
java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.getSchema()Ljavax/xml/validation/Schema;
连方法都变了 晕哦