protected void mergeError ( Object oldValue , Object newValue , boolean xml , String elementName , boolean property , String key ) throws InjectionConfigurationException { JNDIEnvironmentRefType refType = getJNDIEnvironmentRefType ( ) ; String component = ivNameSpaceConfig . getDisplayName ( ) ; String module = ivNameSpaceConfig . getModuleName ( ) ; String application = ivNameSpaceConfig . getApplicationName ( ) ; String jndiName = getJndiName ( ) ; if ( xml ) { Tr . error ( tc , "CONFLICTING_XML_VALUES_CWNEN0052E" , component , module , application , elementName , refType . getXMLElementName ( ) , refType . getNameXMLElementName ( ) , jndiName , oldValue , newValue ) ; } else { Tr . error ( tc , "CONFLICTING_ANNOTATION_VALUES_CWNEN0054E" , component , module , application , elementName , ' ' + refType . getAnnotationShortName ( ) , refType . getNameAnnotationElementName ( ) , jndiName , oldValue , newValue ) ; } String exMsg ; if ( xml ) { exMsg = "The " + component + " component in the " + module + " module of the " + application + " application has conflicting configuration data in the XML" + " deployment descriptor. Conflicting " + elementName + " element values exist for multiple " + refType . getXMLElementName ( ) + " elements with the same " + refType . getNameXMLElementName ( ) + " element value : " + jndiName + ". The conflicting " + elementName + " element values are " + oldValue + " and " + newValue + "." ; } else { exMsg = "The " + component + " component in the " + module + " module of the " + application + " application has conflicting configuration data" + " in source code annotations. Conflicting " + elementName + " attribute values exist for multiple @" + refType . getAnnotationShortName ( ) + " annotations with the same " + refType . getNameAnnotationElementName ( ) + " attribute value : " + jndiName + ". The conflicting " + elementName + " attribute values are " + oldValue + " and " + newValue + "." ; } throw new InjectionConfigurationException ( exMsg ) ; }
Indication that an error has occurred while merging an attribute value .