Spring2.0.7在解析XML配置文件时,报异常.
javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [gnu.xml.dom.JAXPFactory@a4e2e3] does not support XML Schema. Are you running on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.
报告说不能解析xml schema.可我用的是JDK1.6,应该是已经包含了.
我使用IDE是NetBeans6.0,另外新建一个项目一切正常.
配置文件开头是这样的.
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://www.springframework.org/schema/tx
       http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">

解决方案 »

  1.   

    此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
    楼主【donbing2】截止到2008-06-25 19:10:02的历史汇总数据(不包括此帖):
    发帖数:30                 发帖分:726                
    结贴数:15                 结贴分:370                
    未结数:15                 未结分:356                
    结贴率:50.00 %            结分率:50.96 %            
    楼主加油
      

  2.   

    可能是没有Xerces 这个依赖包