Buggy code:
public class EJB3RemoteServiceAdd extends AbstractBoottimeAddStepHandler { static final EJB3RemoteServiceAdd INSTANCE = new EJB3RemoteServiceAdd ( ) ; private EJB3RemoteServiceAdd ( ) { } static ModelNode create ( final String connectorName , final String threadPoolName ) { } @ Override protected void performBoottime ( OperationContext context , ModelNode operation , ModelNode model , ServiceVerificationHandler verificationHandler , List < ServiceController < ? > > newControllers ) throws OperationFailedException { } Collection < ServiceController < ? > > installRuntimeServices ( final OperationContext context , final ModelNode model , final ServiceVerificationHandler verificationHandler ) { final String connectorName = model . require ( CONNECTOR_REF ) . asString ( ) ; final String threadPoolName = model . require ( THREAD_POOL_NAME ) . asString ( ) ; final ServiceName remotingServerServiceName = RemotingServices . serverServiceName ( connectorName ) ; final List < ServiceController < ? > > services = new ArrayList < ServiceController < ? > > ( ) ; final ServiceTarget serviceTarget = context . getServiceTarget ( ) ; final EJBRemotingConnectorClientMappingsEntryProviderService clientMappingEntryProviderService = new EJBRemotingConnectorClientMappingsEntryProviderService ( remotingServerServiceName ) ; final ServiceBuilder clientMappingEntryProviderServiceBuilder = serviceTarget . addService ( SERVICE_NAME , clientMappingEntryProviderService ) . addDependency ( ServerEnvironmentService . SERVICE_NAME , ServerEnvironment . class , clientMappingEntryProviderService . getServerEnvironmentInjector ( ) ) . addDependency ( remotingServerServiceName ) ; if ( verificationHandler != null ) { clientMappingEntryProviderServiceBuilder . addListener ( verificationHandler ) ; } final ServiceController clientMappingEntryProviderServiceController = clientMappingEntryProviderServiceBuilder . install ( ) ; services . add ( clientMappingEntryProviderServiceController ) ; final EJBRemoteConnectorService ejbRemoteConnectorService = new EJBRemoteConnectorService ( ( ( byte ) ( 1 ) ) , new String [ ] { "river" } , remotingServerServiceName ) ; final ServiceBuilder < EJBRemoteConnectorService > ejbRemoteConnectorServiceBuilder = serviceTarget . addService ( EJBRemoteConnectorService . SERVICE_NAME , ejbRemoteConnectorService ) ; ejbRemoteConnectorServiceBuilder . addDependency ( SUBSYSTEM_ENDPOINT , Endpoint . class , ejbRemoteConnectorService . getEndpointInjector ( ) ) ; ejbRemoteConnectorServiceBuilder . addDependency ( remotingServerServiceName ) ; <START_BUG> ejbRemoteConnectorServiceBuilder . addDependency ( BASE_SERVICE_NAME . append ( threadPoolName ) , ExecutorService . class , ejbRemoteConnectorService . getExecutorService ( ) ) . addDependency ( DeploymentRepository . SERVICE_NAME , DeploymentRepository . class , ejbRemoteConnectorService . getDeploymentRepositoryInjector ( ) ) . addDependency ( EJBRemoteTransactionsRepository . SERVICE_NAME , EJBRemoteTransactionsRepository . class , ejbRemoteConnectorService . getEJBRemoteTransactionsRepositoryInjector ( ) ) . addDependency ( CLIENT_MAPPING_REGISTRY_COLLECTOR_SERVICE_NAME , RegistryCollector . class , ejbRemoteConnectorService . getClusterRegistryCollectorInjector ( ) ) . addDependency ( ServerEnvironmentService . SERVICE_NAME , ServerEnvironment . class , ejbRemoteConnectorService . getServerEnvironmentInjector ( ) ) . setInitialMode ( ACTIVE ) ; <END_BUG> if ( verificationHandler != null ) { ejbRemoteConnectorServiceBuilder . addListener ( verificationHandler ) ; } final ServiceController ejbRemotingConnectorServiceController = ejbRemoteConnectorServiceBuilder . install ( ) ; services . add ( ejbRemotingConnectorServiceController ) ; return services ; } @ Override protected void populateModel ( ModelNode operation , ModelNode model ) throws OperationFailedException { } }

Fix:
ejbRemoteConnectorServiceBuilder . addDependency ( BASE_THREAD_POOL_SERVICE_NAME . append ( threadPoolName ) , ExecutorService . class , ejbRemoteConnectorService . getExecutorService ( ) ) . addDependency ( DeploymentRepository . SERVICE_NAME , DeploymentRepository . class , ejbRemoteConnectorService . getDeploymentRepositoryInjector ( ) ) . addDependency ( EJBRemoteTransactionsRepository . SERVICE_NAME , EJBRemoteTransactionsRepository . class , ejbRemoteConnectorService . getEJBRemoteTransactionsRepositoryInjector ( ) ) . addDependency ( CLIENT_MAPPING_REGISTRY_COLLECTOR_SERVICE_NAME , RegistryCollector . class , ejbRemoteConnectorService . getClusterRegistryCollectorInjector ( ) ) . addDependency ( ServerEnvironmentService . SERVICE_NAME , ServerEnvironment . class , ejbRemoteConnectorService . getServerEnvironmentInjector ( ) ) . setInitialMode ( ACTIVE ) ;