You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/09/14 16:03:46 UTC

DO NOT REPLY [Bug 47836] New: TldConfig keeps an internal list of ApplicationListeners

https://issues.apache.org/bugzilla/show_bug.cgi?id=47836

           Summary: TldConfig keeps an internal list of
                    ApplicationListeners
           Product: Tomcat 6
           Version: 6.0.20
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: guillaume.sauthier@objectweb.org


Created an attachment (id=24258)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24258)
When the Context is stopped, clears the listeners list

When a WebApp is refreshed, the following warning is displayed:

"StandardContext.addApplicationListener : The listener
"com.sun.faces.config.ConfigureListener" is already configured for this
context. The duplicate definition has been ignored."

This is because the TldConfig instance does not react to a STOP event of the
StandardContext. It should clear the list's content when the WebApp is stopped.

We've encountered this bug with tomcat 6.0.20.
I've checked the Tomcat7 TldConfig code to see if the issue may still be there,
but I'm not sure: there is some code dealing with already registered taglib URI
that may prevent the warning.

So the provided patch is against tomcat6.0.x branch (but should be easy to port
to trunk if there is some interest).

BTW, I've checked the TldLocationsCache source code, but it is not implementing
the LifecycleListener interface, so that patch cannot be applied on that file
...

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 47836] TldConfig keeps an internal list of ApplicationListeners

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47836

--- Comment #1 from Mark Thomas <ma...@apache.org> 2009-11-23 17:27:47 GMT ---
I found a handful of places where this was an issue in trunk. I've fixed these
and will propose for backport to 6.0.x once I'm sure I have found them all.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 47836] TldConfig keeps an internal list of ApplicationListeners

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47836

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Mark Thomas <ma...@apache.org> 2009-12-19 18:22:12 GMT ---
Patch applied to 6.0.x and will be included in 6.0.21 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 47836] TldConfig keeps an internal list of ApplicationListeners

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47836

--- Comment #2 from Mark Thomas <ma...@apache.org> 2009-12-14 15:18:44 GMT ---
Patch proposed for 6.0.x

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org