Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nondescript exception with using the CDI add-on without CDI enabled #225

Open
Legioth opened this issue Oct 31, 2017 · 0 comments
Open

Nondescript exception with using the CDI add-on without CDI enabled #225

Legioth opened this issue Oct 31, 2017 · 0 comments

Comments

@Legioth
Copy link
Member

Legioth commented Oct 31, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant