Solved it! :-) The problem was that some other relation in the bean was wrong (missing the target-role-name since more relations was unidirectional). The error message confused me since it kind of indicated the problem was another place and caused me to focus on the wrong place.
A lot of time wasted :), the good thing is I've learned relations :-) Thanks anyhow! -Jon > Jon, > > I don't see any mistake here. You can mail me a testcase and I'll try > to figure it out. > > alex > > Thursday, December 19, 2002, 12:42:18 PM, you wrote: > > JF> Thanks for your patience. > JF> Every relation-role exists and seem ok in my eyes (xml below). > JF> Since this looks ok i suspect my code. The Tripstatus does not have any xdoclet >tag to trip, since trips relation to > tripstatus is > JF> unidirectional. Trip still contains this on the getTripStatus() method: > JF> * @ejb.interface-method view-type="local" > JF> * @ejb.relation > JF> * name="tripstatus-cmp20-trip-cmp20" > JF> * role-name="trip-cmp20-has-tripstatus-cmp20" > JF> * target-role-name="tripstatus-cmp20-has-trip-cmp20" > JF> * target-ejb="Tripstatus" > JF> * @jboss.relation-mapping style="foreign-key" > JF> * @jboss.relation > JF> * fk-column="tripstatusid" > JF> * related-pk-field="tripstatusid" > JF> */ > > JF> I really appreciates your help and time. Its really frustrating not to discover >a solution - i dont know how many > hours i've spent > JF> on this :) *sigh* > > JF> -Jon > > > JF> The jbosscmp-jdbc.xml looks like this: > JF> ---------------------------------------- > JF> <ejb-relation> > JF> <ejb-relation-name>tripstatus-cmp20-trip-cmp20</ejb-relation-name> > JF> <foreign-key-mapping/> > JF> <ejb-relationship-role> > JF> ><ejb-relationship-role-name>trip-cmp20-has-tripstatus-cmp20</ejb-relationship-role-name> > JF> </ejb-relationship-role> > JF> <ejb-relationship-role> > JF> ><ejb-relationship-role-name>tripstatus-cmp20-has-trip-cmp20</ejb-relationship-role-name> > JF> <key-fields> > JF> <key-field> > JF> <field-name>tripstatusid</field-name> > JF> <column-name>tripstatusid</column-name> > JF> </key-field> > JF> </key-fields> > JF> </ejb-relationship-role> > JF> </ejb-relation> > > JF> The ejb-jar.xml looks like this: > JF> ---------------------------------------- > JF> <ejb-relation > > JF> <ejb-relation-name>tripstatus-cmp20-trip-cmp20</ejb-relation-name> > > JF> <ejb-relationship-role > > JF> ><ejb-relationship-role-name>trip-cmp20-has-tripstatus-cmp20</ejb-relationship-role-name> > JF> <multiplicity>One</multiplicity> > JF> <relationship-role-source > > JF> <ejb-name>Trip</ejb-name> > JF> </relationship-role-source> > JF> <cmr-field > > JF> <cmr-field-name>tripstatus</cmr-field-name> > JF> </cmr-field> > JF> </ejb-relationship-role> > > JF> <ejb-relationship-role > > JF> ><ejb-relationship-role-name>tripstatus-cmp20-has-trip-cmp20</ejb-relationship-role-name> > JF> <multiplicity>One</multiplicity> > JF> <relationship-role-source > > JF> <ejb-name>Tripstatus</ejb-name> > JF> </relationship-role-source> > JF> </ejb-relationship-role> > > JF> </ejb-relation> > > > -- > Best regards, > Alex Loubyansky > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Geek Gift Procrastinating? > Get the perfect geek gift now! Before the Holidays pass you by. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user