Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.6
-
None
-
Tomcat
Description
In non-EE environments you may be using Weld Servlet to initialize CDI.
However because of JSF zeroconfig you cannot guarantee that weld servlet will be started before JSF.
During JSF startup DeltaSpikeFacesContextFactory is created and clientWindow is populated, but it throws an exception because the following will only work once the CDI container is started:
this.clientWindow = BeanProvider.getContextualReference(ClientWindow.class, true);
Recommend not caching the clientWindow.
I can confirm that JSF seems to load OK after this is fixed.