Possible bug in myfaces/openwebbeans

Vicente Rossello <[email protected]> Fri, 20 Feb 2026 15:40:13 +0100
Newsgroups gmane.comp.java.openejb.devel
Message-ID <CAGKhu186M5wdr_rTfxwV170fZE7Vh+Qa=Bupv35NzvcOkewPpA@mail.gmail.com>
--000000000000c7bebf064b426697
Content-Type: text/plain; charset="UTF-8"

Hi,

I'm trying to migrate a big tomee app from 8.x to 10.1

I think I found a bug, I don't know if the bug belongs to openwebbeans,
myfaces or tomee integration layer.

The reproducer is very simple:

<!DOCTYPE html>
<html lang="en"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="jakarta.faces.core"
      xmlns:h="jakarta.faces.html"
      xmlns:c="jakarta.tags.core">
<f:view>
    <h:body>
        <c:set var="example" value="example" scope="request"/>
        dsadsa
        #{param['someparam']}
        hello!!! #{example} adssda
    </h:body>
</f:view>
</html>


Running this with tomee plus 10.1.4 throws an error:

	Caused by: java.lang.LinkageError: loader
org.apache.tomee.catalina.TomEEWebappClassLoader @7d22f4f9 attempted
duplicate class definition for
org.apache.webbeans.custom.Map$$OwbNormalScopeProxy14900025290.
(org.apache.webbeans.custom.Map$$OwbNormalScopeProxy14900025290 is in
unnamed module of loader
org.apache.tomee.catalina.TomEEWebappClassLoader @7d22f4f9, parent
loader java.net.URLClassLoader @1176dcec)
		at java.base/java.lang.ClassLoader.defineClass1(Native Method)
		at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:962)


The thing is that the same proxy class name is created for
#{param['someparam']} and for example bean (note that it has the
scope="request" property). I don't really know how to look further.

A full reproducer is in https://github.com/cocorossello/tomee-sample

Do you have an idea?


Best regards,

Vicente

--000000000000c7bebf064b426697--