>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