We are converting a very large multi-module software package from EJB2.1 BMP to EJB3 CMP. Accessing entities from another jar file requires that the persistence.xml file lists the jar file using the "<jar-file>../One.jar</jar-file>" syntax.
Any jar dependencies from the persistence.xml file in "One.jar" also need to be listed in the persistence.xml file in "Two.jar" for the system to load without exceptions. Can somebody explain why these dependencies cannot be resolved at run-time. Here's an example: - One.jar | -------- | <persistence> | <persistence-unit> | <jar-data-source>java:/db</jta-data-source> | </persistence-unit> | </persistence> | | | Two.jar | -------- | <persistence> | <persistence-unit> | <jar-data-source>java:/db</jta-data-source> | <jar-file>../One.jar</jar-file> | </persistence-unit> | </persistence> | | Three.jar | -------- | <persistence> | <persistence-unit> | <jar-data-source>java:/db</jta-data-source> | <jar-file>../Two.jar</jar-file> | <jar-file>../One.jar</jar-file> | </persistence-unit> | </persistence> In this example, why do I have to include "One.jar" in the last persistence.xml file, why can it not be resolved automatically. I am using 4.0.3 with EJB3-RC5. Cheers, Kato. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927403#3927403 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927403 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user