5 Replies Latest reply on Apr 5, 2004 10:41 AM by Vikas

    CMP field for key not found

    Chamesh Rajasekhara Newbie

      I am getting "CMP field for key not found"

      for following ejb-jar.xml


      <ejb-relation>
      <ejb-relation-name>user-agents</ejb-relation-name>

      <ejb-relationship-role>
      <ejb-relationship-role-name>user-is-agent</ejb-relationship-role-name>

      < multiplicity > One </ multiplicity >

      <relationship-role-source>
      <ejb-name>User</ejb-name>
      </relationship-role-source>

      <cmr-field>
      <cmr-field-name>agent</cmr-field-name>
      </cmr-field>
      </ejb-relationship-role>

      <ejb-relationship-role>

      <ejb-relationship-role-name>agent-is-user</ejb-relationship-role-name>

      < multiplicity >One</ multiplicity >

      <relationship-role-source>
      <ejb-name>Agent</ejb-name>
      </relationship-role-source>

      <cmr-field>
      <cmr-field-name>user</cmr-field-name>
      </cmr-field>
      </ejb-relationship-role>
      </ejb-relation>



      and jbosscmp-jdbc.xml extract is



      <ejb-relation>
      <ejb-relation-name>user-agents</ejb-relation-name>
      <foreign-key-mapping/>

      <ejb-relationship-role>
      <ejb-relationship-role-name>user-is-agent</ejb-relationship-role-name>
      <key-fields>
      <key-field>
      <field-name>unprkey</field-name>
      </key-field>
      </key-fields>

      </ejb-relationship-role>

      <ejb-relationship-role>
      <ejb-relationship-role-name>agent-is-user</ejb-relationship-role-name>
      <key-fields>
      <key-field>
      <field-name> unfrkey </field-name>
      </key-field>
      </key-fields>
      </ejb-relationship-role>
      </ejb-relation>


      Thanks in adavnce