This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exception while calling EJB 3

 
Ravi Bansal
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Ravi Bansal
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic