• Andy Wilkinson's avatar
    Ensure that Tomcat does not report unstopped main thread when startup fails · d7d2404c
    Andy Wilkinson authored
    Following the changes made in ff99bb07, Tomcat’s WebAppClassLoader is
    set as the thread context class loader of the main thread. If Tomcat
    was stopped while the main thread was still running (typically as a 
    result of a startup failure), this had the unwanted side-effect of
    causing Tomcat to report that the application had started a thread named
    main and had failed to stop it.
    
    This commit updates TomcatEmbeddedServletContainer so that, during stop
    processing, the current thread’s context class loader is reset before
    Tomcat is stopped. This prevents Tomcat from incorrectly believe that
    the application has started and failed to stop the main thread.
    
    Closes gh-5357
    d7d2404c
Name
Last commit
Last update
.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-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...