|
|
|
|
Most migrations to GlassFish are straight-forward, a testimony to the value of the JavaEE specification (and to the extra care to the user in the GF community!). The only area that sometimes requires non-trivial changes are dependencies on implementation details in MyFaces.
The GlassFish JSF implementation (Mojarra) is Used in Many Containers and the new JSF 2.0 spec should improve portability but GF supports a useMyFaces Property for this use case. Arun just published a note showing how to use the property when Using Apache Tomahawk but I'm extracting here the configuration table for ease of reference:
|
• On GlassFish v2 - Set "useMyFaces" in "sun-web.xml"
|
Note that you also need to disable Facelets 2.0 in "web.xml" if you have Facelets 1.1.x dependencies.
|
Switching from Tomcat to GlassFish is very easy, specially with recent additions like Valves Support; The only somewhat tricky area were dependencies on MyFaces APIs or behavior. A simple solution to this problem is to use the UseMyFaces properly, as mentioned in this thread. This approach is directly applicable Alfresco; see Mandy's post. |
PS, I'll clarify if UseMyFaces is officially supported or not.