Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.5, 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 DeltaSpikeExceptionHandler is created and exceptionQualifier is populated, but it throws an exception because the following will only work once the CDI container is started:
this.exceptionQualifier = AnnotationInstanceProvider.of(
BeanProvider.getContextualReference(JsfModuleConfig.class).getExceptionQualifier());
Recommend either not caching the exceptionQualifier, or moving the initialization to the handle() method if null.