This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes exception while calling EJB 3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "exception while calling EJB 3" Watch "exception while calling EJB 3" New topic
Author

exception while calling EJB 3

Ravi Bansal
Ranch Hand

Joined: Aug 18, 2008
Posts: 86
Hi ,
I am getting the below exception while calling EJB from my client class.
Can anyone tell me which jar i m missing here.
I have weblogic.jar and wlclient.jar in my classpath.

Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/StackTraceUtils
at weblogic.kernel.Kernel.ensureInitialized(Kernel.java:65)
at weblogic.protocol.ServerURL.getDefaultURL(ServerURL.java:82)
at weblogic.protocol.ServerURL.<clinit>(ServerURL.java:50)


SCJP 5.0 94%
OCE-EJBD 90%
Ravi Bansal
Ranch Hand

Joined: Aug 18, 2008
Posts: 86
Hi,
I found the jar for the above class , it was com.bea.core.utils.full_1.0.1.0.
But it still keeps on giving the error for other classes required, and required jars(like com.bea.core.management.core_1.0.1.0.jar) seems to be inside
<bea-home-dir>/modules

Does it mean for every client which is invoking the EJB (deployed on weblogic 10) requires to have so many jars in the classpath.
I believe this was not the case with the earlier versions of weblogic.
Can anyone tell me if i m missing something over here ?
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

<bea-home-dir>/modules


Congrats on finding that. Yes some required weblogic classes have been moved to the modules folder and you will have to add them one by one. I do not know of any other solution to this problem


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
 
Don't get me started about those stupid light bulbs.
 
subject: exception while calling EJB 3