Websphere 8.5.5.12-Spring Boot无法正常工作

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

我已经提到article并添加了依赖项' spring-boot-starter-validation '以避免出现错误:

  

激活Bean验证集成时出错,原因是:   java.lang.NoClassDefFoundError:javax / el / ELManager

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

  

错误500:org.springframework.web.util.nestedServletException:   请求处理失败;嵌套异常为   java.lang.ClassCastException:org.apache.el.E​​xpressionFactoryImpl   与javax.el.E​​xpressionFactory不兼容

请注意,在WAS上,我已经确保本地类加载首先通过父级加载。 >

  

在管理控制台中,单击应用程序>>应用程序类型> WebSphere企业应用程序>>应用程序名称>管理模块> webmodule_name。   从下拉列表中选择首先使用本地类加载器加载的类(父>最后)。

luoyanzheng 回答:Websphere 8.5.5.12-Spring Boot无法正常工作

问题已解决!

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

  

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

代替article

中的以下内容
  

compile(group:'org.springframework.boot',名称:   'spring-boot-starter-validation',版本:'2.2.1.RELEASE')

Websphere结束的日子,我对这个问题感到沮丧!

本文链接:https://www.f2er.com/3047169.html

大家都在问