Buggy code:
} @ Override public void handleFailed ( final ModelNode failureDescription ) { ServerControllerService . log . errorf ( "Boot<seq2seq4repair_space>update<seq2seq4repair_space>failed:<seq2seq4repair_space>%s" , failureDescription ) ; if ( ( count . decrementAndGet ( ) ) == 0 ) { } } @ Override public void handleCancellation ( ) { if ( ( count . decrementAndGet ( ) ) == 0 ) { } } } ; for ( ModelNode update : updates ) { count . incrementAndGet ( ) ; update . get ( OPERATION_HEADERS , ROLLBACK_ON_RUNTIME_FAILURE ) . set ( false ) ; serverController . execute ( Factory . create ( update ) . build ( ) , resultHandler ) ; } if ( ( count . decrementAndGet ( ) ) == 0 ) { } final EnumMap < Phase , SortedSet < RegisteredProcessor > > deployers = serverController . finishBoot ( ) ; final File [ ] extDirs = serverEnvironment . getJavaExtDirs ( ) ; final File [ ] newExtDirs = Arrays . copyOf ( extDirs , ( ( extDirs . length ) + 1 ) ) ; newExtDirs [ extDirs . length ] = new File ( serverEnvironment . getServerBaseDir ( ) , "lib//ext" ) ; serviceTarget . addService ( JBOSS_DEPLOYMENT_EXTENSION_INDEX , new ExtensionIndexService ( newExtDirs ) ) . setInitialMode ( ON_DEMAND ) . install ( ) ; deployers . get ( STRUCTURE ) . add ( new RegisteredProcessor ( Phase . STRUCTURE_SERVICE_MODULE_LOADER , new DeploymentUnitProcessor ( ) { @ Override public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { phaseContext . getDeploymentUnit ( ) . putAttachment ( SERVICE_MODULE_LOADER , injectedModuleLoader . getValue ( ) ) ; phaseContext . getDeploymentUnit ( ) . putAttachment ( EXTERNAL_MODULE_SERVICE , injectedExternalModuleService . getValue ( ) ) ; } @ Override public void undeploy ( DeploymentUnit context ) { context . removeAttachment ( SERVICE_MODULE_LOADER ) ; } } ) ) ; deployers . get ( STRUCTURE ) . add ( new RegisteredProcessor ( Phase . STRUCTURE_MOUNT , new DeploymentRootMountProcessor ( ) ) ) ; deployers . get ( STRUCTURE ) . add ( new RegisteredProcessor ( Phase . STRUCTURE_MANIFEST , new ManifestAttachmentProcessor ( ) ) ) ; deployers . get ( STRUCTURE ) . add ( new RegisteredProcessor ( Phase . STRUCTURE_ADDITIONAL_MANIFEST , new ManifestAttachmentProcessor ( ) ) ) ; deployers . get ( STRUCTURE ) . add ( new RegisteredProcessor ( Phase . STRUCTURE_SUB_DEPLOYMENT , new SubDeploymentProcessor ( ) ) ) ; deployers . get ( STRUCTURE ) . add ( new RegisteredProcessor ( Phase . STRUCTURE_MODULE_IDENTIFIERS , new ModuleIdentifierProcessor ( ) ) ) ; deployers . get ( STRUCTURE ) . add ( new RegisteredProcessor ( Phase . STRUCTURE_ANNOTATION_INDEX , new AnnotationIndexProcessor ( ) ) ) ; deployers . get ( PARSE ) . add ( new RegisteredProcessor ( Phase . PARSE_STRUCTURE_DESCRIPTOR , new DeploymentStructureDescriptorParser ( ) ) ) ; deployers . get ( PARSE ) . add ( new RegisteredProcessor ( Phase . PARSE_COMPOSITE_ANNOTATION_INDEX , new CompositeIndexProcessor ( ) ) ) ; deployers . get ( PARSE ) . add ( new RegisteredProcessor ( Phase . PARSE_ADDITIONAL_MODULES , new AdditionalModuleProcessor ( ) ) ) ; deployers . get ( PARSE ) . add ( new RegisteredProcessor ( Phase . PARSE_CLASS_PATH , new ManifestClassPathProcessor ( ) ) ) ; deployers . get ( PARSE ) . add ( new RegisteredProcessor ( Phase . PARSE_EXTENSION_LIST , new ManifestExtensionListProcessor ( ) ) ) ; deployers . get ( PARSE ) . add ( new RegisteredProcessor ( Phase . PARSE_EXTENSION_NAME , new ManifestExtensionNameProcessor ( ) ) ) ; deployers . get ( PARSE ) . add ( new RegisteredProcessor ( Phase . PARSE_SERVICE_LOADER_DEPLOYMENT , new ServiceLoaderProcessor ( ) ) ) ; deployers . get ( DEPENDENCIES ) . add ( new RegisteredProcessor ( Phase . DEPENDENCIES_MODULE , new ModuleDependencyProcessor ( ) ) ) ; deployers . get ( DEPENDENCIES ) . add ( new RegisteredProcessor ( Phase . DEPENDENCIES_SAR_MODULE , new ServiceActivatorDependencyProcessor ( ) ) ) ; deployers . get ( DEPENDENCIES ) . add ( new RegisteredProcessor ( Phase . DEPENDENCIES_CLASS_PATH , new ModuleClassPathProcessor ( ) ) ) ; deployers . get ( DEPENDENCIES ) . add ( new RegisteredProcessor ( Phase . DEPENDENCIES_EXTENSION_LIST , new ModuleExtensionListProcessor ( ) ) ) ; deployers . get ( DEPENDENCIES ) . add ( new RegisteredProcessor ( Phase . DEPENDENCIES_SUB_DEPLOYMENTS , new SubDeploymentDependencyProcessor ( ) ) ) ; deployers . get ( CONFIGURE_MODULE ) . add ( new RegisteredProcessor ( Phase . CONFIGURE_MODULE_SPEC , new ModuleSpecProcessor ( ) ) ) ; deployers . get ( POST_MODULE ) . add ( new RegisteredProcessor ( Phase . POST_MODULE_INSTALL_EXTENSION , new ModuleExtensionNameProcessor ( ) ) ) ; deployers . get ( POST_MODULE ) . add ( new RegisteredProcessor ( Phase . POST_MODULE_REFLECTION_INDEX , new InstallReflectionIndexProcessor ( ) ) ) ; deployers . get ( INSTALL ) . add ( new RegisteredProcessor ( Phase . INSTALL_SERVICE_ACTIVATOR , new ServiceActivatorProcessor ( ) ) ) ; <START_BUG> deployers . get ( DEPENDENCIES ) . add ( new RegisteredProcessor ( Phase . DEPENDENCIES_SEAM , new SeamProcessor ( ) ) ) ; <END_BUG> final EnumMap < Phase , List < DeploymentUnitProcessor > > finalDeployers = new EnumMap < Phase , List < DeploymentUnitProcessor > > ( Phase . class ) ; for ( Map . Entry < Phase , SortedSet < RegisteredProcessor > > entry : deployers . entrySet ( ) ) { final SortedSet < RegisteredProcessor > processorSet = entry . getValue ( ) ; final List < DeploymentUnitProcessor > list = new ArrayList < DeploymentUnitProcessor > ( processorSet . size ( ) ) ; for ( RegisteredProcessor processor : processorSet ) { list . add ( processor . getProcessor ( ) ) ; } finalDeployers . put ( entry . getKey ( ) , list ) ; } DeployerChainsService . addService ( serviceTarget , finalDeployers ) ; this . serverController = serverController ; } @ Override public synchronized void stop ( final StopContext context ) { } @ Override public synchronized ServerController getValue ( ) throws IllegalArgumentException , IllegalStateException { } }

Fix:
deployers . get ( DEPENDENCIES ) . add ( new RegisteredProcessor ( Phase . DEPENDENCIES_SEAM , new org . jboss . as . server . deployment . integration . SeamProcessor ( serviceTarget ) ) ) ;