6 Replies Latest reply on Aug 6, 2002 6:25 PM by Dain Sundstrom

    XDoclet and JBoss 3.0.0 RC1

    Peter Backlund Newbie


      I'm having problems deploying CMR stuff on JBoss 3.0.0 RC1 with an XDoclet-generated jbosscmp-jdbc.xml. Looking through the forums, it seems that substantial changes have been made to the DTD of jbosscmp-jdbc.xml, so the file that XDoclet 1.1.2 generates is no longer valid. Is this correct?

      And if so, does anyone know how far off support for the new DTD in XDoclet is?

      Specifically, the error given by JBoss during deployment looks like this:

      14:10:34,628 ERROR [EntityContainer] Exception in service lifecyle operation: create
      org.jboss.deployment.DeploymentException: Atleast one role of a foreign-key mapped relationship must have key fields: ejb-relation-name=technical-location
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData.(JDBCRelationMetaData.java:316)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.(JDBCApplicationMetaData.java:325)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:67)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:595)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create(JDBCStoreManager.java:322)
      at org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceManager.java:155)