java.lang.linkageerror:无法链接

发布于 2025-02-12 12:21:14 字数 1023 浏览 0 评论 0原文

我有Spring + Google GWT基本模块,其中正在使用JDK 11。构建已完成,但是一旦将其部署在JBOSS 7.2上,它就以下错误了:我尝试了大多数可用于NET的选项,尚未找到解决方案:

{“ wflydc0074:操作失败或在所有服务器上回滚。服务器故障:” => {“服务器组” => {“ xxxxx_001” => {“ host” => {“ my.da.aws.xxx.com” => {“ xxxx” => {“ wflyctl0080:失败的服务” => {“ jboss.deployment.subunit。” xxx-ear-2.0.12.ear。“ xxx-gwt.war”。 “ java.lang.runtimeException:java.lang.illegalstateException:无法加载缓存项目 引起:java.lang.runtimeException:java.lang.illegalstateException:无法加载缓存项目 引起:java.lang.illegalstateException:无法加载缓存项目 引起的是:java.lang.linkageerror:无法链接org/springframework/beans/factory/beanfactory(模块“ deployment.xxx-ear-2.0.12.ear.xxx-xxx-gwt.war”违规:loader'deployment.xxx-ear-2.0.12.ear.xxx-gwt.war' @a7e44df想要加载接口org.springframework.beans.factory.beanfactory。以前通过'deployment.xxx-ear-2.0.12.ear'ex @62541ad5加载了具有相同名称的不同接口。 (org.springframework.beans.factory.beanfactory在loader'Deployment.xxx-ear-2.0.12.ear' @62541ad5中的未命名模块中>

中版本,我升级了春季版,我的项目中没有弹簧靴,但仍然没有解决方案,甚至我升级Guava和GWT版本。

I am having spring + google gwt base module where am using JDK 11. Build is completed but once am going to deploy it on JBoss 7.2, it start below this error: I tried most of option available over net and no solution find yet:

{"WFLYDC0074: Operation failed or was rolled back on all servers. Server failures:" => {"server-group" => {"XXXXX_001" => {"host" => {"my.da.aws.xxx.com" => {"XXXX" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.subunit."xxx-ear-2.0.12.ear"."xxx-gwt.war".undertow-deployment" => "java.lang.RuntimeException: java.lang.IllegalStateException: Unable to load cache item
Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Unable to load cache item
Caused by: java.lang.IllegalStateException: Unable to load cache item
Caused by: java.lang.LinkageError: Failed to link org/springframework/beans/factory/BeanFactory (Module "deployment.xxx-ear-2.0.12.ear.xxx-gwt.war" from Service Module Loader): loader constraint violation: loader 'deployment.xxx-ear-2.0.12.ear.xxx-gwt.war' @a7e44df wants to load interface org.springframework.beans.factory.BeanFactory. A different interface with the same name was previously loaded by 'deployment.xxx-ear-2.0.12.ear' @62541ad5. (org.springframework.beans.factory.BeanFactory is in unnamed module of loader 'deployment.xxx-ear-2.0.12.ear' @62541ad5, parent loader 'app')"}}}}}}}}

I upgrade maven version, I upgrade spring version and I dont have spring boot in my project but still not solution, and even I upgrade guava and gwt version too.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谎言月老 2025-02-19 12:21:14

感谢您回答我,就我而言,我发现某些春季依赖性被添加到父pom中,并且即使使用TAG,也会在Child Pom中添加,并且一旦我评论了Child的所有重复依赖项,就解决了问题。

任何原因...感谢詹姆斯,如果有的话,将与QA取得联系!!

thanks for replying me, in my case, I found that some spring dependencies are add in parent pom and also was added in child pom even with tag and once I commented all duplicate dependencies from child then issue was resolved.

Any why...thanks James, will be in touch for further QA if we have !!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文