GeeCON Prague 2014*
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
Author

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

Jun Chen
Greenhorn

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: com.bmw.trs.ejb.inventory.
InventoryBean
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
ontainer.java:1570)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
er.java:737)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
er.java:555)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:1062)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:730)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:24)
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>
<description>
ejb-jar.xml file for session bean BookQuotes
</description>
<enterprise-beans>
<session>
<description>
Session bean Inventory
</description>
<ejb-name>InventoryBean</ejb-name>
<home>com.bmw.trs.ejb.inventory.InventoryHome</home>
<remote>com.bmw.trs.ejb.inventory.Inventory</remote>
<ejb-class>com.bmw.trs.ejb.inventory.InventoryBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
****************************************
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
Greenhorn

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: http://aspose.com/file-tools
 
subject: Unable to load a class specified in your ejb-jar.xml