[jbosstools-issues] [JBoss JIRA] Closed: (JBIDE-120) generate wrong jbosscmp-jdbc.xml in JBossIDE-1.4.1
Rob Stryker (JIRA)
jira-events at lists.jboss.org
Thu Oct 11 17:52:03 EDT 2007
[ http://jira.jboss.com/jira/browse/JBIDE-120?page=all ]
Rob Stryker closed JBIDE-120.
-----------------------------
Resolution: Out of Date
JBossIDE 1.4 no longer supported
> generate wrong jbosscmp-jdbc.xml in JBossIDE-1.4.1
> ---------------------------------------------------
>
> Key: JBIDE-120
> URL: http://jira.jboss.com/jira/browse/JBIDE-120
> Project: JBoss Tools
> Issue Type: Bug
> Reporter: Klaus Schultz
> Priority: Minor
>
> using the JBossIDE JBossIDE-1.4.1-e30.zip and JBoss Server 3.2.3, I got the following error though I defined a correct CMR named "Positionen"
> "org.jboss.deployment.DeploymentException: Atleast one role of a foreign-key mapped relationship must have key fields (or <primkey-field> is missing from ejb-jar.xml): ejb-relation-name=hatPositionen"
> The generated ejb-jar.xml is correct, but the generated jbosscmp-jdbc.xml is wrong:
> <relationships>
> <ejb-relation>
> <ejb-relation-name>Positionen</ejb-relation-name>
> <foreign-key-mapping/>
> <ejb-relationship-role>
> <ejb-relationship-role-name>pos</ejb-relationship-role-name>
> <key-fields/>
> </ejb-relationship-role>
> <ejb-relationship-role>
> <ejb-relationship-role-name>Bestellung</ejb-relationship-role-name>
> <key-fields/>
> </ejb-relationship-role>
> </ejb-relation>
> <ejb-relation>
> The solution is very simple: deleting jbosscmp-jdbc.xml ! All informations for CMP/CMR are in the ejb-jar.xml.
> So I don't know, whether there are cases in which jbosscmp-jdbc.xml remains necessary, but in my case it would be better not to generate it at all.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list