Skip to Content
0
Former Member
Oct 10, 2005 at 02:54 PM

Error deploying Entity Bean

143 Views

Hello All,

I am getting the following error when I try to deploy the EAR file with a BMP Entity Bean:

Cannot deploy application WorkOrderEAR.. Reason: Incorrect application WorkOrderEAR:Bean WorkOrderBean: The primary key class java.lang.Object is not a legal Value Type in RMI-IIOP.Bean WorkOrderBean: The primary key class java.lang.Object does not define method equals(java.lang.Object). The primary key class must provide suitable implementation of the equals(Object) method. EJB Specification 10.6.13.Bean WorkOrderBean: The primary key class java.lang.Object does not define method hashCode(). The primary key class must provide suitable implementation of the hashCode() method. EJB Specification 10.6.13.

When I remove the Entity Bean(from EAR), the EAR gets deployed without any errors.

What would be the reason for getting this error and what is the resolution?

Thanks,

Asheesh