0 Replies Latest reply on Apr 10, 2002 10:55 AM by Thomas Lauerbach

    Unexpected Warnings

    Thomas Lauerbach Newbie

      I Created a Entity Bean with CMP. On deployment I get the following warnings (CVS Version of April 10th):

      16:30:18,474 INFO [EJBDeployer]
      Bean : Component
      Section: 10.8.1
      Warning: The primkey-field must be one of the CMP fields of the entity bean.

      16:30:18,484 INFO [EJBDeployer]
      Bean : Configuration
      Section: 10.8.1
      Warning: The primkey-field must be one of the CMP fields of the entity bean.

      16:30:18,494 INFO [EJBDeployer]
      Bean : ComponentCategory
      Section: 10.8.1
      Warning: The primkey-field must be one of the CMP fields of the entity bean.

      *******************************************************

      Here is the relevant part of my ejb-jar.xml:
      ...
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.Long</prim-key-class>
      False
      <cmp-version>2.x</cmp-version>
      <abstract-schema-name>Component</abstract-schema-name>
      <cmp-field>
      <field-name>componentId</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>description</field-name>
      </cmp-field>
      <primkey-field>componentId</primkey-field>

      <query-method>
      <method-name>findAll</method-name>
      <method-params />
      </query-method>
      <result-type-mapping>Local</result-type-mapping>
      <ejb-ql>select OBJECT(c) from Component c</ejb-ql>

      ...