Bug Report: EAR inter-WAR CDI Isolation Failure with 6.2025.2-6 #7233
Labels
Status: Open
Issue has been triaged by the front-line engineers and is being worked on verification
Type: Bug
Label issue as a bug defect
Brief Summary
The existence of one WAR within an EAR prevents CDI provider lookup within a second WAR in the same EAR.
Both WARs are not interconnected and do not share common libraries (at least they should not, as CDI separation is what 6.2025.2 pretends to fix).
As soon as the other WAR is removed from the EAR, CDI provider lookup succeeds!
Worked well in 6.2025.1, fails since 6.2025.2 (up to and including 6.2025.2-6).
This bug report is a spin-off from the discussion in #7201.
Expected Outcome
Dependency Injection works well in 6.2025.2-6, i. e. CDI lookup within WAR 1 does not interfer with CDI lookup in WAR 2, even when both WARs are found within the same EAR.
Current Outcome
If both WARs are registered as web-applications in application.xml of EAR, CDI lookup in WAR 1 does not work (will not find provider which is also contained in WAR 1).
If WAR 2 is not registered as a web-application in application.xml of EAR, CDI lookup in WAR 1 works well (finds provider).
Reproducer
reproducer.zip
Unpacking the ZIP provides the reproducer EAR.
This will produce HTTP status 500, and the error message is found in
server.log
:Then remove this
<webmodule>
section......from
META-INF\application.xml
, undeploy and deploy again, and runcurl
again. Now curl returns status 200 OK, which proofs that somehow the isolation between both WARs is broken, because there is actually no interconnection between both WARs in this EAR (at least nothing that is intended). 😲Operating System
Windows 10 Pro
JDK Version
Zulu JDK 17
Payara Distribution
Payara Server Full Profile
The text was updated successfully, but these errors were encountered: