gpt4 book ai didi

java - weblogic启动时发生LinkageError

转载 作者:行者123 更新时间:2023-12-02 11:07:52 27 4
gpt4 key购买 nike

当我将 ear 项目部署到 weblogic 中时,在应用程序启动期间,LinkageError 显示如下:

<Jun 11, 2018 5:31:00 PM IRDT> <Error> <WLSS.Setup> <BEA-331210> <Skip SIP related logic, because error occurs when parsing sip related annotations of "DSwar"
com.bea.wcp.sip.engine.server.setup.SipAnnotationParsingException:
at com.bea.wcp.sip.engine.server.setup.SipAnnotationData.<init>(SipAnnotationData.java:155)
at com.bea.wcp.sip.util.DeploymentUtil.getOrCreateAnnotationData(DeploymentUtil.java:70)
at com.bea.wcp.sip.util.DeploymentUtil.isSipModule(DeploymentUtil.java:96)
at com.bea.wcp.sip.engine.server.SipServerTailModule$1.visit(SipServerTailModule.java:127)
at com.bea.wcp.sip.engine.server.SipServerTailModule.visitAllContexts(SipServerTailModule.java:112)
Truncated. see log file for complete stacktrace
Caused By: java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
Truncated. see log file for complete stacktrace
>
<Jun 11, 2018 5:31:06 PM IRDT> <Error> <WLSS.Setup> <BEA-331210> <Skip SIP related logic, because error occurs when parsing sip related annotations of "TTMS"
com.bea.wcp.sip.engine.server.setup.SipAnnotationParsingException:
at com.bea.wcp.sip.engine.server.setup.SipAnnotationData.<init>(SipAnnotationData.java:155)
at com.bea.wcp.sip.util.DeploymentUtil.getOrCreateAnnotationData(DeploymentUtil.java:70)
at com.bea.wcp.sip.util.DeploymentUtil.isSipModule(DeploymentUtil.java:96)
at com.bea.wcp.sip.engine.server.SipServerTailModule$1.visit(SipServerTailModule.java:127)
at com.bea.wcp.sip.engine.server.SipServerTailModule.visitAllContexts(SipServerTailModule.java:112)
Truncated. see log file for complete stacktrace
Caused By: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.springframework.ui.freemarker.FreeMarkerConfigurationFactory.setResourceLoader(Lorg/springframework/core/io/ResourceLoader;)V" the class loader (instance of weblogic/utils/classloaders/GenericClassLoader) of the current class, org/springframework/web/servlet/view/freemarker/FreeMarkerConfigurer, and the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) for interface org/springframework/context/ResourceLoaderAware have different Class objects for the type org/springframework/core/io/ResourceLoader used in the signature
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.privateGetPublicMethods(Class.java:2547)
at java.lang.Class.getMethods(Class.java:1410)
at com.bea.wcp.sip.engine.server.setup.SipAnnotationData.classAnnotationParsing(SipAnnotationData.java:344)
Truncated. see log file for complete stacktrace
>

weblogic的版本是10.3.6.0

最佳答案

此冲突可能是因为您的应用程序之一在其中一个 jar 中有一个类 (org/springframework/core/io/ResourceLoader),该类与 weblogic 的嵌入 jar 之一 ( http://www.findjar.com/class/org/springframework/core/io/ResourceLoader.html ) 和相同的类冲突名称。

关于java - weblogic启动时发生LinkageError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50808895/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com