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?
Double check that id's type equals to the primary key type of your EJB.
Do you have problems if you remove via entity proxy (entityBean.remove()) ?