host.removeChild() already calls context.destroy(). Don't call it twice.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 24 Nov 2010 17:36:28 +0000 (17:36 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 24 Nov 2010 17:36:28 +0000 (17:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1038713 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/startup/HostConfig.java
java/org/apache/catalina/startup/LocalStrings.properties
java/org/apache/catalina/startup/LocalStrings_es.properties

index 6df1c2e..cb4bce7 100644 (file)
@@ -1103,13 +1103,6 @@ public class HostConfig
                         log.warn(sm.getString
                                  ("hostConfig.context.remove", app.name), t);
                     }
-                    try {
-                        context.destroy();
-                    } catch (Throwable t) {
-                        ExceptionUtils.handleThrowable(t);
-                        log.warn(sm.getString
-                                 ("hostConfig.context.destroy", app.name), t);
-                    }
                     // Delete other redeploy resources
                     for (int j = i + 1; j < resources.length; j++) {
                         try {
@@ -1161,13 +1154,6 @@ public class HostConfig
                     log.warn(sm.getString
                              ("hostConfig.context.remove", app.name), t);
                 }
-                try {
-                    context.destroy();
-                } catch (Throwable t) {
-                    ExceptionUtils.handleThrowable(t);
-                    log.warn(sm.getString
-                             ("hostConfig.context.destroy", app.name), t);
-                }
                 // Delete all redeploy resources
                 for (int j = i + 1; j < resources.length; j++) {
                     try {
index 8898e1d..67a5b8a 100644 (file)
@@ -72,7 +72,6 @@ expandWar.illegalPath=The archive [{0}] is malformed and will be ignored: an ent
 hostConfig.appBase=Application base directory {0} does not exist
 hostConfig.canonicalizing=Error delete redeploy resources from context [{0}]
 hostConfig.cce=Lifecycle event data object {0} is not a Host
-hostConfig.context.destroy=Error during context [{0}] destroy
 hostConfig.context.remove=Error while removing context [{0}]
 hostConfig.context.restart=Error during context [{0}] restart
 hostConfig.createDirs=Unable to create directory for deployment: {0}
index 284634e..f464dec 100644 (file)
@@ -44,7 +44,6 @@ expandWar.copy = Error copiando {0} a {1}
 hostConfig.appBase = No existe el directorio base de la aplicaci\u00F3n {0}
 hostConfig.canonicalizing = Error al borrar redespliegue de recursos desde contexto [{0}]
 hostConfig.cce = El objeto de los datos de evento de ciclo de vida (Lifecycle event data object) {0} no es una m\u00E1quina (host)
-hostConfig.context.destroy = Error al destruir contexto [{0}]
 hostConfig.context.remove = Error al quitar contexto [{0}]
 hostConfig.context.restart = Error durante el arranque del contexto {0}
 hostConfig.deploy = Desplieque del directorio {0} de la aplicaci\u00F3n web