I have an application that deploys other apps through the MainDeployer's deploy(URL) method. It works fine for archives that are file-based, but it fails to deploy an ear or sar that is a directory.
I've verified that I can deploy them under the deploy directory, as well as by adding a new location for the URLScanner to pick up.
If I try to deploy them via the deploy(URL) call they fail with:
org.jboss.deployment.DeploymentException: No META-INF/application.xml found
org.jboss.deployment.DeploymentException: No META-INF/jboss-service.xml found