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
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "exception while calling EJB 3" Watch "exception while calling EJB 3" New topic

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(
at weblogic.protocol.ServerURL.getDefaultURL(
at weblogic.protocol.ServerURL.<clinit>(

SCJP 5.0 94%
Ravi Bansal
Ranch Hand

Joined: Aug 18, 2008
Posts: 86
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 seems to be inside

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

Joined: Feb 24, 2006
Posts: 6662


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
I agree. Here's the link:
subject: exception while calling EJB 3
It's not a secret anymore!