Buggy code:
public final class ResourceAdapterDeploymentService extends AbstractResourceAdapterDeploymentService implements Service < ResourceAdapterDeployment > { private static final DeployersLogger DEPLOYERS_LOGGER = Logger . getMessageLogger ( DeployersLogger . class , "org.jboss.as.connector.deployers.RADeployer" ) ; private final ClassLoader classLoader ; private final ConnectorXmlDescriptor connectorXmlDescriptor ; private final Connector cmd ; private final IronJacamar ijmd ; private CommonDeployment raDeployment = null ; private String deploymentName ; private ServiceName deploymentServiceName ; private final ServiceName duServiceName ; public ResourceAdapterDeploymentService ( final ConnectorXmlDescriptor connectorXmlDescriptor , final Connector cmd , final IronJacamar ijmd , final ClassLoader classLoader , final ServiceName deploymentServiceName , final ServiceName duServiceName ) { } @ Override public void start ( StartContext context ) throws StartException { final URL url = ( ( connectorXmlDescriptor ) == null ) ? null : connectorXmlDescriptor . getUrl ( ) ; deploymentName = ( ( connectorXmlDescriptor ) == null ) ? null : connectorXmlDescriptor . getDeploymentName ( ) ; final File root = ( ( connectorXmlDescriptor ) == null ) ? null : connectorXmlDescriptor . getRoot ( ) ; DEPLOYMENT_CONNECTOR_LOGGER . debugf ( "DEPLOYMENT<seq2seq4repair_space>name<seq2seq4repair_space>=<seq2seq4repair_space>%s" , deploymentName ) ; final ResourceAdapterDeploymentService . AS7RaDeployer raDeployer = new ResourceAdapterDeploymentService . AS7RaDeployer ( context . getChildTarget ( ) , url , deploymentName , root , classLoader , cmd , ijmd , deploymentServiceName ) ; raDeployer . setConfiguration ( config . getValue ( ) ) ; ClassLoader old = WildFlySecurityManager . getCurrentContextClassLoaderPrivileged ( ) ; try { WritableServiceBasedNamingStore . pushOwner ( duServiceName ) ; WildFlySecurityManager . setCurrentContextClassLoaderPrivileged ( classLoader ) ; raDeployment = raDeployer . doDeploy ( ) ; deploymentName = raDeployment . getDeploymentName ( ) ; } catch ( Throwable t ) { unregisterAll ( deploymentName ) ; throw MESSAGES . failedToStartRaDeployment ( t , deploymentName ) ; } finally { WildFlySecurityManager . setCurrentContextClassLoaderPrivileged ( old ) ; WritableServiceBasedNamingStore . popOwner ( ) ; } if ( raDeployer . checkActivation ( cmd , ijmd ) ) { DEPLOYMENT_CONNECTOR_LOGGER . debugf ( "Activating:<seq2seq4repair_space>%s" , deploymentName ) ; <START_BUG> ServiceName raServiceName = ConnectorServices . getResourceAdapterServiceName ( deploymentName , null ) ; <END_BUG> value = new ResourceAdapterDeployment ( raDeployment , deploymentName , raServiceName ) ; managementRepository . getValue ( ) . getConnectors ( ) . add ( value . getDeployment ( ) . getConnector ( ) ) ; registry . getValue ( ) . registerResourceAdapterDeployment ( value ) ; context . getChildTarget ( ) . addService ( raServiceName , new org . jboss . as . connector . services . resourceadapters . ResourceAdapterService ( deploymentName , raServiceName , value . getDeployment ( ) . getResourceAdapter ( ) ) ) . setInitialMode ( ACTIVE ) . install ( ) ; } else { DEPLOYMENT_CONNECTOR_LOGGER . debugf ( "Not<seq2seq4repair_space>activating:<seq2seq4repair_space>%s" , deploymentName ) ; } } @ Override public void stop ( StopContext context ) { } @ Override public void unregisterAll ( String deploymentName ) { } public CommonDeployment getRaDeployment ( ) { } public AS7MetadataRepository getMdr ( ) { } private class AS7RaDeployer extends AbstractAS7RaDeployer { private final IronJacamar ijmd ; public AS7RaDeployer ( ServiceTarget serviceContainer , URL url , String deploymentName , File root , ClassLoader cl , Connector cmd , IronJacamar ijmd , final ServiceName deploymentServiceName ) { } @ Override public CommonDeployment doDeploy ( ) throws Throwable { } @ Override protected boolean checkActivation ( Connector cmd , IronJacamar ijmd ) { } @ Override protected DeployersLogger getLogger ( ) { } } }

Fix:
ServiceName raServiceName = ConnectorServices . getResourceAdapterServiceName ( deploymentName ) ;