• Andy Wilkinson's avatar
    Add Tomcat-specific failure analysis for connector start failures · 564207b0
    Andy Wilkinson authored
    Previously, when a Tomcat connector failed to start it was assumed that
    the failure was due to the port being in use and a PortInUseException
    was thrown. Unfortunately, this assumption doesn’t always hold true.
    For example, a Tomcat connector will also fail to start when its using
    SSL and the key store password is wrong. This could lead to incorrect
    guidance from the PortInUseFailureAnalyzer indicating that a port clash
    had occurred when, in fact, it was the SSL configuration that needed to
    be corrected.
    
    Unfortunately, Tomcat only tells us that the connector failed to start.
    It doesn’t provide access to the exception that would allow us to
    determine why it failed to start. This commit updates the embedded
    Tomcat container to throw a ConnectorStartFailedException in the event
    of a connector failing to start. A new failure analyser,
    ConnectorStartFailureAnalyzer, has been introduced to analyse the new
    exception and offer some more general guidance.
    
    Closes gh-6896
    564207b0
Name
Last commit
Last update
.github Loading commit data...
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-test Loading commit data...
spring-boot-test-autoconfigure Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...