[jboss-user] [EJB/JBoss] - Re: Problem deploying Session Bean
breako
do-not-reply at jboss.com
Thu Nov 22 06:59:31 EST 2007
Hi,
I fixed this problem by updated client code to:
| Object ref = ctx.lookup("ta3g/AddressDAOImplBMT/remote");
| System.out.println("ref is : " + ref);
| AddressDAO dao = (AddressDAO)PortableRemoteObject.narrow(ref, AddressDAO.class);
|
Now I am getting:
| java.lang.ClassCastException: $Proxy74
| at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)
| at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
| at org.apache.jsp.TestSessionBeansWithJPA_jsp._jspService(TestSessionBeansWithJPA_jsp.java:86)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107071#4107071
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107071
More information about the jboss-user
mailing list