While deployig application I am getting the error "Unable to deploy EJB from name.jar where name is some jar file weblogic.j2ee.validation.ComplianceException:: In relationship 'BANKER-cmp20-REPORTS-cmp20', role 'REPORTS-cmp20-has-BANKER-cmp20', the foreign key columns used to implement a cmr-field may not be a mix of primary key columns and non-primary key columns." Here both Banker and Reports are beans.Also I am currently trying to migrate my code to weblogic 9.1.Is that a problem?
Well, it looks like your defined relationship between beans is not allowed. Meaning, you are using fields that aren't defined as Primary Keys in your Foreign Key relationship, and that is not allowed in the EJB Spec.
I am also having the same issue. I have a bean with compund pk (a, b). Another bean also with compound pk (a, c). I have a CMR from first to second, where foreign key (in table first) is (a,c). Any clue why this error comes?