generate wrong jbosscmp-jdbc.xml  in JBossIDE-1.4.1
---------------------------------------------------

         Key: JBIDE-120
         URL: http://jira.jboss.com/jira/browse/JBIDE-120
     Project: JBoss IDE
        Type: Bug
    Reporter: Klaus Schultz
 Assigned to: Marshall Culpepper 
    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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to