ApachePOI:NoClassDefFoundError:org.apache.poi.openxml4j.exceptions.invalidFormatException

时间:2018-05-10 18:23:19

标签: java eclipse tomcat apache-poi

当我想部署我的项目时,我遇到了tomcat的问题。构建步骤正常,但在部署期间,它给出了以下错误:

    Caused by: java.lang.NoClassDefFoundError: org/apache/poi/openxml4j/exceptions/InvalidFormatException
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredFields(Unknown Source)
at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:110)
at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:262)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:136)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:66)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:328)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:778)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5105)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more
Caused by: java.lang.ClassNotFoundException: org.apache.poi.openxml4j.exceptions.InvalidFormatException
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1291)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
... 19 more

我导入了apachepoi所需的所有库。这是我在buildpath中的库:

  • 公地-CSV-1.5.jar
  • 公地文件上传-1.3.3.jar
  • 公地-IO-2.6.jar
  • EasyMock的-3.4.jar
  • GSON-2.2.2.jar
  • HikariCP-2.6.1.jar
  • jBCrypt-0.4.jar
  • JS​​TL-1.2.jar
  • 的log4j-1.2.17.jar
  • MySQL的连接器的Java-5.1.41-bin.jar
  • objenesis-2.2.jar
  • 硒 - 服务器 - 独立-3.3.1.jar
  • 公地编解码器1.10.jar
  • 公地collections4-4.1.jar
  • 共享记录-1.2.jar
  • POI-3.17.jar
  • POI-OOXML-3.17.jar
  • POI-OOXML-架构 - 3.17.jar
  • SLF4J-API-1.7.22.jar
  • curvesapi-1.04.jar
  • 的xmlbeans-2.6.0.jar

希望你能帮助我

0 个答案:

没有答案