Merge branch '2.2.x'

Closes gh-20869
pull/20874/head
Stephane Nicoll 5 years ago
commit dc94a87694

@ -149,7 +149,7 @@ public class TomcatReactiveWebServerFactory extends AbstractReactiveWebServerFac
context.addLifecycleListener(new Tomcat.FixContextListener()); context.addLifecycleListener(new Tomcat.FixContextListener());
context.setParentClassLoader(ClassUtils.getDefaultClassLoader()); context.setParentClassLoader(ClassUtils.getDefaultClassLoader());
skipAllTldScanning(context); skipAllTldScanning(context);
WebappLoader loader = new WebappLoader(context.getParentClassLoader()); WebappLoader loader = new WebappLoader();
loader.setLoaderClass(TomcatEmbeddedWebappClassLoader.class.getName()); loader.setLoaderClass(TomcatEmbeddedWebappClassLoader.class.getName());
loader.setDelegate(true); loader.setDelegate(true);
context.setLoader(loader); context.setLoader(loader);

@ -222,7 +222,7 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto
// Tomcat is < 8.5.39. Continue. // Tomcat is < 8.5.39. Continue.
} }
configureTldSkipPatterns(context); configureTldSkipPatterns(context);
WebappLoader loader = new WebappLoader(context.getParentClassLoader()); WebappLoader loader = new WebappLoader();
loader.setLoaderClass(TomcatEmbeddedWebappClassLoader.class.getName()); loader.setLoaderClass(TomcatEmbeddedWebappClassLoader.class.getName());
loader.setDelegate(true); loader.setDelegate(true);
context.setLoader(loader); context.setLoader(loader);

Loading…
Cancel
Save