// merge OpenEJB jndi into Tomcat jndi
TomcatJndiBuilder jndiBuilder = new TomcatJndiBuilder(standardContext, webAppInfo, injections);
jndiBuilder.mergeJndi();
// add WebDeploymentInfo to ContainerSystem
CoreWebDeploymentInfo webDeploymentInfo = new CoreWebDeploymentInfo();
webDeploymentInfo.setId(webAppInfo.moduleId);
webDeploymentInfo.setClassLoader(standardContext.getLoader().getClassLoader());
webDeploymentInfo.getInjections().addAll(injections);
getContainerSystem().addWebDeployment(webDeploymentInfo);
} catch (Exception e) {
logger.error("Error merging OpenEJB JNDI entries in to war " + standardContext.getPath() + ": Exception: " + e.getMessage(), e);
}
}