ServletContainerFactory.getServletContainer().addWebAppListener(this);
ServletContainerFactory.getServletContainer().addAuthenticationListener(this);
}
else
{
PortalContainerConfig config = getPortalContainerConfig();
for (String portalContainerName : initTasks.keySet())
{
if (config.isPortalContainerName(portalContainerName))
{
// Unregister name of portal container that doesn't exist
LOG.warn("The portal container '" + portalContainerName + "' doesn't exist or"
+ " it has not yet been registered, please check your PortalContainerDefinitions and "
+ "the loading order.");
config.unregisterPortalContainerName(portalContainerName);
}
}
// remove all the registered web application contexts
// corresponding to the portal containers
portalContexts.clear();