• Post Reply Bookmark Topic Watch Topic
  • New Topic

deploying application  RSS feed

 
Kartik Mahadevan
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Mark
 
Rejeev Divakaran
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!