See the PrefixDeploymentScanner in your jboss-service.xml, enable it and use the -package.xar convention to set the deployment order.
could you be a little more specific? I don't see anything in the dtd about PrefixDeploymentScanner nor do I find anything when I search the source code nor on the net.
Ok, I found it myself. It should be PrefixDeploymentSorter, not PrefixDeploymentScanner