Another cause that I've seen is when you try to cast the return value of the
JNDI lookup on an EJB to the bean type rather than the interface type.
//This works
| GreeterRemote myGreeter = (GreeterRemote) ctx.lookup("GreeterBean/remote");
|
| // This doesn't work (throws "ClassCastException: $Proxy0")
| GreeterBean myGreeter = (GreeterBean) ctx.lookup("GreeterBean/remote");
Of course, you shouldn't be doing the second one, because the client should
only be dealing with the remote interface.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939712#3939712
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3939712
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user