java.lang.linkageerror:无法链接
我有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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
感谢您回答我,就我而言,我发现某些春季依赖性被添加到父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 !!