Buggy code:
public final class ResourceAdapterActivatorService extends AbstractResourceAdapterDeploymentService implements Service < ResourceAdapterDeployment > { private static final DeployersLogger DEPLOYERS_LOGGER = Logger . getMessageLogger ( DeployersLogger . class , ResourceAdapterActivatorService . ResourceAdapterActivator . class . getName ( ) ) ; private final ClassLoader cl ; private final Connector cmd ; private final IronJacamar ijmd ; private final String deploymentName ; private CommonDeployment deploymentMD ; private BindInfo bindInfo ; private boolean createBinderService = true ; public ResourceAdapterActivatorService ( final Connector cmd , final IronJacamar ijmd , ClassLoader cl , final String deploymentName ) { } public BindInfo getBindInfo ( String jndi ) { } public void setBindInfo ( ContextNames . BindInfo bindInfo ) { } public boolean isCreateBinderService ( ) { } public void setCreateBinderService ( boolean createBinderService ) { } @ Override public void start ( StartContext context ) throws StartException { } @ Override public void stop ( final StopContext context ) { } @ Override public void unregisterAll ( String deploymentName ) { } public CommonDeployment getDeploymentMD ( ) { } private class ResourceAdapterActivator extends AbstractAS7RaDeployer { private final IronJacamar ijmd ; public ResourceAdapterActivator ( ServiceTarget serviceTarget , URL url , String deploymentName , File root , ClassLoader cl , Connector cmd , IronJacamar ijmd ) { } @ Override public CommonDeployment doDeploy ( ) throws Throwable { } @ Override protected boolean checkActivation ( Connector cmd , IronJacamar ijmd ) { if ( cmd != null ) { Set < String > raMcfClasses = new HashSet < String > ( ) ; Set < String > raAoClasses = new HashSet < String > ( ) ; if ( ( cmd . getVersion ( ) ) == ( Version . V_10 ) ) { ResourceAdapter10 ra10 = ( ( ResourceAdapter10 ) ( cmd . getResourceadapter ( ) ) ) ; raMcfClasses . add ( ra10 . getManagedConnectionFactoryClass ( ) . getValue ( ) ) ; } else { ResourceAdapter1516 ra = ( ( ResourceAdapter1516 ) ( cmd . getResourceadapter ( ) ) ) ; if ( ( ( ra != null ) && ( ( ra . getOutboundResourceadapter ( ) ) != null ) ) && ( ( ra . getOutboundResourceadapter ( ) . getConnectionDefinitions ( ) ) != null ) ) { List < ConnectionDefinition > cdMetas = ra . getOutboundResourceadapter ( ) . getConnectionDefinitions ( ) ; if ( ( cdMetas . size ( ) ) > 0 ) { for ( ConnectionDefinition cdMeta : cdMetas ) { raMcfClasses . add ( cdMeta . getManagedConnectionFactoryClass ( ) . getValue ( ) ) ; } } } if ( ( ra != null ) && ( ( ra . getAdminObjects ( ) ) != null ) ) { List < AdminObject > aoMetas = ra . getAdminObjects ( ) ; if ( ( aoMetas . size ( ) ) > 0 ) { for ( AdminObject aoMeta : aoMetas ) { raAoClasses . add ( aoMeta . getAdminobjectClass ( ) . getValue ( ) ) ; } } } if ( ( ( raMcfClasses . size ( ) ) == 0 ) && ( ( raAoClasses . size ( ) ) == 0 ) ) return true ; } if ( ijmd != null ) { Set < String > ijMcfClasses = new HashSet < String > ( ) ; Set < String > ijAoClasses = new HashSet < String > ( ) ; boolean mcfSingle = false ; boolean aoSingle = false ; boolean mcfOk = true ; boolean aoOk = true ; if ( ( ijmd . getConnectionDefinitions ( ) ) != null ) { for ( CommonConnDef def : ijmd . getConnectionDefinitions ( ) ) { String clz = def . getClassName ( ) ; if ( clz == null ) { if ( ( raMcfClasses . size ( ) ) == 1 ) { mcfSingle = true ; } } else { ijMcfClasses . add ( clz ) ; } } } if ( ! mcfSingle ) { Iterator < String > it = raMcfClasses . iterator ( ) ; while ( mcfOk && ( it . hasNext ( ) ) ) { String clz = it . next ( ) ; if ( ! ( ijMcfClasses . contains ( clz ) ) ) mcfOk = false ; } } if ( ( ijmd . getAdminObjects ( ) ) != null ) { for ( CommonAdminObject def : ijmd . getAdminObjects ( ) ) { String clz = def . getClassName ( ) ; if ( clz == null ) { if ( ( raAoClasses . size ( ) ) == 1 ) { aoSingle = true ; } } else { ijAoClasses . add ( clz ) ; } } } if ( ! aoSingle ) { Iterator < String > it = raAoClasses . iterator ( ) ; while ( aoOk && ( it . hasNext ( ) ) ) { String clz = it . next ( ) ; if ( ! ( ijAoClasses . contains ( clz ) ) ) aoOk = false ; } } <START_BUG> return mcfOk && aoOk ; <END_BUG> } } return false ; } @ Override protected DeployersLogger getLogger ( ) { } } }

Fix:
return mcfOk || aoOk ;