Buggy code:
public final class ResourceAdapterXmlDeploymentService extends AbstractResourceAdapterDeploymentService implements Service < ResourceAdapterDeployment > { private static final DeployersLogger DEPLOYERS_LOGGER = Logger . getMessageLogger ( DeployersLogger . class , "org.jboss.as.connector.deployers.RaXmlDeployer" ) ; private final Module module ; private final ConnectorXmlDescriptor connectorXmlDescriptor ; private final ResourceAdapter raxml ; private final String deployment ; private String raName ; private ServiceName deploymentServiceName ; private CommonDeployment raxmlDeployment = null ; public ResourceAdapterXmlDeploymentService ( ConnectorXmlDescriptor connectorXmlDescriptor , ResourceAdapter raxml , Module module , final String deployment , final ServiceName deploymentServiceName ) { } @ Override public void start ( StartContext context ) throws StartException { try { Connector cmd = mdr . getValue ( ) . getResourceAdapter ( deployment ) ; IronJacamar ijmd = mdr . getValue ( ) . getIronJacamar ( deployment ) ; File root = mdr . getValue ( ) . getRoot ( deployment ) ; cmd = new Merger ( ) . mergeConnectorWithCommonIronJacamar ( raxml , cmd ) ; final ServiceContainer container = context . getController ( ) . getServiceContainer ( ) ; <START_BUG> final ResourceAdapterXmlDeploymentService . AS7RaXmlDeployer raDeployer = new ResourceAdapterXmlDeploymentService . AS7RaXmlDeployer ( context . getChildTarget ( ) , connectorXmlDescriptor . getUrl ( ) , raName , root , module . getClassLoader ( ) , cmd , raxml , ijmd ) ; <END_BUG> raDeployer . setConfiguration ( config . getValue ( ) ) ; try { WritableServiceBasedNamingStore . pushOwner ( container . subTarget ( ) ) ; ClassLoader old = SecurityActions . getThreadContextClassLoader ( ) ; try { SecurityActions . setThreadContextClassLoader ( module . getClassLoader ( ) ) ; raxmlDeployment = raDeployer . doDeploy ( ) ; } finally { SecurityActions . setThreadContextClassLoader ( old ) ; WritableServiceBasedNamingStore . popOwner ( ) ; } } catch ( Throwable t ) { unregisterAll ( raName ) ; throw ConnectorMessages . MESSAGES . failedToStartRaDeployment ( t , raName ) ; } value = new ResourceAdapterDeployment ( raxmlDeployment ) ; managementRepository . getValue ( ) . getConnectors ( ) . add ( value . getDeployment ( ) . getConnector ( ) ) ; registry . getValue ( ) . registerResourceAdapterDeployment ( value ) ; ServiceName raServiceName = ConnectorServices . registerResourceAdapter ( raName ) ; context . getChildTarget ( ) . addService ( raServiceName , new org . jboss . as . connector . services . ResourceAdapterService ( raName , raServiceName , value . getDeployment ( ) . getResourceAdapter ( ) ) ) . addDependency ( deploymentServiceName ) . setInitialMode ( ACTIVE ) . install ( ) ; } catch ( Exception e ) { throw new StartException ( e ) ; } } @ Override public void stop ( StopContext context ) { } @ Override public void unregisterAll ( String deploymentName ) { } public CommonDeployment getRaxmlDeployment ( ) { } private class AS7RaXmlDeployer extends AbstractAS7RaDeployer { private final ResourceAdapter ra ; private final IronJacamar ijmd ; public AS7RaXmlDeployer ( ServiceTarget serviceTarget , URL url , String deploymentName , File root , ClassLoader cl , Connector cmd , ResourceAdapter ra , IronJacamar ijmd ) { } @ Override public CommonDeployment doDeploy ( ) throws Throwable { } @ Override protected boolean checkActivation ( Connector cmd , IronJacamar ijmd ) { } @ Override protected DeployersLogger getLogger ( ) { } } }

Fix:
final ResourceAdapterXmlDeploymentService . AS7RaXmlDeployer raDeployer = new ResourceAdapterXmlDeploymentService . AS7RaXmlDeployer ( context . getChildTarget ( ) , connectorXmlDescriptor . getUrl ( ) , raName , root , module . getClassLoader ( ) , cmd , raxml , null ) ;