different version of java might return different order of files when listing directory contents.
in any case proper solution to your problem would be to add dependency configuration to jboss-all.xml
this is something that was added in 7.2/EAP 6.1
Thanks Tomaz, that did the trick.
any alternative for AS 7.1.1 - would packaging both wars into single ear and then using initialize in order be a good option?
That should be work also to ensure the order of initialization