• Andy Wilkinson's avatar
    Avoid a clash with TomcatURLStreamHandlerFactory · ef12eecb
    Andy Wilkinson authored
    In the unlikely (outside the tests of a number of Spring Boot's
    modules) event that both Tomcat and Jetty are on the classpath,
    there's a risk that Tomcat will try to register its
    URLStreamHandlerFactory after JasperInitializer has registered its
    WarUrlStreamHandlerFactory. Should this happen, Tomcat will fail to
    start.
    
    TomcatURLStreamHandlerFactory registers a handler for the war: URLs
    produced by org.apache.tomcat.util.scan.JarFactory that's used by
    both Tomcat and Jetty's Jasper integration. This makes it a suitable
    replacement for WarUrlStreamHandlerFactory so this commit updates
    JasperIntializer to register TomcatURLStreamHandlerFactory when it's
    available, falling back to WarUrlStreamHandlerFactory when it's not.
    
    Closes gh-8622
    ef12eecb
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...
.editorconfig 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...