Skip to content

TOMEE-4603 - LinkageError in tomee 10.1 with scope="request"#2633

Open
rzo1 wants to merge 2 commits into
tomee-10.xfrom
TOMEE-4603
Open

TOMEE-4603 - LinkageError in tomee 10.1 with scope="request"#2633
rzo1 wants to merge 2 commits into
tomee-10.xfrom
TOMEE-4603

Conversation

@rzo1
Copy link
Copy Markdown
Contributor

@rzo1 rzo1 commented Apr 30, 2026

rzo1 added 2 commits April 30, 2026 11:29
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.
@rzo1 rzo1 requested review from jungm and tandraschko April 30, 2026 10:11
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.

2 participants