use of com.sun.enterprise.deployment.WebBundleDescriptor in project Payara by payara.
the class WebBundleDescriptorImpl method combineResourceEnvReferenceDescriptors.
@Override
protected void combineResourceEnvReferenceDescriptors(JndiNameEnvironment env) {
for (Object ojdRef : env.getResourceEnvReferenceDescriptors()) {
ResourceEnvReferenceDescriptor jdRef = (ResourceEnvReferenceDescriptor) ojdRef;
ResourceEnvReferenceDescriptor jdr = _getResourceEnvReferenceByName(jdRef.getName());
if (jdr != null) {
combineInjectionTargets(jdr, jdRef);
} else {
if (env instanceof WebBundleDescriptor && ((WebBundleDescriptor) env).isConflictResourceEnvReference()) {
throw new IllegalArgumentException(localStrings.getLocalString("web.deployment.exceptionconflictresourceenvref", "There are more than one resource env references defined in web fragments with the same name, but not overrided in web.xml"));
} else {
addResourceEnvReferenceDescriptor(jdRef);
}
}
}
}
use of com.sun.enterprise.deployment.WebBundleDescriptor in project Payara by payara.
the class WebBundleDescriptorImpl method combineResourceReferenceDescriptors.
/**
* @param env
*/
@Override
protected void combineResourceReferenceDescriptors(JndiNameEnvironment env) {
for (Object oresRef : env.getResourceReferenceDescriptors()) {
ResourceReferenceDescriptor resRef = (ResourceReferenceDescriptor) oresRef;
ResourceReferenceDescriptor rrd = _getResourceReferenceByName(resRef.getName());
if (rrd != null) {
combineInjectionTargets(rrd, resRef);
} else {
if (env instanceof WebBundleDescriptor && ((WebBundleDescriptor) env).isConflictResourceReference()) {
throw new IllegalArgumentException(localStrings.getLocalString("web.deployment.exceptionconflictresourceref", "There are more than one resource references defined in web fragments with the same name, but not overrided in web.xml"));
} else {
addResourceReferenceDescriptor(resRef);
}
}
}
}
Aggregations