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

tswstarplanet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git


The following commit(s) were added to refs/heads/master by this push:
     new 8f7b0c3  Fixes #3367, fail to parse config text with white space 
(#3589)
8f7b0c3 is described below

commit 8f7b0c35938f12db8b075db87f9eeefb26c951d2
Author: ken.lj <ken.lj...@gmail.com>
AuthorDate: Tue Mar 5 00:40:14 2019 +0800

    Fixes #3367, fail to parse config text with white space (#3589)
---
 .../java/org/apache/dubbo/remoting/http/tomcat/TomcatHttpServer.java   | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/dubbo-remoting/dubbo-remoting-http/src/main/java/org/apache/dubbo/remoting/http/tomcat/TomcatHttpServer.java
 
b/dubbo-remoting/dubbo-remoting-http/src/main/java/org/apache/dubbo/remoting/http/tomcat/TomcatHttpServer.java
index ac050f1..f8a898c 100755
--- 
a/dubbo-remoting/dubbo-remoting-http/src/main/java/org/apache/dubbo/remoting/http/tomcat/TomcatHttpServer.java
+++ 
b/dubbo-remoting/dubbo-remoting-http/src/main/java/org/apache/dubbo/remoting/http/tomcat/TomcatHttpServer.java
@@ -67,6 +67,9 @@ public class TomcatHttpServer extends AbstractHttpServer {
         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) {

Reply via email to