gpt4 book ai didi

java.lang.IncompleteClassChangeError : Implementing class weblogic 12c

转载 作者:行者123 更新时间:2023-12-01 19:36:33 54 4
gpt4 key购买 nike

我正在尝试在 weblogic 12c 中部署我的遗留应用程序(支持 java 6,7,8),但每次它显示 java.lang.InknownClassChangeError: Implementing class ,我无法了解确切的问题是什么以及我们如何解决这个问题有人可以帮助我吗?在weblogic 10(支持java 4,6,7)中部署成功

异常

<Dec 6, 2019 12:10:10,555 PM GMT> <Error> <HTTP> <WL-101216> <Servlet: "JerseyRESTService" failed to preload on startup in Web application: "CDMWeb.war".
A MultiException has 1 exceptions. They are:
1. java.lang.IncompatibleClassChangeError: Implementing class

at org.jvnet.hk2.internal.Utilities.justCreate(Utilities.java:1085)
at org.jvnet.hk2.internal.ServiceLocatorImpl.create(ServiceLocatorImpl.java:978)
at org.jvnet.hk2.internal.ServiceLocatorImpl.createAndInitialize(ServiceLocatorImpl.java:1082)
at org.jvnet.hk2.internal.ServiceLocatorImpl.createAndInitialize(ServiceLocatorImpl.java:1074)
at org.glassfish.jersey.server.ApplicationHandler.createApplication(ApplicationHandler.java:385)
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.defineClass(ClassLoader.java:763)
at java.lang.ClassLoader.defineClass(ClassLoader.java:839)
at com.oracle.classloader.PolicyClassLoader.innerDefineClass(PolicyClassLoader.java:686)
at com.oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:669)
Truncated. see log file for complete stacktrace
>
CDMGenericJobListener:contextDestroyed Event
<Dec 6, 2019 12:10:10,708 PM GMT> <Error> <Deployer> <WL-149265> <Failure occurred in the execution of deployment request with ID "43494609412439500" for task "3" on [partition-name: DOMAIN]. Error is: "weblogic.application.ModuleException: java.lang.IncompatibleClassChangeError: Implementing class"
weblogic.application.ModuleException: java.lang.IncompatibleClassChangeError: Implementing class
at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:233)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:228)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
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.defineClass(ClassLoader.java:763)
at java.lang.ClassLoader.defineClass(ClassLoader.java:839)
at com.oracle.classloader.PolicyClassLoader.innerDefineClass(PolicyClassLoader.java:686)
at com.oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:669)
Truncated. see log file for complete stacktrace
>

最佳答案

我可以看到您的应用程序正在使用 Jersey 框架。请引用此页https://docs.oracle.com/middleware/1213/wls/RESTF/use-jersey20-ri.htm#RESTF290

如果您仍然遇到问题,请尝试使用 Jersey 框架的更新版本。在这种情况下,请注意您必须修改 web.xml 文件才能使用正确的 servlet 类:

<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>

关于java.lang.IncompleteClassChangeError : Implementing class weblogic 12c,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59213699/

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