Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

deploying application

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic