6 Replies Latest reply on May 3, 2002 12:10 PM by echofloripa

    Class Cast error

    echofloripa

      I'm getting a class cast error, every thing is right , it deploys nicely, but when I do the look up, with or without the "PortableRemoteObject.narrow" it gives me following error :

      10:15:59,921 INFO [Jetty] ActionServlet: init
      10:16:02,828 ERROR [STDERR] java.lang.ClassCastException
      10:16:02,828 ERROR [STDERR] at com.sun.corba.se.internal.javax.rmi.PortableR
      emoteObject.narrow(PortableRemoteObject.java:293)
      10:16:02,843 ERROR [STDERR] at javax.rmi.PortableRemoteObject.narrow(Portabl
      eRemoteObject.java:134)
      10:16:02,843 ERROR [STDERR] at br.com.sicredi.cobranca.cliente.bd.CobrancaBD
      .(CobrancaBD.java:29)

      web.xml :

      <ejb-ref>
      <ejb-ref-name>ejb/CobrancaFacadeEJB</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      br.com.sicredi.cobranca.ambos.ejbinterface.CobrancaFacadeHome
      br.com.sicredi.cobranca.ambos.ejbinterface.CobrancaFacade
      <ejb-link>ejb/CobrancaFacadeEJB</ejb-link>
      </ejb-ref>
      <ejb-ref>

      Has anyone seen this error before??