I get a DeploymentException saying I need to include key-fields for both roles in a relation-table mapped relation.
After adding more debug messages in the JDBCXmlFileLoader class, I found something strange:
In JDBCXmlFileLoader the standardjbosscmp-jdbc.xml is loaded first and used to create a JDBCApplicationMetaData object. At this moment the above exception is thrown. Of course the standardjbosscmp-jdbc.xml doesn't contain any key-fields, because these can be found in the jbosscmp-jdbc.xml which isn't reached in the JDBCXmlFileLoader code.
I would expect that this exception can't be thrown from loading the standardjbosscmp-jdbc.xml, but only from loading an incorrect jbosscmp-jdbc.xml.