Caused by: java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for:

weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml:
Class bytes found but defineClass()failed for: ‘xx.xx.xxBean’
weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:550)
weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.(MBeanDeploymentInfoImpl.java:232)
weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1302)
weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:498)
weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3101)
weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1560)
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1208)
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1051)
weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2444)
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2394)
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2310)
weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866)
weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594)
weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508)
weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2327)
weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866)
weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594)
weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508)
weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

Caused by: java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for:

检查一下你编译环境的JDK版本和在容器中运行的JDK版本是否一致或者后者比前者高,高版本JDK编译的class在低版本JDK容器下无法运行的

文章的脚注信息由WordPress的wp-posturl插件自动生成

此条目发表在javaee分类目录,贴了, , 标签。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

评论链接可以 移除 nofollow.