• 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 ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Unable to load a class specified in your ejb-jar.xml

Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi! all,
I have a question on deploying EJB to weblogic 7.0. Here is the error
<Mar 19, 2004 11:41:20 AM EST> <Error> <EJB> <010069> <Error preparing EJB Modul
e : ThirdEJB.jar
Exception is :
Unable to deploy EJB: ThirdEJB.jar from ThirdEJB.jar:

Unable to load a class specified in your ejb-jar.xml: com.bmw.trs.ejb.inventory.
at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:155)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:332)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:489)
at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:819)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1268)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:232)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationC
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
The following is my ejb-jar.xml
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
ejb-jar.xml file for session bean BookQuotes
Session bean Inventory
Can someone tell me what was the problem?
Thank you!
Jun Chen
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Make sure you have this jar file defined in config.xml and application.xml
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Personally, it is not recommended to modify config.xml or application.xml since weblogic console has provided us the convenience way to deploy the ejb.
Unzip ur ejb using winrar and see whether the package structure is correct or not and your class is there or not.
Supplemental : Do you have weblogic-ejb-jar.xml configured as well?
roses are red, violets are blue. Some poems rhyme and some are a tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic