posts - 82, comments - 269, trackbacks - 0, articles - 1
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          JAXP throw Exception when validate XML with SAX

          Posted on 2011-08-10 18:12 itspy 閱讀(465) 評論(0)  編輯  收藏 所屬分類: JAVA技術

          Exception:Your JAXP provider [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl @1ff7a1e] does not support XML Schema.

          只需要在特定目錄添加一個文件:jaxp.properties
          內容如下
          javax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
          javax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl


          如果是Bea/jrockit可以添加到如下類似目錄
          D:\bea\jrockit_160_05\jre\lib


          -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
          -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl


           

          主站蜘蛛池模板: 大悟县| 金门县| 江油市| 固阳县| 新建县| 佛冈县| 和田县| 凉山| 纳雍县| 东源县| 凤阳县| 抚远县| 五指山市| 栾川县| 车险| 建始县| 铜山县| 健康| 上饶市| 湘西| 郸城县| 双柏县| 奉贤区| 浙江省| 河西区| 孙吴县| 惠安县| 赤壁市| 安乡县| 重庆市| 五指山市| 江孜县| 乃东县| 芦山县| 乐山市| 武夷山市| 平度市| 徐水县| 黄龙县| 凤山县| 保康县|