1

所以我正在尝试将 Spring Boot 应用程序升级到 2.1。我已经让它在本地运行,但是在部署到 Websphere 8.5.5.13 时,我遇到了 java 链接错误。我从中得到的是,这个 ConfigFileApplicationListener 类已经加载了两次(一个来自 gradle jar,一个在服务器上)并且是冲突的?所以我的解决方案应该是从 gradle build 中排除它?唯一的问题是我无法弄清楚 Spring 依赖项将其拉入其中。有什么建议吗?

R Caused by: java.lang.LinkageError: loading constraint violation 
when overriding method "org/springframework/boot/context/config/
ConfigFileApplicationListener$DocumentFilterFactory.getDocumentFilter
(Lorg/springframework/boot/context/config/ConfigFileApplicationListener$Profile;)
Lorg/springframework/boot/context/config/ConfigFileApplicationListener$DocumentFilter;" 
during creation of class "org/springframework/boot/context/config/ConfigFileApplicationListener
$Loader$$Lambda$762/000000002F6368A0": loader "java/lang/InternalAnonymousClassLoader@4b4313e6"     
of class "org/springframework/boot/context/config/ConfigFileApplicationListener$Loader$$Lambda$762/000000002F6368A0" 
and loader "com/ibm/ws/classloader/CompoundClassLoader@da9f4ecb" of class 
"org/springframework/boot/context/config/ConfigFileApplicationListener$DocumentFilterFactory" 
have different types for the method signature
4

1 回答 1

2

该错误是由 Websphere 错误 ( https://issues.jboss.org/browse/RHDM-297 ) 引起的。升级到 IBM JDK 8.0.5.10 可修复此问题。

于 2018-11-12T15:04:19.023 回答