Recently Ed made some changes w.r.t the use of the GF Annotation Scanning feature in JSF. The org.glassfish.faces.integration.GlassFishInjectionProvider class has a method getAnnotatedClassesInCurrentModule() which gets hold of the DeploymentContext via :
DeploymentContext dc = serverConfigLookup.getDeploymentContext(servletContext);
Now this code works perfectly well when there is only 1 virtual server (default "server") to deploy to. But when I add more virtual servers, the DeploymentContext is null when GF tries to deploy to the second virtual server. I was able to see why. WebContainer.loadWebModule() sets this DeploymentContext to null at line 1986. So henceforth, it is null in the same VM.
This is a problem when deploying JSF apps to multiple virtual servers.