ClassCastException

Hi,

I am calling a EJB in the Servlet.while accessing its throwing the following Exception.

Exception java.lang.ClassCastException: ejb.sFull.CounterBeanHomeImpl_ServiceStub

If i call the same EJB by using ordinary java client(Under main method)its not giving any exception running fine.
can any one help me.
Thanks.
senthil_krnAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
mbormannConnect With a Mentor Commented:
msmolyak has PAQ'd it so I think that I can propose over here as yours and  that problem is one and the same.
0
 
memingCommented:
Is it possible that your servlet is casting from the server skeleton of a corba object, while the client tries to cast from a client side stub?
0
 
mbormannCommented:
take a look at
http://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=10255641 

and see if its useful for you
0
All Courses

From novice to tech pro — start learning today.