首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Java 2.1 java.lang.LinkageError

Java 2.1 java.lang.LinkageError
EN

Stack Overflow用户
提问于 2018-11-08 18:53:34
回答 1查看 1.3K关注 0票数 1

因此,我试图将Spring引导应用程序升级到2.1。我已经让它在本地运行,但是当部署到Websphere 8.5.5.13时,我得到了一个java链接错误。我从中得到的是,这个ConfigFileApplicationListener类已经加载了两次(一个是从gradle jars加载的,一个是服务器上的),并且是相互冲突的?所以我的解决方案应该是把它从gradle构建中排除出来?唯一的问题是,我不知道Spring的依赖关系是什么。有什么建议吗?

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-11-12 15:04:19

此错误是由Websphere bug (https://issues.jboss.org/browse/RHDM-297)引起的。升级到IBM 8.0.5.10解决了这个问题。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53214350

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档