ServletContextListener Is Added Multiple Times (without Removed) (Doc ID 1458625.1)

Last updated on MAY 24, 2017

Applies to:

Oracle Weblogic Server - Version 12.1.1.0 to 12.1.1.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

When an application with a ServletContextListener developed with annotation @WebListener() is deployed on Weblogic Server, and the application is subsequently stopped and started, the methods in the ServletContextListener are called multiple times. The number of times called is equal to the number of times the application is started or stopped.  

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms