We noticed that install script does not install jar files into EAP properly. Install script sometimes does not replace jar files in AS client folder. EAP 5.1 contains very old HQ archives and if install script does not replace jars, client receives exceptions e.g. ClassNotFoundException HornetQXAConnectionFactory.
Install script should contain overwrite=true attribute for copy targets. It seems that this attribute solves problem.
"Sometimes" is probably related to date of unzipped files. If unzipped file has original date (when was packaged) script works fine, if unzipped file has actual date, HQ install script does not replaces files.