This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

deploying application  RSS feed

 
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?
 
ranger
Posts: 17344
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
 
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?
 
He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!