facebook

ClassCastException at …PortableRemoteObject.narrow()

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #209138 Reply

    jinoshkp
    Member

    Hi ,
    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,

    #209142 Reply

    Riyad Kalla
    Member

    Can 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.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: ClassCastException at …PortableRemoteObject.narrow()

You must be logged in to post in the forum log in