Buggy code:
public class RaXmlDeploymentProcessor implements DeploymentUnitProcessor { public static final Logger log = Logger . getLogger ( "org.jboss.as.connector.deployer.raxmldeployer" ) ; private final MetadataRepository mdr ; public RaXmlDeploymentProcessor ( final MetadataRepository mdr ) { } public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext . getDeploymentUnit ( ) ; final ConnectorXmlDescriptor connectorXmlDescriptor = deploymentUnit . getAttachment ( ATTACHMENT_KEY ) ; if ( connectorXmlDescriptor == null ) { return ; } final ResourceAdapters raxmls = ResourceAdapterAttachment . getResourceAdaptersAttachment ( deploymentUnit ) ; if ( raxmls == null ) return ; RaXmlDeploymentProcessor . log . tracef ( "processing<seq2seq4repair_space>Raxml" ) ; Module module = phaseContext . getAttachment ( MODULE ) ; if ( module == null ) throw new DeploymentUnitProcessingException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>module<seq2seq4repair_space>attachment<seq2seq4repair_space>for<seq2seq4repair_space>" + deploymentUnit ) ) ; try { final ServiceTarget serviceTarget = phaseContext . getServiceTarget ( ) ; for ( ResourceAdapter raxml : raxmls . getResourceAdapters ( ) ) { String archive = raxml . getArchive ( ) ; URL deployment = null ; Set < String > deployments = mdr . getResourceAdapters ( ) ; for ( String s : deployments ) { if ( ( s . endsWith ( archive ) ) || ( s . endsWith ( archive . substring ( 0 , archive . indexOf ( ".rar" ) ) ) ) ) deployment = new URL ( s ) ; } if ( deployment != null ) { Connector cmd = mdr . getResourceAdapter ( deployment . toExternalForm ( ) ) ; IronJacamar ijmd = mdr . getIronJacamar ( deployment . toExternalForm ( ) ) ; File root = mdr . getRoot ( deployment . toExternalForm ( ) ) ; cmd = new Merger ( ) . mergeConnectorWithCommonIronJacamar ( raxml , cmd ) ; String deploymentName = archive . substring ( 0 , archive . indexOf ( ".rar" ) ) ; ResourceAdapterXmlDeploymentService service = new ResourceAdapterXmlDeploymentService ( connectorXmlDescriptor , raxml , cmd , ijmd , module , deploymentName , root ) ; <START_BUG> serviceTarget . addService ( RESOURCE_ADAPTER_XML_SERVICE_PREFIX . append ( deploymentName ) , service ) . addDependency ( IRONJACAMAR_MDR , MetadataRepository . class , service . getMdrInjector ( ) ) . addDependency ( RESOURCE_ADAPTER_REGISTRY_SERVICE , ResourceAdapterDeploymentRegistry . class , service . getRegistryInjector ( ) ) . addDependency ( JNDI_STRATEGY_SERVICE , JndiStrategy . class , service . getJndiInjector ( ) ) . addDependency ( JBOSS_TXN_TRANSACTION_MANAGER , TransactionManagerService . class , service . getTxmInjector ( ) ) . addDependency ( CONNECTOR_CONFIG_SERVICE , ConnectorSubsystemConfiguration . class , service . getConfigInjector ( ) ) . addDependency ( SERVICE_NAME ) . setInitialMode ( ACTIVE ) . install ( ) ; <END_BUG> } } } catch ( Throwable t ) { throw new DeploymentUnitProcessingException ( t ) ; } } public void undeploy ( final DeploymentUnit context ) { } }

Fix:
serviceTarget . addService ( RESOURCE_ADAPTER_XML_SERVICE_PREFIX . append ( deploymentName ) , service ) . addDependency ( IRONJACAMAR_MDR , MetadataRepository . class , service . getMdrInjector ( ) ) . addDependency ( RESOURCE_ADAPTER_REGISTRY_SERVICE , ResourceAdapterDeploymentRegistry . class , service . getRegistryInjector ( ) ) . addDependency ( JNDI_STRATEGY_SERVICE , JndiStrategy . class , service . getJndiInjector ( ) ) . addDependency ( JBOSS_TXN_ARJUNA_TRANSACTION_MANAGER , TransactionManagerService . class , service . getTxmInjector ( ) ) . addDependency ( CONNECTOR_CONFIG_SERVICE , ConnectorSubsystemConfiguration . class , service . getConfigInjector ( ) ) . addDependency ( SERVICE_NAME ) . setInitialMode ( ACTIVE ) . install ( ) ;