// load the applications
Collection componentConfigs = ComponentConfig.getAllComponents();
if (componentConfigs != null) {
Iterator components = componentConfigs.iterator();
while (components.hasNext()) {
ComponentConfig component = (ComponentConfig) components.next();
Iterator appInfos = component.getWebappInfos().iterator();
while (appInfos.hasNext()) {
ComponentConfig.WebappInfo appInfo = (ComponentConfig.WebappInfo) appInfos.next();
List virtualHosts = appInfo.getVirtualHosts();
Map initParameters = appInfo.getInitParameters();
Server server = (Server) servers.get(appInfo.server);
if (server == null) {
Debug.logWarning("Server with name [" + appInfo.server + "] not found; not mounting [" + appInfo.name + "]", module);
} else {
try {
// set the root location (make sure we set the paths correctly)
String location = component.getRootLocation() + appInfo.location;
location = location.replace('\\', '/');
if (!location.endsWith("/")) {
location = location + "/";
}