More info in
If deployment with MDB has dependency to module "org.jboss.genericjms" then module "javax.jms.api" is not loaded for the deployment and deploy fails.
This is a change in module loading behaviour against previous versions of Wildfly/EAP and complicates migration/usability.
We can avoid this by exporting "javax.jms.api" dependency in "org.jboss.genericjms" module. It should look like: