When creating a new Enterprise Application project (using existing Web and EJB modules that have spaces in their names), the generated application.xml strips out the spaces.
This results in a deployment exception when deploying as an exploded ear:
org.jboss.deployment.DeploymentException: url file:/C:/jboss/jboss-3.2.1/server/default/deploy/Test Application.ear/TestEJB.jar could not be opened, does it exist?)
For example, I have an enterpris application project “Test App” with web module “Test Web” and EJB module “Test EJB”.
The generated application.xml has:
<web-uri>TestWeb.war</web-uri>
and
<ejb>TestEJB.jar</ejb>
Manually adding the spaces back results in a successful deployment.