[jboss-user] [EJB 3.0] - Re: can not lookup session bean under Jboss 4.2.2GA and ejb3

jaikiran do-not-reply at jboss.com
Wed Jan 16 11:11:33 EST 2008


Going by this JNDI tree, your code should be:

Hello bean = (Hello) ctx.lookup("HelloBean/remote");
  | bean.hello();

Now if this fails with a ClassCastException : $ProxyXX then you will have to tell us how you have packaged your application. Are you deploying the ejbs in a jar and the jsp in a separate war? If yes, then do you have the bean interface (book.Hello) in both the war and the jar? 

Also, have a look at http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassCastExceptions, specifically the jmx-console approach mentioned over there.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120526



More information about the jboss-user mailing list