This is an automated email from the ASF dual-hosted git repository.

rmaucher pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
     new b608b6a28b Harmonize with war and directory deploy
b608b6a28b is described below

commit b608b6a28b83374ccfaf2f00d7f99b9a6f1e37e6
Author: remm <[email protected]>
AuthorDate: Wed May 20 16:11:54 2026 +0200

    Harmonize with war and directory deploy
    
    Descriptor deployment does not add to the deployed map on failure,
    unlike the two others.
---
 java/org/apache/catalina/startup/HostConfig.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/java/org/apache/catalina/startup/HostConfig.java 
b/java/org/apache/catalina/startup/HostConfig.java
index 2670b33f1a..47d5279818 100644
--- a/java/org/apache/catalina/startup/HostConfig.java
+++ b/java/org/apache/catalina/startup/HostConfig.java
@@ -691,9 +691,7 @@ public class HostConfig implements LifecycleListener {
             addGlobalRedeployResources(deployedApp);
         }
 
-        if (host.findChild(context.getName()) != null) {
-            deployed.put(context.getName(), deployedApp);
-        }
+        deployed.put(context.getName(), deployedApp);
 
         if (log.isInfoEnabled()) {
             log.info(sm.getString("hostConfig.deployDescriptor.finished", 
contextXml.getAbsolutePath(),


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to