3 Replies Latest reply on Jul 22, 2003 10:40 PM by hlfrom331

    Warning: The type of the primkey-field must match the primar

    hlfrom331 Newbie

      Hi all,
      I'm migrating a EJB project from websphere app server v5 to jboss 3.2.1.
      Some CMPs in my project have a compound primary key with single field. For some reason I can not change the interface of these beans.
      When I deploy the ear file contains CMP of this type to jboss, I got errors like below:

      11:33:36,456 WARN [verifier] EJB spec violation:
      Bean : Foo
      Section: 10.8.1
      Warning: The type of the primkey-field must match the primary key class.
      11:33:36,506 ERROR [MainDeployer] could not create deployment: file:/E:/jboss-3.2.1_tomcat-4.1.24/server/default/tmp/deploy/server/default/deploy/test.ear/59.test.ear-contents/testejb.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:487)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
      ...


      Any solutions?

      Thanks