简体   繁体   English

部署到weblogic

[英]Deploy to weblogic

I'm deploying my war file to Oracle Weblogic Application 12c . 我正在将war文件部署到Oracle Weblogic Application 12c This war file, it's running OK on apache tomcat 8 . 这个war文件,在apache tomcat 8上运行正常。 However, when I deploy it to Weblogic , I get this error: 但是,将其部署到Weblogic ,出现以下错误:

java.lang.NoClassDefFoundError: Could not initialize class org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller java.lang.NoClassDefFoundError:无法初始化类org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller

I use Apache POI to read the excel file. 我使用Apache POI读取excel文件。

Possibility is run time version of mentioned class differs from version at compile time. 可能是所提及类的运行时版本与编译时的版本不同。 You need to check whether you have multiple versions of this class in the classpath.Could you please check for existence of multiple jars containing this class.May be one inside the lib folder of server and another inside your application under lib folder.You need this jar just inside lib folder of your application. 您需要检查在类路径中是否有该类的多个版本。请检查是否存在包含该类的多个jar。可能是一个在服务器的lib文件夹中,另一个在您的应用程序的lib文件夹中。 jar放在应用程序的lib文件夹中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM