gpt4 book ai didi

spring - Websphere 8.5.5.12 - Spring Boot 不工作

转载 作者:行者123 更新时间:2023-12-05 02:58:29 29 4
gpt4 key购买 nike

我的 spring boot 应用程序在 tomcat 上运行良好。但是我需要在 IBM Websphere 8.5.5.12 中部署它,然后我的麻烦就开始了。

我提到了 article并添加依赖项“spring-boot-starter-validation”以避免错误:

Error activating Bean Validation integration Caused by: java.lang.NoClassDefFoundError: javax/el/ELManager

但是如果我保留它,我会收到另一个错误

Error 500: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.ClassCastException: org.apache.el.ExpressionFactoryImpl incompatible with javax.el.ExpressionFactory

请注意,在 WAS 上,我已经确保本地类加载优先于父类加载。>

In the administrative console, click Applications > >Application Types > WebSphere enterprise applications > >application_name > Manage modules > webmodule_name. Select Classes loaded with local class loader first (parent >last) from the drop down list.

最佳答案

问题已解决!!!

经过多次尝试,我终于使用了,这解决了我的问题:

compile(group: 'javax.el', name: 'javax.el-api', version: '3.0.0')

而不是下面提到的article

compile(group: 'org.springframework.boot', name: 'spring-boot-starter-validation', version: '2.2.1.RELEASE')

Websphere 的末日,我对这个问题感到沮丧!

关于spring - Websphere 8.5.5.12 - Spring Boot 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59004295/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com