【问题标题】:IWAE0008E An error occurred reading jar fileIWAE0008E 读取 jar 文件时发生错误
【发布时间】:2020-12-16 10:12:56
【问题描述】:

我们有一个使用 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 时发生错误。 16.RELEASE.jar 来自 /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/wstemp/92668751/upload/awdcs.war [根异常是 org.eclipse.jst.j2ee.commonarchivecore.internal.exception.NestedJarException: IWAE0008E An从 /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/wstemp/92668751/upload/awdcs.war 读取 WEB-INF/lib/spring-context-5.0.16.RELEASE.jar 时出错]

对导致此问题的原因以及如何进一步处理有任何想法吗?

【问题讨论】:

    标签: java spring websphere


    【解决方案1】:

    这可能是类加载顺序问题。尝试从服务器的设置中将顺序从 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

    【讨论】:

      【解决方案2】:

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

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

      【讨论】:

        【解决方案3】:

        我的案例是 spring-core-4.2.4.RELEASE.jar,我的解决方案是提取 WEB-INF/lib 并放入 classes/spring-core-4.2.4.RELEASE.jar。是否需要删除 lib

        【讨论】:

          猜你喜欢
          • 2018-02-17
          • 1970-01-01
          • 1970-01-01
          • 2018-10-14
          • 2020-04-29
          • 1970-01-01
          • 1970-01-01
          • 2018-04-25
          • 1970-01-01
          相关资源
          最近更新 更多