[jboss-user] [EJB 3.0] - Re: JBoss 5.0.0.CR1 - EJB Lookup Successful but ClassCastEx

zampu007 do-not-reply at jboss.com
Thu Jul 31 13:05:23 EDT 2008


No Idea how I missed my question. Sorry

Question is 

Above is the console output when I deployed to code and executed the SecondServlet

The servlet is successful in doning the JNDI lookup and obtains Proxy112 object. 

As per JNDIView of the server Proxy112 implements the interfaces $Proxy112 implements interface com.tsb.test.ThirdSession,interface org.jboss.ejb3.proxy.JBossProxy

In my servlet I can cast Proxy112 to org.jboss.ejb3.proxy.JBossProxy however I can not cast the same object to com.tsb.test.ThirdSession and get exception java.lang.ClassCastException: $Proxy112 cannot be cast to com.tsb.test.ThirdSession

Can someone please help me and let me know what am I doing wrong?


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

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



More information about the jboss-user mailing list