From 8e44578e0f4230e1d1e2b97748896a11c623cb3a Mon Sep 17 00:00:00 2001 From: Vincent Latombe Date: Wed, 22 Jan 2025 11:15:18 +0100 Subject: [PATCH] [JENKINS-75174] Allow webapp context configuration to be discovered via Servlet 3.0 discovery (backport) (#903) --- src/main/java/org/jvnet/hudson/test/JenkinsRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jvnet/hudson/test/JenkinsRule.java b/src/main/java/org/jvnet/hudson/test/JenkinsRule.java index 75f2f4138..6885d6d77 100644 --- a/src/main/java/org/jvnet/hudson/test/JenkinsRule.java +++ b/src/main/java/org/jvnet/hudson/test/JenkinsRule.java @@ -942,7 +942,7 @@ protected ClassLoader configureClassLoader(ClassLoader loader) { } }; context.setClassLoader(classLoader); - context.setConfigurations(new Configuration[]{new WebXmlConfiguration()}); + context.setConfigurationDiscovered(true); context.addBean(new NoListenerConfiguration2(context)); context.setServer(server); String compression = System.getProperty("jth.compression", "gzip");