This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 2e669cbb9d Harmonize with war and directory deploy
2e669cbb9d is described below
commit 2e669cbb9dab579942226c7261644ad52d6e8c52
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 0d1085be66..79fcd19852 100644
--- a/java/org/apache/catalina/startup/HostConfig.java
+++ b/java/org/apache/catalina/startup/HostConfig.java
@@ -778,9 +778,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]