[
https://issues.apache.org/jira/browse/MYFACES-2870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leonardo Uribe resolved MYFACES-2870.
-------------------------------------
Fix Version/s: 2.0.2-SNAPSHOT
Resolution: Fixed
> StartupServletContextListener could be called twice on init and destroy
> -----------------------------------------------------------------------
>
> Key: MYFACES-2870
> URL: https://issues.apache.org/jira/browse/MYFACES-2870
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-314
> Affects Versions: 2.0.1
> Environment: JBoss AS 6
> Reporter: Leonardo Uribe
> Assignee: Leonardo Uribe
> Fix For: 2.0.2-SNAPSHOT
>
>
> JBoss jsf deployer needs a custom class that extends
> StartupServletContextListener to add additional processing before initialize.
> The problem we have is the original StartupServletContextListener is
> registered on myfaces-core.tld, so it ends being called "twice".
> The solution is do a simple reorganization of the code, so _facesInitializer
> is only set on the first one, then we use FACES_INIT_DONE param to comunicate
> to the other listener that has been already initialized. Then, only process
> contextDestroyed if _faceslnitializer was set.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.