Having a "dot" character in the name of a "deploy" subfolder can cause a deployment error.
Steps to reproduce :
mv jms-ra.rar messaging/
mv messaging messaging.test
run.sh -c default
The following exception is thrown at startup : java.lang.IllegalStateException: No ConnectorMetaData found for mdf rarName: jms-ra.rar
When removing the "dot" in folder's name, the problem doesn't happen.
The jmx-console shows that messaging.test is a top level deployment and jms-ra.rar is a subdeployment, just like if messaging.test was an exploded archive.
The distinction between a simple folder and an exploded archive is there : org.jboss.system.server.profileservice.repository.AbstractVFSProfileSource:258