• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Need help deploying EJB on weblogic8.1 sp5

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A quick google for your error seems to indicate that the problem is that you are creating the EJB with a newer JVM and running Weblogic with an older one.
 
Shiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic