Switching from Tomcat to GlassFish is very easy,
specially with recent additions like
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 approach is directly applicable Alfresco;
PS, I'll clarify if UseMyFaces is officially supported or not.