Skip to content

Commit

Permalink
Fixes #3367, fail to parse config text with white space (#3589)
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj authored and tswstarplanet committed Mar 4, 2019
1 parent bb85d07 commit 8f7b0c3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public TomcatHttpServer(URL url, final HttpHandler handler) {
context.addServletMapping("/*", "dispatcher");
ServletManager.getInstance().addServletContext(url.getPort(), context.getServletContext());

// tell tomcat to fail on startup failures.
System.setProperty("org.apache.catalina.startup.EXIT_ON_INIT_FAILURE", "true");

try {
tomcat.start();
} catch (LifecycleException e) {
Expand Down

0 comments on commit 8f7b0c3

Please sign in to comment.