jQuery in Action, 3rd edition
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(Kernel.java:65)
at weblogic.protocol.ServerURL.getDefaultURL(ServerURL.java:82)
at weblogic.protocol.ServerURL.<clinit>(ServerURL.java:50)

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 com.bea.core.management.core_1.0.1.0.jar) 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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: exception while calling EJB 3
It's not a secret anymore!