Browse Source

Merge branch '1.5.x'

pull/12680/head
Andy Wilkinson 8 years ago
parent
commit
e20fcf0e17
  1. 4
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/jetty/JettyWebServer.java
  2. 1
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatWebServer.java

4
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/jetty/JettyWebServer.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -159,9 +159,11 @@ public class JettyWebServer implements WebServer { @@ -159,9 +159,11 @@ public class JettyWebServer implements WebServer {
+ " with context path '" + getContextPath() + "'");
}
catch (WebServerException ex) {
stopSilently();
throw ex;
}
catch (Exception ex) {
stopSilently();
throw new WebServerException("Unable to start embedded Jetty server", ex);
}
}

1
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatWebServer.java

@ -122,6 +122,7 @@ public class TomcatWebServer implements WebServer { @@ -122,6 +122,7 @@ public class TomcatWebServer implements WebServer {
startDaemonAwaitThread();
}
catch (Exception ex) {
stopSilently();
throw new WebServerException("Unable to start embedded Tomcat", ex);
}
}

Loading…
Cancel
Save