-
Notifications
You must be signed in to change notification settings - Fork 357
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
Cannot inject CDI bean into custom validator #3801
Labels
Comments
@mhorejsi Commented |
@jansupol Commented |
@mhorejsi Commented |
|
pdudits
added a commit
to payara/patched-src-jersey
that referenced
this issue
Apr 17, 2019
Also eclipse-ee4j#3801 # Conflicts: # pom.xml
pdudits
added a commit
to payara/patched-src-jersey
that referenced
this issue
Oct 14, 2019
dmatej
pushed a commit
to payara/patched-src-jersey
that referenced
this issue
Jan 24, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jersey doesn't allow me to inject CDI bean into my custom Validator.
Sample code:
The exception is:
Such injection should be according to Beans Validation spec (1.1, section 10.3.2) supported:
When I inject (via
@javax.inject.Inject
) the Validator manually, everything works as expected. The problem occurs when I have a JAX-RS@POST
method accepting POJO with my custom validation annotation.This problem can be workarounded by registering the following ContextResolver:
The text was updated successfully, but these errors were encountered: