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