You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rz...@apache.org on 2021/09/27 11:02:04 UTC

[tomee] branch master updated: Throw exception, if deployment to unknown host is not possible.

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

rzo1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/master by this push:
     new 0d34715  Throw exception, if deployment to unknown host is not possible.
     new d53d446  Merge pull request #802 from bodop/tomee-3797
0d34715 is described below

commit 0d34715ecf83c6aaea0aa42b5c5e017ea96bf8f8
Author: Bodo Pfelzer <bo...@business-logics.de>
AuthorDate: Fri Sep 24 09:43:03 2021 +0200

    Throw exception, if deployment to unknown host is not possible.
---
 .../src/main/java/org/apache/tomee/catalina/TomcatWebAppBuilder.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/TomcatWebAppBuilder.java b/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/TomcatWebAppBuilder.java
index bc0c6cd..2fc474f 100644
--- a/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/TomcatWebAppBuilder.java
+++ b/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/TomcatWebAppBuilder.java
@@ -685,6 +685,8 @@ public class TomcatWebAppBuilder implements WebAppBuilder, ContextListener, Pare
                 }
 
                 theHost.addChild(standardContext);
+            } else {
+                throw new IllegalStateException("Host '"+host+"' not found for application "+standardContext.getPath());
             }
         }
     }