Buggy code:
public class JaxrsSpringProcessor implements DeploymentUnitProcessor { public static final String SPRING_INT_JAR = "resteasy-spring.jar" ; public static final String SPRING_LISTENER = "org.jboss.resteasy.plugins.spring.SpringContextLoaderListener" ; public static final String SPRING_SERVLET = "org.springframework.web.servlet.DispatcherServlet" ; @ Deprecated public static final String DISABLE_PROPERTY = "org.jboss.as.jaxrs.disableSpringIntegration" ; public static final String ENABLE_PROPERTY = "org.jboss.as.jaxrs.enableSpringIntegration" ; public static final String SERVICE_NAME = "resteasy-spring-integration-resource-root" ; private final ServiceTarget serviceTarget ; private VirtualFile resourceRoot ; public JaxrsSpringProcessor ( ServiceTarget serviceTarget ) { } protected synchronized VirtualFile getResteasySpringVirtualFile ( ) throws DeploymentUnitProcessingException { } public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { DeploymentUnit deploymentUnit = phaseContext . getDeploymentUnit ( ) ; if ( ( deploymentUnit . getParent ( ) ) != null ) { return ; } final List < DeploymentUnit > deploymentUnits = new ArrayList < DeploymentUnit > ( ) ; deploymentUnits . add ( deploymentUnit ) ; deploymentUnits . addAll ( deploymentUnit . getAttachmentList ( SUB_DEPLOYMENTS ) ) ; boolean found = false ; for ( DeploymentUnit unit : deploymentUnits ) { WarMetaData warMetaData = unit . getAttachment ( ATTACHMENT_KEY ) ; if ( warMetaData == null ) { continue ; } JBossWebMetaData md = warMetaData . getMergedJBossWebMetaData ( ) ; if ( md == null ) { continue ; } if ( ( md . getContextParams ( ) ) != null ) { boolean skip = false ; for ( ParamValueMetaData prop : md . getContextParams ( ) ) { if ( prop . getParamName ( ) . equals ( JaxrsSpringProcessor . ENABLE_PROPERTY ) ) { <START_BUG> boolean explicitEnable = Boolean . parseBoolean ( prop . getParamName ( ) ) ; <END_BUG> if ( explicitEnable ) { found = true ; } else { skip = true ; } break ; } else if ( ( prop . getParamName ( ) . equals ( JaxrsSpringProcessor . DISABLE_PROPERTY ) ) && ( "true" . equals ( prop . getParamValue ( ) ) ) ) { skip = true ; JAXRS_LOGGER . disablePropertyDeprecated ( ) ; break ; } } if ( skip ) { continue ; } } if ( ( md . getListeners ( ) ) != null ) { for ( ListenerMetaData listener : md . getListeners ( ) ) { if ( JaxrsSpringProcessor . SPRING_LISTENER . equals ( listener . getListenerClass ( ) ) ) { found = true ; break ; } } } if ( ( md . getServlets ( ) ) != null ) { for ( JBossServletMetaData servlet : md . getServlets ( ) ) { if ( JaxrsSpringProcessor . SPRING_SERVLET . equals ( servlet . getServletClass ( ) ) ) { found = true ; break ; } } } if ( found ) { try { MountHandle mh = new MountHandle ( null ) ; ResourceRoot resourceRoot = new ResourceRoot ( getResteasySpringVirtualFile ( ) , mh ) ; ModuleRootMarker . mark ( resourceRoot ) ; deploymentUnit . addToAttachmentList ( RESOURCE_ROOTS , resourceRoot ) ; } catch ( Exception e ) { throw new DeploymentUnitProcessingException ( e ) ; } return ; } } } public void undeploy ( DeploymentUnit context ) { } }

Fix:
boolean explicitEnable = Boolean . parseBoolean ( prop . getParamValue ( ) ) ;