WAR deployment to JBoss fails because it calls a SAR packaged in an EAR
问题 I'm packaging a JBoss service archive (SAR) and WAR together in an EAR with Maven for deployment to JBoss. The problem I have is that another standalone WAR running on this server calls a service provided by the aforementioned SAR on JBoss startup. Because JBoss deploys the standalone WAR before the EAR containing the SAR, the standalone WAR throws errors because the service it's calling has not been deployed yet. Is there a way to get JBoss to deploy the EAR first? Is that even the correct