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. |