1 Reply Latest reply on Sep 10, 2003 2:32 AM by juha

    Jboss 3.2 CMP ejbRemove causes ClassCast exception

    ergomy

      I get a ClassCast Exception when attempting to call

      entityBeanHome.remove( id )

      where "id" is the primary key of the bean. It's being called by a stateless session bean.

      The EntityBean has a CMR Field (1 to many). One unique feature of the bean is that it is that the CMR is between itself and another EntityBean of the same type. In other words, it is a hierarchy of EntityBeans of the same type.. much like a filesystem folder contains other folders.

      Could this kind of CMR cause a problem. The CMR fields are getting populated just fine during ejbPostCreate().

      Any help out there?

      Thanks!