Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2016-02-03 04:54:39 -0500
committerGreg Wilkins2016-02-03 04:54:39 -0500
commit6c9a444b6c5b872f69bc452e84e76bce1426697a (patch)
treee94d4c54377be2883e05d75804ba5aa4f3af9a0c /jetty-servlets
parent79a7863ac857c60f51961f5ff1b8ccdc59fd6d45 (diff)
downloadorg.eclipse.jetty.project-6c9a444b6c5b872f69bc452e84e76bce1426697a.tar.gz
org.eclipse.jetty.project-6c9a444b6c5b872f69bc452e84e76bce1426697a.tar.xz
org.eclipse.jetty.project-6c9a444b6c5b872f69bc452e84e76bce1426697a.zip
486530 - Handler added to WebAppContext prevents ServletContext initialization
Added warnings for loops and inappropriate handlers. Used insertHandler in more XML files
Diffstat (limited to 'jetty-servlets')
-rw-r--r--jetty-servlets/src/test/java/org/eclipse/jetty/server/handler/gzip/IncludedGzipTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/jetty-servlets/src/test/java/org/eclipse/jetty/server/handler/gzip/IncludedGzipTest.java b/jetty-servlets/src/test/java/org/eclipse/jetty/server/handler/gzip/IncludedGzipTest.java
index 4e02fccbb8..bea2501e8b 100644
--- a/jetty-servlets/src/test/java/org/eclipse/jetty/server/handler/gzip/IncludedGzipTest.java
+++ b/jetty-servlets/src/test/java/org/eclipse/jetty/server/handler/gzip/IncludedGzipTest.java
@@ -89,8 +89,7 @@ public class IncludedGzipTest
tester.getContext().addServlet(org.eclipse.jetty.servlet.DefaultServlet.class, "/");
GzipHandler gzipHandler = new GzipHandler();
- gzipHandler.setHandler(tester.getContext().getHandler());
- tester.getContext().setHandler(gzipHandler);
+ tester.getContext().insertHandler(gzipHandler);
tester.start();
}

Back to the top