You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If CDI isn't enabled, ContextDeployer will still be run through the standard @WebListener annotation. This will result in a NPE from AnnotationUtil.getUiBeans caused by the injected beanManager field in ContextDeployer being null.
We should instead check for this in the beginning of ContextDeployer.contextInitialized and either throw a more user friendly exception or alternatively log a clear message and return eagerly without trying to configure any CDI servlets.
The text was updated successfully, but these errors were encountered:
If CDI isn't enabled,
ContextDeployer
will still be run through the standard@WebListener
annotation. This will result in a NPE fromAnnotationUtil.getUiBeans
caused by the injectedbeanManager
field inContextDeployer
beingnull
.We should instead check for this in the beginning of
ContextDeployer.contextInitialized
and either throw a more user friendly exception or alternatively log a clear message and return eagerly without trying to configure any CDI servlets.The text was updated successfully, but these errors were encountered: