File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding clas cast exception

LakshmiNarayana vishnu
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I write one programme using struts,ejb,jboss and tomcat.

when i am calling EJB from stutrs action class i am getting eror called

"Class Cast exception"

here is code where i am getting exception:


Context ctx=new InitialContext(ht);

Object obj=ctx.lookup("ijk");
HelloHome home = (HelloHome) obj;-------------- error where i am getting
//HelloHome home =ctx.lookup("ijk");

Hello hello=home.create();

please resolve ths problem as early as possible

Thanks in advance

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic