Hi,
I recently downloaded weblogic8.1 sp5.i tried to deploy my
EJB module but it is giving Deployment Descriptor Exception in ejb-jar.xml.iam giving the details here.
Exception:weblogic.management.ApplicationException: prepare failed for ArithmeticEJB Module: ArithmeticEJB Error: Exception preparing module: EJBModule(ArithmeticEJB,status=NEW) Unable to deploy EJB: C:\ArithmeticEJB\EJBModule\ArithmeticEJB.jar from ArithmeticEJB.jar: weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: Class bytes found but defineClass()failed for: 'arithmetic.ejb.ArithmeticBean' at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:550) at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:232) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1407) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3149) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1590) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1234) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1077) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2530) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2480) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2396) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:883) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:591) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
[Deployer:149033]preparing application ArithmeticEJB on examplesServer
[Deployer:149033]failed application ArithmeticEJB on examplesServer
[Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application ArithmeticEJB on examplesServer.: Exception:weblogic.management.ApplicationException: prepare failed for ArithmeticEJB Module: ArithmeticEJB Error: Exception preparing module: EJBModule(ArithmeticEJB,status=NEW) Unable to deploy EJB: C:\ArithmeticEJB\EJBModule\ArithmeticEJB.jar from ArithmeticEJB.jar: weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: Class bytes found but defineClass()failed for: 'arithmetic.ejb.ArithmeticBean' at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:550) at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:232) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1407) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3149) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1590) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1234) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1077) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2530) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2480) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2396) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:883) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:591) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183) .
and my ejb-jar.xml file is
<!DOCTYPE ejb-jar PUBLIC
'-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN'
'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>arithmeticStatelessSession</ejb-name>
<home>arithmetic.ejb.ArithmeticHome</home>
<remote>arithmetic.ejb.Arithmetic</remote>
<ejb-class>arithmetic.ejb.ArithmeticBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<env-entry>
<env-entry-name>WEBL</env-entry-name>
<env-entry-type>java.lang.Double</env-entry-type>
<env-entry-value>10.0</env-entry-value>
</env-entry>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>arithmeticStatelessSession</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
<ejb-client-jar>ArithmeticEJB.jar</ejb-client-jar>
</ejb-jar>
Iam deploying using weblogic server console and still puzzling where the changes have to be made.If anyone knows how to deal with this please let me know.Thanks in advance.
bye,
saru.