File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes Unable to load a class specified in your ejb-jar.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Unable to load a class specified in your ejb-jar.xml" Watch "Unable to load a class specified in your ejb-jar.xml" New topic

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

Jun Chen

Joined: Feb 23, 2004
Posts: 9
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:
at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(
at weblogic.ejb20.deployer.EJBDeployer.compileEJB(
at weblogic.ejb20.deployer.EJBDeployer.prepare(
at weblogic.ejb20.deployer.EJBModule.prepare(
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationC
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
at weblogic.kernel.ExecuteThread.execute(
The following is my ejb-jar.xml
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "">
ejb-jar.xml file for session bean BookQuotes
Session bean Inventory
Can someone tell me what was the problem?
Thank you!
Jun Chen
Sai Prasad
Ranch Hand

Joined: Feb 25, 2002
Posts: 560
Make sure you have this jar file defined in config.xml and application.xml
winston lim

Joined: Feb 18, 2003
Posts: 26
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?
I agree. Here's the link:
subject: Unable to load a class specified in your ejb-jar.xml
It's not a secret anymore!