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 閱讀(472) 評論(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


           

          主站蜘蛛池模板: 昭觉县| 阳东县| 商丘市| 常山县| 三门县| 页游| 西平县| 长泰县| 大足县| 浦东新区| 安仁县| 咸阳市| 大余县| 当雄县| 文化| 顺平县| 海城市| 临猗县| 建宁县| 德清县| 安图县| 舒兰市| 辛集市| 湟源县| 汉源县| 耒阳市| 政和县| 墨玉县| 大方县| 嵊州市| 台东县| 周口市| 台北县| 麻城市| 泽普县| 淮南市| 重庆市| 昌平区| 宝应县| 大渡口区| 晋州市|