[jboss-user] [JNDI/Naming/Network] - Re: java.lang.ClassCastException: $Proxy78 cannot be cast to

2009-04-15 Thread areyyyyy
Hi, Thanks for ur reply. Here i am providing remote interface and stateful session beans: @Stateful(name = "uhomeSession") @Remote( { LoginSession.class }) public class LoginSessionBean implements LoginSession { @PersistenceContext(unitName = "Model") private EntityManager em

[jboss-user] [JNDI/Naming/Network] - Re: java.lang.ClassCastException: $Proxy78 cannot be cast to

2009-04-13 Thread PeterJ
I don't like the looks of the JNDI view entries - the "remote" node should be of a proxy for LoginSession. You did remember to add the @Remote annotation ot LoginSession, didn't you? By the way, please use the code tag when posting code, and do a preview to check the formatting before submittin