Uploaded image for project: 'JBoss Web'
  1. JBoss Web
  2. JBWEB-257

Filter.destroy() exceptions break application undeployment

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Done
    • JBossWeb-2.1.12.GA
    • None
    • Core
    • None
    • Hide

      -Deploy the attached destroy-linkage-error.war
      -Undeploy this application, noting the exception from Filter.destroy()
      -Try to redeploy the application, noting it fails

      Show
      -Deploy the attached destroy-linkage-error.war -Undeploy this application, noting the exception from Filter.destroy() -Try to redeploy the application, noting it fails
    • Workaround Exists
    • Hide

      -Resolve exceptions thrown by Filter.destroy() or handle the exception within Filter.destroy()
      -Don't hot deploy the app to begin with

      Show
      -Resolve exceptions thrown by Filter.destroy() or handle the exception within Filter.destroy() -Don't hot deploy the app to begin with

    Description

      JBoss does not handle any exceptions from custom Filter.destroy() implementations. This is passed on to the JBoss container and disrupts the
      undeployment so the app is not successfully undeployed.

      That causes a potentially critical issue as the application is no longer deployed at that point, but it can't be redeployed due to conflicts with the prior incomplete undeployment. The server has to be restarted to be able to deploy the application again.

      The broken undeployment could be fixed at the container level if org.apache.catalina.core.ApplicationFilterConfig.release() caught exceptions thrown by Filter.destroy()

      Attachments

        Issue Links

          Activity

            People

              rmaucher Remy Maucherat
              rhn-support-aogburn Aaron Ogburn
              Archiver:
              samahaja@redhat.com Sagar Mahajan

              Dates

                Created:
                Updated:
                Resolved:
                Archived: