TOMEE-4603 - LinkageError in tomee 10.1 with scope="request"#2633
Open
rzo1 wants to merge 2 commits into
Open
Conversation
Arquillian test in arquillian-tomee-webprofile-tests that deploys a Facelet combining c:set in request scope with an EL reference to the implicit param map. Passes on tomee-embedded and reproduces the LinkageError on Map$$OwbNormalScopeProxy under the remote adapter (-Pall-adapters).
…finer When the JVM rejects a defineClass with LinkageError because that class name is already loaded in this ClassLoader, re-resolve the existing class via Class.forName instead of failing. Mirrors the Unsafe.handleLinkageError fallback in OpenWebBeans, which only kicks in when no DefiningClassService is registered. Without this defence OpenWebBeans 4.0.x can generate the same proxy class FQN for two distinct Bean<?> instances of the same erased type (e.g. MyFaces' @FacesScoped Map producers requestScope/param/header/...) and the LinkageError propagates to the user. Logs a WARNING so the recovery remains visible.
jungm
approved these changes
Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
see also https://issues.apache.org/jira/browse/OWB-1462