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

            Bug ID: 55282
           Summary: JSF PhaseListeners are duplicated
           Product: Tomcat 7
           Version: 7.0.42
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: valiantsinshuka...@gmail.com

Created attachment 30604
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30604&action=edit
source code to reproduce the issue

If using jsf 2 project and add Phase Listeners there, they are created and
added to the list of Phase Listeners twice which means on page load same Phase
Listeners are executed twice.
This is happening only when com.sun.faces.config.ConfigureListener is defined
in web.xml.
Without such declaration in web.xml jsf is initialized one time.
Such behaviour seems to happen on 7.0.42 version.
I was using 7.0.41 and didn't see such behaviour. I didn't have a chance to
check it again on 7.0.41 but checked on 7.0.6(because had it installed) and
there everything was fine.
Such behaviour can be very critical for applications using jsf and Phase
Listeners. And Maybe not only Phase Listeners are duplicated(didn't look),
because the problem here is that jsf is initialized twice and other things can
get duplicated too.
Attaching eclipse project where you can check the bug on 7.0.42 and compare to
other tomcat version. In 7.0.42 there is duplicated message in console that
Phase Listener is created.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

Reply via email to