Error with class PrimaryKey in CMP 2.0 Entity Bean when it´s deploying.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Juan_Ruiz
Posted On:   Thursday, January 10, 2002 01:53 AM


I´m using a class call "Incidencias.IncidenciasEBPK" like primaryKey of mine Entity Bean. In the file ejb-jar.xml I´ve defined ".. Incidencias.IncidenciasEBPK .. id .." ("id" is the type long).

When I deploy, appear the next error:

"ERROR: Error from ejbc: [9.10.1.1] In EJB R4.ejb.Incidencias.IncidenciasEB, in ejb-jar.xml, the must match the Class used by the Primary Key Field get/set Methods in the Bean Class".


If anybody knows How to resolve this problem, please tell me. Thanks in advance, Juan.

Re: Error with class PrimaryKey in CMP 2.0 Entity Bean when it´s deploying.

Posted By:   AlessandroA_Garbagnati  
Posted On:   Thursday, January 10, 2002 03:59 AM

Juan,

The message you are getting is explaining you the problem. It says that the primary key getters and setters in your bean, must match the class you have used for your primary key, in your case "Incidencias.IncidenciasEBPK".


Take a look at this article:

Enterprise JavaBeans 2.0 Container-Managed Persistence Example

About | Sitemap | Contact