This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Error while runnning Session Bean Client

 
chandra reddy
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

I am wondering some body would help me to come out from my issue.

I written a simple EJB state less session bean application,i did buil by using the weblogic builder,deplyed in weblogic successfully.

But when ever i am running the client i am getting the folloing error (Even though i have putted the corresponding jar in the classpath that is weblogic.jar):
"java.lang.InternalError: error initializing kernel caused by: java.lang.NoClassD
efFoundError: weblogic.management.configuration.KernelMBean"

Please help me to resolve issue.


Thanks,
Chandra.
 
John Gregory
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chandra,

Not sure if anyone's responded or you figured this out yet, but
after you do your getRemoteHome needs a bit of modification:

Object o = ic.lookup("jndiName");
MyRemoteHome home = PortableRemoteObject.narrow(o, MyRemoteHome.class);

Then you can do:
MyRemote = home.create();
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic