Buggy code:
final class ApplicationServerService implements Service < AsyncFuture < ServiceContainer > > { private static final Logger log = Logger . getLogger ( "org.jboss.as" ) ; private static final Logger configLog = Logger . getLogger ( "org.jboss.as.config" ) ; private final List < ServiceActivator > extraServices ; private final Configuration configuration ; private volatile ApplicationServerService . FutureServiceContainer futureContainer ; private volatile long startTime ; ApplicationServerService ( final List < ServiceActivator > extraServices , final Bootstrap . Configuration configuration ) { } @ Override public synchronized void start ( final StartContext context ) throws StartException { final Bootstrap . Configuration configuration = this . configuration ; final ServerEnvironment serverEnvironment = configuration . getServerEnvironment ( ) ; serverEnvironment . install ( ) ; ApplicationServerService . log . infof ( "JBoss<seq2seq4repair_space>AS<seq2seq4repair_space>%s<seq2seq4repair_space>\"%s\"<seq2seq4repair_space>starting" , AS_VERSION , AS_RELEASE_CODENAME ) ; if ( ApplicationServerService . configLog . isDebugEnabled ( ) ) { final Properties properties = System . getProperties ( ) ; final StringBuilder b = new StringBuilder ( 8192 ) ; b . append ( "Configured<seq2seq4repair_space>system<seq2seq4repair_space>properties:" ) ; for ( String property : new TreeSet < String > ( properties . stringPropertyNames ( ) ) ) { b . append ( "\n\t" ) . append ( property ) . append ( "<seq2seq4repair_space>=<seq2seq4repair_space>" ) . append ( properties . getProperty ( property , "<undefined>" ) ) ; } ApplicationServerService . configLog . debug ( b ) ; if ( ApplicationServerService . configLog . isTraceEnabled ( ) ) { b . setLength ( 0 ) ; final Map < String , String > env = System . getenv ( ) ; b . append ( "Configured<seq2seq4repair_space>system<seq2seq4repair_space>environment:" ) ; for ( String key : new TreeSet < String > ( env . keySet ( ) ) ) { b . append ( "\n\t" ) . append ( key ) . append ( "<seq2seq4repair_space>=<seq2seq4repair_space>" ) . append ( env . get ( key ) ) ; } ApplicationServerService . configLog . trace ( b ) ; } } final ServiceTarget serviceTarget = context . getChildTarget ( ) ; final ServiceController < ? > myController = context . getController ( ) ; final ServiceContainer container = myController . getServiceContainer ( ) ; futureContainer = new ApplicationServerService . FutureServiceContainer ( container ) ; long startTime = this . startTime ; if ( startTime == ( - 1 ) ) { startTime = System . currentTimeMillis ( ) ; } else { this . startTime = - 1 ; } CurrentServiceRegistry . setServiceRegistry ( context . getController ( ) . getServiceContainer ( ) ) ; final ApplicationServerService . BootstrapListener bootstrapListener = new ApplicationServerService . BootstrapListener ( container , startTime , serviceTarget , futureContainer , configuration ) ; serviceTarget . addListener ( bootstrapListener ) ; myController . addListener ( bootstrapListener ) ; ContentRepositoryImpl contentRepository = ContentRepositoryImpl . addService ( serviceTarget , serverEnvironment . getServerDeployDir ( ) ) ; <START_BUG> ServerDeploymentRepositoryImpl . addService ( serviceTarget , serverEnvironment . getServerDeployDir ( ) , serverEnvironment . getServerSystemDeployDir ( ) , contentRepository ) ; <END_BUG> ServiceModuleLoader . addService ( serviceTarget , configuration ) ; ExternalModuleService . addService ( serviceTarget ) ; ModuleIndexService . addService ( serviceTarget ) ; ServerControllerService . addService ( serviceTarget , configuration ) ; final ServiceActivatorContext serviceActivatorContext = new ServiceActivatorContext ( ) { @ Override public ServiceTarget getServiceTarget ( ) { return serviceTarget ; } @ Override public ServiceRegistry getServiceRegistry ( ) { return container ; } } ; for ( ServiceActivator activator : extraServices ) { activator . activate ( serviceActivatorContext ) ; } serviceTarget . addService ( SERVICE_NAME , new ShutdownHandlerImpl ( ) ) . install ( ) ; ServerEnvironmentService . addService ( serverEnvironment , serviceTarget ) ; AbsolutePathService . addService ( HOME_DIR , serverEnvironment . getHomeDir ( ) . getAbsolutePath ( ) , serviceTarget ) ; AbsolutePathService . addService ( SERVER_BASE_DIR , serverEnvironment . getServerBaseDir ( ) . getAbsolutePath ( ) , serviceTarget ) ; AbsolutePathService . addService ( SERVER_CONFIG_DIR , serverEnvironment . getServerConfigurationDir ( ) . getAbsolutePath ( ) , serviceTarget ) ; AbsolutePathService . addService ( SERVER_DATA_DIR , serverEnvironment . getServerDataDir ( ) . getAbsolutePath ( ) , serviceTarget ) ; AbsolutePathService . addService ( SERVER_LOG_DIR , serverEnvironment . getServerLogDir ( ) . getAbsolutePath ( ) , serviceTarget ) ; AbsolutePathService . addService ( SERVER_TEMP_DIR , serverEnvironment . getServerTempDir ( ) . getAbsolutePath ( ) , serviceTarget ) ; AbsolutePathService . addService ( "user.dir" , System . getProperty ( "user.dir" ) , serviceTarget ) ; AbsolutePathService . addService ( "user.home" , System . getProperty ( "user.home" ) , serviceTarget ) ; AbsolutePathService . addService ( "java.home" , System . getProperty ( "java.home" ) , serviceTarget ) ; if ( ApplicationServerService . log . isDebugEnabled ( ) ) { final long nanos = context . getElapsedTime ( ) ; ApplicationServerService . log . debugf ( "JBoss<seq2seq4repair_space>AS<seq2seq4repair_space>root<seq2seq4repair_space>service<seq2seq4repair_space>started<seq2seq4repair_space>in<seq2seq4repair_space>%d.%06d<seq2seq4repair_space>ms" , Long . valueOf ( ( nanos // 1000000L ) ) , Long . valueOf ( ( nanos % 1000000L ) ) ) ; } } @ Override public synchronized void stop ( final StopContext context ) { } @ Override public AsyncFuture < ServiceContainer > getValue ( ) throws IllegalArgumentException , IllegalStateException { } private static class BootstrapListener extends org . jboss . as . controller . BootstrapListener { final ApplicationServerService . FutureServiceContainer futureContainer ; final Configuration configuration ; public BootstrapListener ( final ServiceContainer serviceContainer , final long startTime , final ServiceTarget serviceTarget , final ApplicationServerService . FutureServiceContainer futureContainer , Configuration configuration ) { } @ Override protected void done ( ServiceContainer container , long elapsedTime , int started , int failed , EnumMap < Mode , AtomicInteger > map , Set < ServiceName > missingDepsSet ) { } } private static class FutureServiceContainer extends AsyncFutureTask < ServiceContainer > { public FutureServiceContainer ( final ServiceContainer container ) { } void done ( final ServiceContainer container ) { } } }

Fix:
ServerDeploymentRepositoryImpl . addService ( serviceTarget , contentRepository ) ;