File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes regarding clas cast exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "regarding clas cast exception" Watch "regarding clas cast exception" New topic

regarding clas cast exception

LakshmiNarayana vishnu
Ranch Hand

Joined: Aug 03, 2006
Posts: 39
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

I agree. Here's the link:
subject: regarding clas cast exception
It's not a secret anymore!