diff --git a/java/org/apache/catalina/core/StandardContext.java b/java/org/apache/catalina/core/StandardContext.java index cdbfd7112ec2..24dcc25ea742 100644 --- a/java/org/apache/catalina/core/StandardContext.java +++ b/java/org/apache/catalina/core/StandardContext.java @@ -3963,7 +3963,7 @@ public boolean listenerStart() { // Put them these listeners after the ones defined in web.xml and/or // annotations then overwrite the list of instances with the new, full // list. - eventListeners.addAll(Arrays.asList(getApplicationEventListeners())); + eventListeners.addAll(applicationEventListenersList); setApplicationEventListeners(eventListeners.toArray()); for (Object lifecycleListener : getApplicationLifecycleListeners()) { lifecycleListeners.add(lifecycleListener);