Hello everyone,
I tried a "Hello world using
EJB and Servlet" program. I am getting "ClassCastException" on the line: "testSessionBean = (MyTestSessionHome)PortableRemoteObject.narrow(objref,MyTestSessionHome.class);".
testSessionBean is of home type as expected.
I tried a lot to get the program right but couldn't get it.
Analysis of "objref" shows, though it implements MyTestSessionHome, is not an instance of MyTestSessionHome (?), but it's an instance of EJBHome. Actually both must be true.
I am using
JBoss server 4.0.4
Please reply urgently...
THANK YOU.
Lalit.