微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

org.apache.poi.ooxml.schemas 找不到 SchemaTypeSystemImpl

如何解决org.apache.poi.ooxml.schemas 找不到 SchemaTypeSystemImpl

我尝试将 xmlbeans 从 2.6.0 升级到 3.1.0,将 poi-ooxml-schemas 3.15 升级到 4.1.1。 我有一个目标平台文件,我在其中添加了 xmlbeans-3.1.0 和 poi-ooxml-schemas-4.1.1 的更新站点

代码中没有编译问题,但在运行时我得到了这个:

Caused by: java.lang.RuntimeException: Cannot load org.apache.xmlbeans.impl.SchemaTypeSystemImpl: make sure xbean.jar is on the classpath.
    at schemaorg_apache_xmlbeans.system.sD023D6490046BA0250A839A9AD24C443.TypeSystemHolder.loadTypeSystem(UnkNown Source)
    at schemaorg_apache_xmlbeans.system.sD023D6490046BA0250A839A9AD24C443.TypeSystemHolder.<clinit>(UnkNown Source)
    ... 65 more
Caused by: java.lang.classNotFoundException: org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl cannot be found by org.apache.poi.ooxml.schemas_4.1.1.v20200820-1148
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:516)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171)

我还尝试将 xmlsec 包包含在发现的 here 中,但结果相同。 同样使用 Dynamic-import 作为 here 导入 xmlbean,但它不起作用。

编辑,在 TP 我有以下内容

enter image description here

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?