gpt4 book ai didi

java - 在weblogic中部署jar时出错

转载 作者:行者123 更新时间:2023-12-02 04:35:13 25 4
gpt4 key购买 nike

激活更改期间发生错误,请查看日志以了解详细信息。

Message icon - Error Exception preparing module: EJBModule(Demo_web_service) [EJB:011023]An error occurred while reading the deployment descriptor. The error was: Error processing annotations: . Message icon - Error There are 1 nested errors: weblogic.j2ee.dd.xml.AnnotationProcessException: [EJB:015002]Unable to load class com.cms.webservice.CMSWebServiceBean in Jar D:\Aswin\Demo_web_service.jar : java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'com.cms.webservice.CMSWebServiceBean'

Message icon - Error Exception preparing module: EJBModule(Demo_web_service) Unable to deploy EJB: Demo_web_service.jar from Demo_web_service.jar: There are 1 nested errors: java.io.IOException: JDT compilation error! at weblogic.ejb.container.ejbc.CompilerForJDT.compile(CompilerForJDT.java:66) at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:358) at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:556) at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:523) at weblogic.ejb.container.deployer.EJBDeployer.runEJBC(EJBDeployer.java:441) at weblogic.ejb.container.deployer.EJBDeployer.compileJar(EJBDeployer.java:766) at weblogic.ejb.container.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:666) at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1241) at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:427) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:43) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367) at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:39) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) Message icon - Error JDT compilation error!

你能帮我解决这个问题吗?

最佳答案

找到 Class bytes 但 defineClass()failed for 错误表明 Java 不匹配。 Weblogic 运行时使用的 JDK/Java 版本与您正在部署的已编译 war 文件不同。

参见:Class bytes found but defineClass()failed for error when deploying EAR

关于java - 在weblogic中部署jar时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30916010/

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