因此,我试图将Spring引导应用程序升级到2.1。我已经让它在本地运行,但是当部署到Websphere 8.5.5.13时,我得到了一个java链接错误。我从中得到的是,这个ConfigFileApplicationListener类已经加载了两次(一个是从gradle jars加载的,一个是服务器上的),并且是相互冲突的?所以我的解决方案应该是把它从gradle构建中排除出来?唯一的问题是,我不知道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发布于 2018-11-12 15:04:19
此错误是由Websphere bug (https://issues.jboss.org/browse/RHDM-297)引起的。升级到IBM 8.0.5.10解决了这个问题。
https://stackoverflow.com/questions/53214350
复制相似问题