1 Reply Latest reply on Dec 10, 2001 10:17 AM by marc fleury

    Relationships with dependent classes and ejb's in JBoss

    lee Newbie

      Here is a part of our deployment discriptor. When we try deploying the application we get the error shown below.




      <dependent-class>
      component.Property
      </dependent-class>
      <dependent-name>Property</dependent-name>
      <cmp-field>propName</cmp-field>
      <cmp-field>propValue</cmp-field>




      <ejb-relation>
      <ejb-relation-name></ejb-relation-name>

      <ejb-relationship-role>
      <ejb-relationship-role-name>
      TokenBean
      </ejb-relationship-role-name>
      One
      <relationship-role-source>
      <ejb-name>TokenBean</ejb-name>
      </relationship-role-source>
      <cmr-field>
      <cmr-field-name>properties</cmr-field-name>
      <cmr-field-type>
      java.util.Collection
      </cmr-field-type>
      </cmr-field>
      </ejb-relationship-role>

      <ejb-relationship-role>
      <ejb-relationship-role-name>
      Property
      </ejb-relationship-role-name>
      Many
      <cascade-delete />
      <relationship-role-source>
      <dependent-name>Property</dependent-name>
      </relationship-role-source>
      </ejb-relationship-role>
      </ejb-relation>


      org.jboss.ejb.DeploymentException:
      Error in ejb-jar.xml for relation null:
      expected one ejb-name tag

      Does this mean JBoss doen't support relationships between ejb's and dependent objects?

      Is there any other way to have a one to many relationship between an entity bean and a dependent object (or value class - providing it maps to rows in a database).