Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2870

StartupServletContextListener could be called twice on init and destroy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.2
    • JSR-314
    • None
    • JBoss AS 6

    Description

      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.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            lu4242 Leonardo Uribe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: