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).
Please refer to the CMP 2.0 documentation and if you still encounter a problem post it to the CMP forums thanks