Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2707

Filter.destroy() not called for undeployment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.0.0.Final
    • 8.0.0.CR1
    • Web (Undertow)
    • None

      ServletContextListener.contextDestroyed() is called reliably at undeployment time.
      But the destroy() methods of javax.servlet.Filters are never called.

      The filter is not explicetely in the web.xml, it's automatically detected and initialized via init() at deployment, but destroy() is never called.

      JavaMelody cannot shutdown it's timers because of this:
      See last remarks in http://code.google.com/p/javamelody/issues/detail?id=360

            sdouglas1@redhat.com Stuart Douglas
            andre.pankraz_jira Andre Pankraz (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: