}
private void moduleDeployed(ConfigContext config, String moduleName)
throws AdminEventListenerException {
WebModule webModule = getWebModuleAndUpdateCache(
config, moduleName, true);
//Do not deploy if enable is false
if (!isEnabled(config, moduleName)) {
return;
}
String location = webModule.getLocation();
// If module root is relative then prefix it with the
// location of where all the standalone modules for
// this server instance are deployed
File moduleBase = new File(location);
String modulesRoot = getWebContainer().getModulesRoot();
if (!moduleBase.isAbsolute()) {
location = modulesRoot+File.separator+location;
webModule.setLocation(location);
}
WebModuleConfig wmInfo = loadWebModuleConfig(webModule, config);
List<Throwable> throwables =
getWebContainer().loadWebModule(wmInfo, "null");
if (throwables != null && !throwables.isEmpty()) {