I tried to do as you adviced but I get the following error on jboss4.2.2-GA
[Configuration] Reading mappings from resource : persistence-mapping-file.xml
10:02:10,488 ERROR [AbstractKernelController] Error installing to Start:
name=persistence.units:unitName=NewsCrawlerPu state=Create
javax.persi
So, I think I figured out a solution that works for me.
In my persistence.xml in my original application EAR, I removed the
jar-references and instead added this;
| persistence-mapping-file.xml
|
Then, in the persistence.jar within the EAR, I added the
persistence-mapping-file.xml contain
OK, just as an update - I've figured out that bundling the war inside another
ear - also containing a jar with a new persistence.xml that maps to the war's
datasource works as intended.
Now bundling the war like this:
| webapp1.ear
|-> webapp1.war
|-> webapp1-persistence.jar
|