if (log.isDebugEnabled())
log.debug(sm.getString("hostConfig.stop"));
- undeployApps();
-
if (oname != null) {
try {
Registry.getRegistry(null, null).unregisterComponent(oname);
/**
- * Undeploy all deployed applications.
- */
- protected void undeployApps() {
-
- if (log.isDebugEnabled())
- log.debug(sm.getString("hostConfig.undeploying"));
-
- // Soft undeploy all contexts we have deployed
- DeployedApplication[] apps =
- deployed.values().toArray(new DeployedApplication[0]);
- for (int i = 0; i < apps.length; i++) {
- try {
- host.removeChild(host.findChild(apps[i].name));
- } catch (Throwable t) {
- ExceptionUtils.handleThrowable(t);
- log.warn(sm.getString
- ("hostConfig.context.remove", apps[i].name), t);
- }
- }
-
- deployed.clear();
-
- }
-
-
- /**
* Check status of all webapps.
*/
protected void check() {
hostConfig.stop=HostConfig: Processing STOP
hostConfig.undeploy=Undeploying context [{0}]
hostConfig.undeploy.error=Error undeploying web application at context path {0}
-hostConfig.undeploying=Undeploying deployed web applications
tldConfig.addListeners=Adding {0} listeners from TLD files
tldConfig.cce=Lifecycle event data object {0} is not a Context
tldConfig.dirFail=Failed to process directory [{0}] for TLD files
<bug>49956</bug>: Handle case when @Resource annotation uses the full
JNDI name for a resource. Based on a patch by Gurkan Erdogdu. (markt)
</fix>
+ <fix>
+ <bug>49557</bug>: Correct regression due to Lifecycle refactoring that
+ cleared all work directories (with compiled JSPs and persisted sessions)
+ when Tomcat was stopped. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">