Your solution works perfectly. Thanks for the quick reply and for updating the documentation.
I’d like to use this place to document a minor problem that I stepped into using the auto-deploy feature of my IDE:
Upon ear creation, the maven-ear-plugin removes the duplicate jars from the war files. Your IDE might not do this. In my environment (Eclipse, JBoss Tools, JBoss AS 7, Maven) a deployment was produced that contained Rewrite both in the ear’s lib and each war, resulting in errors: “Cannot forward after response has been committed”.
The solution was to set the scope of Rewrite in the wars to provided.
Now the EAR works both in the IDE and when manually built with Maven.
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.