Hi dim, thanks for showing the way out of that problem - I've removed the @ejb:pk-field and this error has disappeared..
But I'm afraid I've pasted the wrong error line into my mail below, I think I do have some CMR problems as well. What I wanted to ask, is the following error: 03:58:01,350 ERROR [EntityContainer] Exception in service lifecyle operation: create org.jboss.deployment.DeploymentException: Role: product-belongsto-manufacturer with multiplicity many using foreign-key mapping is not allowed to have key-fields The relationship is defined as the following: in ProductBean: /** * The manufacturer (reference) of this product * @ejb:interface-method view-type="local" * * @ejb:relation * name="Manufacturer-Product" * role-name="product-belongsto-manufacturer" * * @jboss:relation * fk-constraint="false" * related-pk-field="id" * fk-column="manufacturer_id" * */ public abstract ManufacturerLocal getManufacturer(); and in ManufacturerBean: /** * @ejb:interface-method view-type="local" * * @ejb:relation * name="Manufacturer-Product" * role-name="manufacturer-has-products" * * @jboss:relation * fk-constraint="false" * related-pk-field="id" * fk-column="manufacturer_id" */ public abstract Collection getProducts(); thx, Christopher ps. I just love to get helpful support past four o'clock in the morning - that's something really cool :) On Tue, Feb 26, 2002 at 03:30:12AM +0100, Jozsa Kristof wrote: > Hi, > > Let me ask the usual question again - how's XDoclet up with JBoss3 beta > support? I'd a couple of CMR beans in various relationships, and when I > tried to move on to the released beta1 of JBoss3, the relationships broke > badly. (I've upgraded XDoclet as well to the latest CVS version). The exact > problem of JBoss3 was: > > 03:24:19,143 ERROR [EntityContainer] Exception in service lifecyle operation: create > org.jboss.deployment.DeploymentException: primkey-field must be the same type as >prim-key-class > > ..which honestly I don't fully understand either, but I hope someone more > clever does :) So are the needed changes already in XDoclet, and what should > I change from my working piece of code to follow the changes? (I can figure > the latter out myself, if the XDoclet docs are updated..) > > Thanks much, > Christopher > -- > .Digital.Yearning.for.Networked.Assassination.and.Xenocide > > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user -- .Digital.Yearning.for.Networked.Assassination.and.Xenocide _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
