• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

regarding clas cast exception

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:


try{

Context ctx=new InitialContext(ht);

Object obj=ctx.lookup("ijk");
s="isk";
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

LakshmiNarayana.V
System.out.println(hello.hello());
 
reply
    Bookmark Topic Watch Topic
  • New Topic