From 45411b694f7d2747d5954ab3e41393a10ad16a3e Mon Sep 17 00:00:00 2001 From: olivier lamy Date: Wed, 26 Sep 2018 12:52:15 +1000 Subject: [PATCH] fix wrong merge from c165d0749236fcc5cf47b1ec997c5d72302622ac Signed-off-by: olivier lamy --- .../quickstart/QuickStartGeneratorConfiguration.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jetty-quickstart/src/main/java/org/eclipse/jetty/quickstart/QuickStartGeneratorConfiguration.java b/jetty-quickstart/src/main/java/org/eclipse/jetty/quickstart/QuickStartGeneratorConfiguration.java index f2b1e27031c..4ba655e1673 100644 --- a/jetty-quickstart/src/main/java/org/eclipse/jetty/quickstart/QuickStartGeneratorConfiguration.java +++ b/jetty-quickstart/src/main/java/org/eclipse/jetty/quickstart/QuickStartGeneratorConfiguration.java @@ -221,11 +221,11 @@ public class QuickStartGeneratorConfiguration extends AbstractConfiguration .tag("param-value",context.getInitParameter(p)) .closeTag(); - if (_webApp.getServletHandler().getListeners() != null) - for (ListenerHolder e : _webApp.getServletHandler().getListeners()) - out.openTag("listener",origin(md,e.getClassName() + ".listener")) - .tag("listener-class",e.getClassName()) - .closeTag(); + if(context.getEventListeners()!=null) + for (EventListener e : context.getEventListeners()) + out.openTag("listener",origin(md,e.getClass().getCanonicalName() + ".listener")) + .tag("listener-class",e.getClass().getCanonicalName()) + .closeTag(); ServletHandler servlets = context.getServletHandler();