-
Notifications
You must be signed in to change notification settings - Fork 306
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
FISH-10049 bugfix: Split CDI bean deployment when multiple WARs exist in an EAR #7032
base: main
Are you sure you want to change the base?
Conversation
@Pandrex247 Do you think you can run the TCK against this PR? Thank you! |
@lprimak I ran it through the CDI and EJB TCKs and all seems green 👍 |
Thanks, Fantastic! |
appserver/web/weld-integration/src/main/java/org/glassfish/weld/WeldDeployer.java
Outdated
Show resolved
Hide resolved
1c8a517
to
93071cf
Compare
I have found a few issues that I found with "real" applications. |
|
89ef769
to
4a79348
Compare
Im getting close. "Real" application runs. |
61c4079
to
2471951
Compare
Ready to go. Will do #6405 in a separate PR |
Now I gotta fix the conflict :) |
Once the tests passes I am going to squash the commits and un-draft the PR again |
766eb3e
to
d2fbb5a
Compare
Ready to go again |
appserver/web/war-util/pom.xml
Outdated
<configuration> | ||
<parameter> | ||
<excludes> | ||
<exclude>org.glassfish.web.loader.CachingReflectionUtil</exclude> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this will break semantic versioning, this will require reworking your changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an internal class. It was moved into a different module. Nothing should be affected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd strongly prefer that you keep changes in line with semantic versioning - no breaking changes on minor version updates.
Parts of the codebase are shared with Enterprise and extensions, the semantic versioning is in place to help ensure compilation and runtime errors don't unknowingly propagate.
We'll need to make sure this class is not used in any of the non-shared codebase (not just in this repo) before allowing this breaking change to go through.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose I could deprecate it. More changes to this API are coming from #7097 so stay tuned for that anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made the changes to deprecate the class and remove the japicmp
exclusion
Thank you
734fc05
to
ad4885b
Compare
dfee052
to
de830ba
Compare
…I-enabled library JARs - correctly copy BDA sets for each war in EAR - Make WAR's CDI beans available in EAR-libs - read web-fragment.xml from EAR-libs - processing ear-lib manifest - de-duplicate BDAs in CDI processing by using LinkedHashSet intead of ArrayList - made some structures final (cleanup) - fixed ear and concurrent classloader leaks, including refactored reflection caching
975cb97
to
a4f4f36
Compare
Description
Bugfix. BeanManager isn't properly constructed when multiple CDI WARs exist in an EAR.
Also allows EAR-libraries to be scanned for CDI annotations
fixes #7031
also fixes #7078
Appears specifically when multiple WARs use OmniFaces
Testing
Tested with the failing reproducer
** Needs TCK run