Buggy code:
class JPASubSystemAdd extends AbstractBoottimeAddStepHandler { public static final JPASubSystemAdd INSTANCE = new JPASubSystemAdd ( ) ; private final ParametersValidator runtimeValidator = new ParametersValidator ( ) ; private JPASubSystemAdd ( ) { } protected void populateModel ( ModelNode operation , ModelNode model ) throws OperationFailedException { } protected void performBoottime ( OperationContext context , ModelNode operation , ModelNode model , ServiceVerificationHandler verificationHandler , List < ServiceController < ? > > newControllers ) throws OperationFailedException { runtimeValidator . validate ( operation . resolve ( ) ) ; context . addStep ( new AbstractDeploymentChainStep ( ) { protected void execute ( DeploymentProcessorTarget processorTarget ) { PersistenceProviderResolverHolder . setPersistenceProviderResolver ( PersistenceProviderResolverImpl . getInstance ( ) ) ; <START_BUG> processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , STRUCTURE , STRUCTURE_REGISTER_JBOSS_ALL_JPA , new org . jboss . as . server . deployment . jbossallxml . JBossAllXmlParserRegisteringProcessor < org . jboss . as . jpa . config . JPADeploymentSettings > ( JPAJarJBossAllParser . ROOT_ELEMENT , JpaAttachments . DEPLOYMENT_SETTINGS_KEY , new JPAJarJBossAllParser ( ) ) ) ; <END_BUG> processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , PARSE , PARSE_PERSISTENCE_UNIT , new PersistenceUnitParseProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , DEPENDENCIES , DEPENDENCIES_PERSISTENCE_ANNOTATION , new JPAAnnotationProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , DEPENDENCIES , DEPENDENCIES_JPA , new JPADependencyProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , FIRST_MODULE_USE , FIRST_MODULE_USE_PERSISTENCE_CLASS_FILE_TRANSFORMER , new JPAClassFileTransformerProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , FIRST_MODULE_USE , FIRST_MODULE_USE_INTERCEPTORS , new JPAInterceptorProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , FIRST_MODULE_USE , FIRST_MODULE_USE_PERSISTENCE_PREPARE , new PersistenceBeginInstallProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , POST_MODULE , POST_MODULE_PERSISTENCE_REF , new PersistenceRefProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , INSTALL , INSTALL_PERSISTENTUNIT , new PersistenceCompleteInstallProcessor ( ) ) ; } } , RUNTIME ) ; final ModelNode defaultDSNode = operation . require ( DEFAULT_DATASOURCE ) ; final String dataSourceName = defaultDSNode . resolve ( ) . asString ( ) ; ExtendedPersistenceInheritance defaultExtendedPersistenceInheritance = ExtendedPersistenceInheritance . DEEP ; if ( operation . hasDefined ( DEFAULT_EXTENDEDPERSISTENCE_INHERITANCE ) ) { final ModelNode defaultExtendedPersistenceInheritanceNode = operation . get ( DEFAULT_EXTENDEDPERSISTENCE_INHERITANCE ) ; defaultExtendedPersistenceInheritance = ExtendedPersistenceInheritance . valueOf ( defaultExtendedPersistenceInheritanceNode . resolve ( ) . asString ( ) ) ; } final ServiceTarget target = context . getServiceTarget ( ) ; newControllers . add ( JPAService . addService ( target , dataSourceName , defaultExtendedPersistenceInheritance , verificationHandler ) ) ; newControllers . add ( JPAUserTransactionListenerService . addService ( target , verificationHandler ) ) ; } }

Fix:
processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , STRUCTURE , STRUCTURE_REGISTER_JBOSS_ALL_XML_PARSER , new org . jboss . as . server . deployment . jbossallxml . JBossAllXmlParserRegisteringProcessor < org . jboss . as . jpa . config . JPADeploymentSettings > ( JPAJarJBossAllParser . ROOT_ELEMENT , JpaAttachments . DEPLOYMENT_SETTINGS_KEY , new JPAJarJBossAllParser ( ) ) ) ;