This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jun Chen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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.
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
Posts: 560
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure you have this jar file defined in config.xml and application.xml
 
winston lim
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic