I tried that, and here is the deployment error I get (even though it is not true. Those columns exist): =======================================================
[java] [EJB:011017]Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was: [java] [java] Role 'BankAccount-has-Guarantors' of relationship 'Guarantor-BankAccount' contains an invalid key-column value of 'guarantorPK'. The key-column must specify a primary key column in the related bean. However, there is no primary key column named 'guarantorPK' defined in the related bean 'Guarantor' or else 'guarantorPK' is not being recognized due to case mismatch. [java] Role 'Guarantor-has-BankAccounts' of relationship 'Guarantor-BankAccount' contains an invalid key-column value of 'bankAccountPK'. The key-column must specify a primary key column in the related bean. However, there is no primary key column named 'bankAccountPK' defined in the related bean 'BankAccount' or else 'bankAccountPK' is not being recognized due to case mismatch. [java] . [java] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:255) [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476) [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407) [java] at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493) [java] at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763) [java] at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701) [java] at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277) [java] at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477) [java] at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContaine r.java:2962) [java] at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContain er.java:1534) [java] at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java :1188) [java] at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java :1031) [java] at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepare Container(SlaveDeployer.java:2602) [java] at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer( SlaveDeployer.java:2552) [java] at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDep loyer.java:2474) [java] at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeplo yer.java:798) [java] at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.ja va:507) [java] at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.j ava:465) [java] at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.ja va:25) [java] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) [java] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) [java] weblogic.ejb20.WLDeploymentException: [EJB:011017]Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was: [java] [java] Role 'BankAccount-has-Guarantors' of relationship 'Guarantor-BankAccount' contains an invalid key-column value of 'guarantorPK'. The key-column must specify a primary key column in the related bean. However, there is no primary key column named 'guarantorPK' defined in the related bean 'Guarantor' or else 'guarantorPK' is not being recognized due to case mismatch. [java] Role 'Guarantor-has-BankAccounts' of relationship 'Guarantor-BankAccount' contains an invalid key-column value of 'bankAccountPK'. The key-column must specify a primary key column in the related bean. However, there is no primary key column named 'bankAccountPK' defined in the related bean 'BankAccount' or else 'bankAccountPK' is not being recognized due to case mismatch. [java] . [java] at weblogic.ejb20.persistence.PersistenceType.setTypeSpecificFile(PersistenceTy pe.java:526) [java] at weblogic.ejb20.persistence.PersistenceType.setupDeployer(PersistenceType.jav a:414) [java] at weblogic.ejb20.deployer.CMPInfoImpl.setup(CMPInfoImpl.java:110) [java] at weblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSources(EJB20CMPComp iler.java:64) [java] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:245) [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476) [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407) [java] at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493) [java] at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763) [java] at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701) [java] at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277) [java] at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477) [java] at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContaine r.java:2962) [java] at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContain er.java:1534) [java] at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java :1188) [java] at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java :1031) [java] at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepare Container(SlaveDeployer.java:2602) [java] at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer( SlaveDeployer.java:2552) [java] at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDep loyer.java:2474) [java] at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeplo yer.java:798) [java] at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.ja va:507) [java] at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.j ava:465) [java] at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.ja va:25) [java] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) [java] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Harkness, > David > Sent: Monday, June 28, 2004 11:42 AM > To: [EMAIL PROTECTED] > Subject: RE: [Xdoclet-user] RE: CMR Issues/Bug? #2 > > > [EMAIL PROTECTED] wrote: > > Another thing that might be an issue is 2 M-N relationships I > > have. 1 is a: M (String) -> N (String) > > ... > > * @weblogic.column-map > > * foreign-key-column="bankAccountPK" > > (1) * key-column="guarantorPK" > > * > > * @weblogic.target-column-map > > * foreign-key-column="guarantorPK" > > (2) * key-column="bankAccountPK" > > These look to be backwards. Try swapping (1) and (2). You're basically > specifying two 1:N relationships. > > > When I save this to the Entities, I get this in my table: > > > > T_ICE_GUARANTORACCOUNT_REL > > ============================= > > guarantorPK ||| bankAccountPK > > ----------------------------- > > BankAccStrng ||| Guarstring > > ============================= > > And this pretty much confirms it. > > To avoid confusion (and if you are creating the schema from scratch), > you might want to name your FKs differently from the PKs. > > Regarding the other issue, can you post your table DDL for the > CreditApplication and one or two of the associated beans? It will make > it easier to continue the discussions. Did you find anything > funky with > the JDBC logs? BTW, can you remind me again what version of > WebLogic and > database you're using? > > David Harkness > Sr. Software Engineer > Sony Pictures Digital Networks > (310) 482-4756 > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user