This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 83
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: 83
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: 6657


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
Similar Threads
Getting NumberFormatException while retrieving EJBObject from Handle
javax.naming.NamingException: Failed to initialize the ORB exception
A runtime Exception when received at client is wrapped in remote exception
getCause().. in checked exception of remote interface method.
javax.ejb.EJBException: Impossible to create the MyBean: EJB Exception: