Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-1542

Jsr168Dispatcher does not destroy the Dispatcher properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.2
    • None
    • None
    • Patch

    Description

      Jsr168Dispatcher does not implement destroy(), where it should clean up the Dispatcher instance. The result is that the threadlocal reference to the Dispatcher is never cleared, and so a portlet app can never be redeployed properly.

      Add this to Jsr168Dispatcher to fix it:
      public void destroy()
      {
      if (dispatcherUtils == null)

      { LOG.warn("something is seriously wrong, DispatcherUtil is not initialized (null) "); }

      else

      { dispatcherUtils.cleanup(); }

      }

      Attachments

        Activity

          People

            rainerh Rainer Hermanns
            rickardoberg Rickard ?berg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: