在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;
連方法都變了 暈哦