1 Reply Latest reply on Apr 30, 2002 9:50 AM by Ron DiFrango

    Unable to acquire CMP 2.0 Entity Bean

    Ron DiFrango Newbie


      I just created my first CMP 2.0 compliant Entity bean and I get the following error when running:

      Exception in thread "main" java.lang.ClassCastException
      at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:296)
      at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
      at com.ronmar.churchscip.entity.ChurchInfo_TEST.test(ChurchInfo_TEST.java:41)
      at com.ronmar.churchscip.entity.ChurchInfo_TEST.main(ChurchInfo_TEST.java:54)

      I am able to do the Context.lookup okay and when I do a toString on the object that came back I get:

      ref = ChurchScrip/ChurchInfoHome