在CXF Client 調(diào)用是總是出現(xiàn)這個(gè)錯(cuò)誤。
我用的是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");
不會(huì)出現(xiàn)這個(gè)錯(cuò)誤
但會(huì)
java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.getSchema()Ljavax/xml/validation/Schema;
連方法都變了 暈哦
我用的是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");
不會(huì)出現(xiàn)這個(gè)錯(cuò)誤
但會(huì)
java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.getSchema()Ljavax/xml/validation/Schema;
連方法都變了 暈哦