Commit 6779435e authored by Phillip Webb's avatar Phillip Webb

Delegate ClassLoader with Tomcat

Use standard class loading delegation with Tomcat.
parent 8dbaa4a4
......@@ -152,6 +152,7 @@ public class TomcatEmbeddedServletContainerFactory extends
.getClassLoader() : ClassUtils.getDefaultClassLoader());
WebappLoader loader = new WebappLoader(context.getParentClassLoader());
loader.setLoaderClass(TomcatEmbeddedWebappClassLoader.class.getName());
loader.setDelegate(true);
context.setLoader(loader);
if (isRegisterDefaultServlet()) {
addDefaultServlet(context);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment