0
点赞
收藏
分享

微信扫一扫

Are you running on Java 1.4 with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD

悄然丝语 2022-01-12 阅读 92

完整报错如下:

nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl@132d5ed7] does not support XML Schema. Are you running on Java 1.4 with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support。

查看网上很多资料都是关于jfreechart里的gunjaxp.jar移除。实际项目早就没有在使用jfreechart,而且都是很早年的回答。

我的实际案例是:pom文件莫名引入了jconfig包。

        <dependency>
            <groupId>org.jconfig</groupId>
            <artifactId>jconfig</artifactId>
            <version>2.9</version>
        </dependency>

而jconfig包又依赖了这个三个jar包

 crimson正是报错中提示的类。将jconfig移除即可。

举报

相关推荐

0 条评论