在weblogic

时间:2015-06-18 12:57:42

标签: java web-services ejb weblogic

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

  

消息图标 - 错误异常准备模块:   EJBModule(Demo_web_service)[EJB:011023]发生错误   读取部署描述符。错误是:处理错误   注释:。消息图标 - 错误有1个嵌套错误:   weblogic.j2ee.dd.xml.AnnotationProcessException:[EJB:015002]无法执行   在Jar中加载类com.cms.webservice.CMSWebServiceBean   D:\ Aswin \ Demo_web_service.jar:java.lang.ClassNotFoundException:   找到的类字节但是defineClass()失败:   'com.cms.webservice.CMSWebServiceBean'

     
    

消息图标 - 错误异常准备模块:     EJBModule(Demo_web_service)无法部署EJB:Demo_web_service.jar     来自Demo_web_service.jar:有1个嵌套错误:     java.io.IOException:JDT编译错误!在     weblogic.ejb.container.ejbc.CompilerForJDT.compile(CompilerForJDT.java:66)     在     weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:358)     在     weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:556)     在     weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:523)     在     weblogic.ejb.container.deployer.EJBDeployer.runEJBC(EJBDeployer.java:441)     在     weblogic.ejb.container.deployer.EJBDeployer.compileJar(EJBDeployer.java:766)     在     weblogic.ejb.container.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:666)     在     weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1241)     在     weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:427)     在     weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)     在     weblogic.application.internal.flow.DeploymentCallbackFlow $ 1.next(DeploymentCallbackFlow.java:391)     在     weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)     在     weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59)     在     weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:43)     在     weblogic.application.internal.BaseDeployment $ 1.next(BaseDeployment.java:1221)     在     weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)     在     weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)     在     weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:39)     在     weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)     在     weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)     在     weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)     在     weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)     在     weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)     在     weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)     在     weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)     在     weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)     在     weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)     在     weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)     在     weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access $ 000(DeploymentReceiverCallbackDeliverer.java:12)     在     weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer $ 1.run(DeploymentReceiverCallbackDeliverer.java:45)     在     weblogic.work.SelfTuningWorkManagerImpl $ WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)     在weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)at     weblogic.work.ExecuteThread.run(ExecuteThread.java:173)消息图标 -     错误JDT编译错误!

  

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

1 个答案:

答案 0 :(得分:2)

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

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