Hi everybody,
I have the following error during the deployment of my EJB.
In the JBoss console I have the following message :
> [Verifier]
> Bean : ODATAServicesRegistry
> Section: 9.4.7.2
> Warning: At least one field in the primary key class must be non-static.
My settings.
------------------
EJB Name : ODATAServicesRegistry
Primary key : " public Long PrimaryKey; "
ejb-jar.xml
---------------
...
<prim-key-class>java.lang.Object</prim-key-class>
<primary-field>PrimaryKey</primary-field>
<cmp-field><field-name>ServicesState</field-name></cmp-field>
...
I have try to change java.lang.Object with java.lang.Long
----------------------------------------------------------------------------
------
I have the following exception
[Container factory] Deploying ODATAServicesRegistry
[Container factory] org.jboss.ejb.DeploymentException: Bean
ODATAServicesRegistry has PK of type java.lang.Long, so it s
hould have a cmp-field named MIN_VALUE
[Container factory] at
org.jboss.ejb.plugins.jaws.metadata.JawsXmlFileLoader.load(JawsXmlFileLoader
.java:51)
[Container factory] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommandFactory.<init>(JDBCCommandFactory
.java:78)
[Container factory] at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.init(JAWSPersistenceManage
r.java:78)
[Container factory] at
org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java,
Compiled Code)
[Container factory] at
org.jboss.ejb.EntityContainer.init(EntityContainer.java, Compiled Code)
[Container factory] at org.jboss.ejb.Application.init(Application.java,
Compiled Code)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java, Compiled Code)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:272)
Can you help me ?
Thanks a lot
Christophe
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]