struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rickard Öberg (JIRA) <j...@apache.org>
Subject [jira] Created: (WW-1542) Jsr168Dispatcher does not destroy the Dispatcher properly
Date Wed, 06 Dec 2006 14:55:58 GMT
Jsr168Dispatcher does not destroy the Dispatcher properly
---------------------------------------------------------

                 Key: WW-1542
                 URL: http://issues.apache.org/struts/browse/WW-1542
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.0.1
            Reporter: Rickard Öberg


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();
   }
}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message