IWAE0008E读取jar文件时发生错误

问题描述

我们有一个使用Java,Spring等的war文件。我必须在Websphere 9中部署此war文件。我已经设置了数据源。尝试部署war文件时出现以下错误

com.ibm.websphere.management.application.client.AppDeploymentException:org.eclipse.jst.j2ee.commonarchivecore.internal.exception.nestedJarException:IWAE0008E读取WEB-INF / lib / spring-context-5.0时发生错误。来自/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/wstemp/92668751/upload/awdcs.war的16.RELEASE.jar [根异常是org.eclipse.jst.j2ee.commonarchivecore.internal.exception.nestedJarException:IWAE0008E从/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/wstemp/92668751/upload/awdcs.war中读取WEB-INF / lib / spring-context-5.0.16.RELEASE.jar发生错误]

enter image description here

关于导致此问题的原因以及如何继续进行的任何想法?

解决方法

这可能是类加载订单问题。尝试根据服务器的设置将顺序从parent_first更改为parent_last。检出How Does WebSphere Choose the Classloading Order in a Folder (WEB-INF/lib)https://www.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.base.doc/ae/crun_classload.html

,

检查jar依赖项“ spring-context-5.0.16.RELEASE.jar”是否是war文件“ awdcs.war”的一部分。您可以解压缩WAR文件并进行检查。

确保在构建jar时将其包含在战争中,或者在最坏的情况下将jar添加为Websphere运行时的一部分。