Weblogic 12C错误java.lang.ClassNotFoundException:weblogic.jms.common.ResourceAllocationException

问题描述 投票:0回答:1

我在WebLogic 12 C上遇到此问题,其中应用程序出现此错误

java.lang.ClassNotFoundException: weblogic.jms.common.ResourceAllocationException

上面这个类的jar是wlclient.jar,它没有包含在我的应用程序中,我检查了托管服务器类路径,它也没有包含在那里。

有趣的是,如果我尝试将setDomainEnv.sh中的wlclient.jar添加为PRE_CLASSPATH,希望它能够获取jar,我得到以下错误并且托管服务器无法启动

<30-Mar-2019, 5:49:50,757 PM GMT> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: A MultiException has 2 exceptions.  They are:
1. java.lang.ExceptionInInitializerError
2. java.lang.IllegalStateException: Unable to perform operation: post construct on weblogic.iiop.IIOPClientService

A MultiException has 2 exceptions.  They are:
1. java.lang.ExceptionInInitializerError
2. java.lang.IllegalStateException: Unable to perform operation: post construct on weblogic.iiop.IIOPClientService

        at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:391)
        at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
        at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:232)
        at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
        at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2020)
        Truncated. see log file for complete stacktrace
Caused By: java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at weblogic.corba.j2ee.naming.ORBHelper.<clinit>(ORBHelper.java:158)
        at weblogic.iiop.IIOPClientService.initialize(IIOPClientService.java:129)
        at weblogic.iiop.IIOPClientService.start(IIOPClientService.java:195)
        Truncated. see log file for complete stacktrace
Caused By: java.lang.IllegalStateException: Cannot change <isServer>
        at weblogic.kernel.KernelStatus.setIsThinIIOPClient(KernelStatus.java:164)
        at weblogic.jndi.WLInitialContextFactory.<clinit>(WLInitialContextFactory.java:26)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at weblogic.corba.j2ee.naming.ORBHelper.<clinit>(ORBHelper.java:158)
        Truncated. see log file for complete stacktrace
>
<30-Mar-2019, 5:49:50,825 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED.>
<30-Mar-2019, 5:49:50,825 PM GMT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down.>
<30-Mar-2019, 5:49:50,827 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.>
classpath weblogic12c
1个回答
0
投票

我发现如果我像下面那样完全添加类路径,那么托管服务器在启动时会出错,

PRE_CLASSPATH="${DOMAIN_HOME}/lib/wlclient.jar"
export PRE_CLASSPATH

但是如果我按如下所示添加类路径,那么它就可以了。

PRE_CLASSPATH="${DOMAIN_HOME}/lib/"
export PRE_CLASSPATH
© www.soinside.com 2019 - 2024. All rights reserved.