glassfish
  1. glassfish
  2. GLASSFISH-15809

JSF PhaseListener executed for each virtual host

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: v3.0.1
    • Fix Version/s: 3.1.1_b01
    • Component/s: jsf
    • Labels:
      None
    • Environment:

      We're running GlassFish 3.0.1 with JSF 2.1.0b11 on Windows 2007/7 64-bit.

      Description

      We recently spend 2 months changing from JSF 1.2 to 2.0 and GlassFish 2 to 3.0.1. When we were finish with the conversion and ready to go live, we realised that JSF and virtual servers doesn't work together at all on GlassFish 3.0.1 with JSF 2.0. Luckily, this happened on January 27, 2011, the same day that JSF 2.1.0b11 became available with this fix included: http://java.net/jira/browse/GLASSFISH-11984. Otherwise we would have been completely screwed.

      However, it didn't take many hours online, before we realised that something was horrible wrong. We have 6 virtual servers in addition to the default. We can't run with less than that. The problem is that all of our PhaseListeners are now executed one time per virtual server for a total of 7 times per request. And not just ours. PhaseListeners included in other projects, such as PrettyFaces, as well.

      The problem has forced us to roll back to GF 2 and our 2 months old code once again.

      1. 20110217-1558-i_gf_15809.patch
        31 kB
        Ed Burns
      2. 20110222-1610-i_gf_15809.patch
        23 kB
        Ed Burns
      3. i_gf_15809-workaround.txt
        12 kB
        Ed Burns

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Ed Burns
              Reporter:
              bjornstenfeldt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: