Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2552

Numberguess example does not work on GlassFish5 after upgrade to JSF2.3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 3.1.x
    • None
    • Documentation, Examples
    • None

      After updating the examples to JSF 2.3 in WELD-2529, the jsf/numberguess example does not work on GlassFish due to a bug in Mojarra. The bug should be fixed in Mojarra 2.3.3, but the latest GlassFish 5.0.1 still runs with Mojarra 2.3.2.

      The workaround is to add the javax.faces.annotation.FacesConfig annotation to Game.java:

      @FacesConfig(version =FacesConfig.Version. JSF_2_3)
      

      This should be documented in Deploying to GlassFish chapter until the bug is fixed in GlassFish. Afterwards the docs should recommend the new GlassFish version to avoid the bug.

              nziakova@redhat.com Nikoleta Ziakova (Inactive)
              nziakova@redhat.com Nikoleta Ziakova (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: