After some debugging my conclusion is that the ejbc error is misleading. A possible (but wrong) interpretation of the error message is that a <weblogic-relationship-role> element is required for each <ejb-relationship-role>. That's wrong. The fact is still that you should only have two <weblogic-relationship-role>:s if you have an m:n relationship. This is stated several places in BEA's docs. (docs\ConsoleHelp\wls_rdbms_cmp_jar.html weblogic-relationship-role section, weblogic-rdbms20-persistence-600.dtd from line 185-274).
-But there was a bug in XDoclet's generation of the weblogic-rdbms-jar.xml file. The one <weblogic-relationship-role> element's <relationship-role-name> element contained the name from the bad side. I've committed a fix to a new CVS branch named RELATION_REFACTORING. There are new WebLogic docs in there too. (I actually did a major refactoring of all the relation stuff, and the code is now much cleaner). Could you check out the latest code from the mentioned CVS branch and confirm whether it works or not? Regards, Aslak > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel > Bratell > Sent: 30. januar 2002 17:06 > To: [EMAIL PROTECTED] > Subject: Re: [Xdoclet-user] Weblogic relationships generate > brokenweblogic-cmp-rdbms-jar.xml > > > > >No, it's not wrong. Check the DTD (it's bundled with xdoclet). Only m:n > >relationships are supposed to have two <weblogic-relationship-role>:s. > > Not in my WebLogic. I have Weblogic 6.1 SP1. I do try to define a > unidirectional 1->n relationship but with only one > weblogic-relationship-role I get an assertion during deployment: > > --------------------------------8<-------------------------------- > ---------------------------- > In relationship addresses, the <ejb-relationship-role>, > one-address-belongs-to-one-customer, defined in ejb-jar.xml must have a > corresponding <weblogic-relationship-role> in the RDBMS CMP deployment > descriptor file with the same name. > at > weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:301) > at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:296) > at weblogic.ejb20.deployer.Deployer.compileEJB(Deployer.java:676) > at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:843) > .... > --------------------------------------------->8------------------- > ------------------------------ > > I know that the one with two weblogic-relationship-role:s works because > that's what I had before converting to XDoclet. In the DTD and in the > comments in the DTD it looks as there should be only one, but the fact is > that with only one Weblogic (at least 6.1 SP1) throws an > exception and with > two it works. > > /Daniel > > > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
