Buggy code:
public final class ComponentInstallProcessor implements DeploymentUnitProcessor { private static final Logger logger = Logger . getLogger ( ComponentInstallProcessor . class ) ; public void deploy ( final DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { } protected void deployComponent ( final DeploymentPhaseContext phaseContext , final ComponentConfiguration configuration ) throws DeploymentUnitProcessingException { } private void processBindings ( DeploymentPhaseContext phaseContext , ComponentConfiguration configuration , ServiceTarget serviceTarget , ServiceName contextServiceName , InjectionSource . ResolutionContext resolutionContext , List < BindingConfiguration > bindings , final Map < ServiceName , BindingConfiguration > existingBindings , final Map < ServiceName , BindingConfiguration > deploymentDescriptorBindings ) throws DeploymentUnitProcessingException { final Set < BindingConfiguration > uniqueBindings = new HashSet ( bindings ) ; for ( BindingConfiguration bindingConfiguration : uniqueBindings ) { if ( ( bindingConfiguration . getName ( ) . startsWith ( "java:comp" ) ) || ( ! ( bindingConfiguration . getName ( ) . startsWith ( "java:" ) ) ) ) { <START_BUG> final String bindingName = bindingConfiguration . getName ( ) ; <END_BUG> final BinderService service = new BinderService ( bindingName ) ; final ServiceName serviceName = ContextNames . serviceNameOfEnvEntry ( configuration . getApplicationName ( ) , configuration . getModuleName ( ) , configuration . getComponentName ( ) , ( ( configuration . getComponentDescription ( ) . getNamingMode ( ) ) == ( ComponentNamingMode . CREATE ) ) , bindingName ) ; if ( existingBindings . containsKey ( serviceName ) ) { if ( deploymentDescriptorBindings . containsKey ( serviceName ) ) { continue ; } final BindingConfiguration existing = existingBindings . get ( serviceName ) ; if ( existing . equalTo ( bindingConfiguration , phaseContext ) ) { continue ; } else { throw new DeploymentUnitProcessingException ( ( ( ( ( ( "Bindings<seq2seq4repair_space>with<seq2seq4repair_space>the<seq2seq4repair_space>same<seq2seq4repair_space>name<seq2seq4repair_space>at<seq2seq4repair_space>" + ( bindingConfiguration . getName ( ) ) ) + "<seq2seq4repair_space>" ) + bindingConfiguration ) + "<seq2seq4repair_space>and<seq2seq4repair_space>" ) + existing ) ) ; } } existingBindings . put ( serviceName , bindingConfiguration ) ; ComponentInstallProcessor . logger . tracef ( "Binding<seq2seq4repair_space>%s<seq2seq4repair_space>for<seq2seq4repair_space>%s<seq2seq4repair_space>using<seq2seq4repair_space>service<seq2seq4repair_space>name<seq2seq4repair_space>%s" , bindingName , configuration . getComponentClass ( ) , serviceName ) ; ServiceBuilder < ManagedReferenceFactory > serviceBuilder = serviceTarget . addService ( serviceName , service ) ; bindingConfiguration . getSource ( ) . getResourceValue ( resolutionContext , serviceBuilder , phaseContext , service . getManagedObjectInjector ( ) ) ; serviceBuilder . addDependency ( contextServiceName , NamingStore . class , service . getNamingStoreInjector ( ) ) ; serviceBuilder . install ( ) ; } } } public void undeploy ( final DeploymentUnit context ) { } }

Fix:
final String bindingName = ( bindingConfiguration . getName ( ) . startsWith ( "java:comp" ) ) ? bindingConfiguration . getName ( ) : "java:comp//env//" + ( bindingConfiguration . getName ( ) ) ;