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

Adjust tests that use qualifiers with an *Definition annotation that is put on a class not scanned by CDI #489

Closed
Tracked by #472
arjantijms opened this issue May 8, 2024 · 2 comments · Fixed by #491
Assignees
Labels
EE11 Suggested changes for Jakarta EE 11 TCK
Milestone

Comments

@arjantijms
Copy link
Contributor

*Definition annotations with qualifiers are intended to be processed by CDI. Therefor it's crucial they are also visible to CDI, which means they have to appear on a bean that is set to be scanned by CDI.

At the moment "AnnotationFullTests" in the Concurrency TCK has a Servlet that in the archive its in, is not scanned by CDI and has the mentioned *Definition annotation with qualifiers. This class should be set to be scanned by CDI. Either by giving is a bean defining annotation (e.g. @ApplicationScoped) or using a beans.xml that dictates that CDI should scan all classes.

@arjantijms arjantijms added TCK EE11 Suggested changes for Jakarta EE 11 labels May 8, 2024
@arjantijms arjantijms added this to the 3.1 milestone May 8, 2024
@arjantijms
Copy link
Contributor Author

@arjantijms
Copy link
Contributor Author

CC @aubi @OndroMih

njr-11 added a commit to njr-11/concurrency-api that referenced this issue May 8, 2024
… resources with qualifiers

Signed-off-by: Nathan Rauh <nathan.rauh@us.ibm.com>
OndroMih added a commit to OndroMih/jakartaee-concurrency that referenced this issue May 8, 2024
…DI bean

Fixes jakartaee#489
Signed-off-by:Ondro Mihalyi <mihalyi@omnifish.ee>
OndroMih added a commit to OndroMih/jakartaee-concurrency that referenced this issue May 9, 2024
This is because Servlet 3.0 explicitly forbids using other CDI qualifiers on servlets. Although it seems that this restriction was removed, some servers still abide it.
Fixes jakartaee#489
Signed-off-by:Ondro Mihalyi <mihalyi@omnifish.ee>
@KyleAure KyleAure mentioned this issue May 10, 2024
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment