- This topic has 1 reply, 2 voices, and was last updated 20 years, 10 months ago by
Riyad Kalla.
-
AuthorPosts
-
jinoshkpMemberHi ,
I am using Orion server ver. 2.0.3 to access my remotely deployed Entity ejb.
I can connect to the ejb through an application but when I try to access it through a web-interface it gives the following error :
———————————————————————————–
java.lang.ClassCastException at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
at com.carrera.accountonline.action.ViewAccountAction.getCustomerFileEntity(ViewAccountAction.java:116)
at com.carrera.accountonline.action.ViewAccountAction.execute(ViewAccountAction.java:63)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
…………
————————————————————–My web-xml has the following ejb reference :
<ejb-ref>
<description></description>
<ejb-ref-name>CustomerFileEntity</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>com.carrera.firestorm.cas.j2ee.entity.CustomerFileEntityHome</home>
<remote>com.carrera.firestorm.cas.j2ee.entity.CustomerFileEntity</remote>
</ejb-ref>I tried deploying the CustomerFileEntity EJB as a remote ejb and accessing it through the Web interface , but no avail (I am using myeclipse ide to deploy the ejb’s ). I then made the EJB interfaces a part of the Webinterfaces classes. But that did no good either.
I am still getting the same error .
Please help !
Thanks,
Riyad KallaMemberCan you clarify how this is related to MyEclipse? If its just a general EJB question I’m happy to move it to the proper forum so users can answer it freely if they like.
-
AuthorPosts