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

bugfix: Split CDI bean deployment when multiple WARs exist in an EAR #7032

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lprimak
Copy link
Contributor

@lprimak lprimak commented Oct 18, 2024

Description

Bugfix. BeanManager isn't properly retrieved when multiple CDI WARs exist in an EAR.
fixes #7031
Appears specifically when multiple WARs use OmniFaces

Important Info

** Works and tests pass, but needs more testing to see if all the issues are actually fixed **

Testing

Tested with the failing reproducer
** Needs TCK run

Needs testing with a realistic EAR application, which is still TODO

@lprimak
Copy link
Contributor Author

lprimak commented Oct 28, 2024

@Pandrex247 Do you think you can run the TCK against this PR?
I'd like to make sure I didn't break anything.

Thank you!

@lprimak lprimak changed the title bugfix: passing BeanManager in EAR deployment's invocation state object bugfix: Split CDI bean deployment when multiple WARs exist in an EAR Oct 28, 2024
@Pandrex247
Copy link
Member

@lprimak I ran it through the CDI and EJB TCKs and all seems green 👍

@lprimak
Copy link
Contributor Author

lprimak commented Oct 28, 2024

Thanks, Fantastic!
I gotta do a lot more testing on my end, but this is promising!

@lprimak
Copy link
Contributor Author

lprimak commented Nov 10, 2024

I have found a few issues that I found with "real" applications.
I think I worked through most of them, so stay tuned

@lprimak
Copy link
Contributor Author

lprimak commented Nov 10, 2024

I may also roll a fix for #6405 if that's trivial as well

- de-duplicate BDAs in CDI processing by using LinkedHashSet intead of ArrayList
- correctly copy BDA sets for each war in EAR
- Make WAR's CDI beans available in EAR-libs
- made some structures final (cleanup)
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

Successfully merging this pull request may close these issues.

Bug Report: EAR application deployment with CDI fails
2 participants