Hi. I am trying to run an EJB through bea weblogic 8.1 server. I am trying to create a Stateless Session bean. I have created two jars and when I try to do a hot deployment, I get a server error. please see the error description below:
Exception:weblogic.management.ApplicationException: prepare failed for DemoEJB Module: DemoEJB Error: Exception preparing module: EJBModule(DemoEJB,status=NEW) Unable to deploy EJB: C:\bea\user_projects\AdminDomain\myserver\upload\DemoEJB.jar from DemoEJB.jar: weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: Class bytes found but defineClass()failed for: 'pack.DemoBean' at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:531) at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.(MBeanDeploymentInfoImpl.java:232) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1260) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:473) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2842) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1529) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1183) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1026) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2568) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2520) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
[Deployer:149033]preparing application DemoEJB on myserver
[Deployer:149033]failed application DemoEJB on myserver
[Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application DemoEJB on myserver.: Exception:weblogic.management.ApplicationException: prepare failed for DemoEJB Module: DemoEJB Error: Exception preparing module: EJBModule(DemoEJB,status=NEW) Unable to deploy EJB: C:\bea\user_projects\AdminDomain\myserver\upload\DemoEJB.jar from DemoEJB.jar: weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: Class bytes found but defineClass()failed for: 'pack.DemoBean' at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:531) at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.(MBeanDeploymentInfoImpl.java:232) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1260) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:473) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2842) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1529) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1183) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1026) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2568) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2520) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2450) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:829) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:538) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:496) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
please anyone help me out. let me know if u want the code as well....