Hello all,
I have the same question:
After deploying  my statefull bean I get the ClassCastException
In JNDI view it's binded in such way
 +- StatefullBean (class: org.jnp.interfaces.NamingContext)
  |   +- localStatefulProxyFactory (class: 
org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
  |   +- local (class: java.lang.Object)

I am looking for the bean from servlet, StatefullBean class is not stored in 
servlet' WAR.

StatefullBean b =  (StatefullBean)con.lookup("StatefullBean/local");
java.lang.ClassCastException: $Proxy250

With stateless beans I am working in the same way but without errors. 

What I'm doing wrong?




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083415#4083415

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083415
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to