Skip to content
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

Upgrade to Weld 3 #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jhernand
Copy link
Contributor

@jhernand jhernand commented Feb 1, 2024

Currently the tool fails to start the CDI container with the following error message:

[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:3.0.0:java (generate-code) on
project metamodel-tests: An exception occured while executing the Java
class. WELD-001524: Unable to load proxy class for bean Implicit Bean
[javax.enterprise.inject.Instance] with qualifiers [@Default] with class
interface javax.enterprise.inject.Instance using classloader
java.net.URLClassLoader@2570b316: Could not initialize class
org.jboss.classfilewriter.ClassFile: Exception
java.lang.reflect.InaccessibleObjectException: Unable to make protected
final java.lang.Class
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
throws java.lang.ClassFormatError accessible: module java.base does not
"opens java.lang" to unnamed module @5e407e1b [in thread
"weld-worker-7"] -> [Help 1]

I believe the reason for that is that the version of Weld that we use doesn't work well with Java 11 or later. This patch updates to Weld 3 to address that issue.

@mwperina
Copy link
Member

mwperina commented Feb 1, 2024

SRPM build issue should be fixed by #35

@kbrock
Copy link

kbrock commented Sep 11, 2024

Is this change still necessary?

Anything we can do to help move this forward?

(I think this is required by oVirt/ovirt-engine-sdk-ruby#10 )

Currently the tool fails to start the CDI container with the following
error message:

```
[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:3.0.0:java (generate-code) on
project metamodel-tests: An exception occured while executing the Java
class. WELD-001524: Unable to load proxy class for bean Implicit Bean
[javax.enterprise.inject.Instance] with qualifiers [@default] with class
interface javax.enterprise.inject.Instance using classloader
java.net.URLClassLoader@2570b316: Could not initialize class
org.jboss.classfilewriter.ClassFile: Exception
java.lang.reflect.InaccessibleObjectException: Unable to make protected
final java.lang.Class
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
throws java.lang.ClassFormatError accessible: module java.base does not
"opens java.lang" to unnamed module @5e407e1b [in thread
"weld-worker-7"] -> [Help 1]
```

I believe the reason for that is that the version of Weld that we use
doesn't work well with Java 11 or later. This patch updates to Weld 3 to
address that issue.

Signed-off-by: Juan Hernandez <[email protected]>
@sandrobonazzola sandrobonazzola requested review from a team and removed request for mnecas and oliel October 15, 2024 09:51
@sandrobonazzola
Copy link
Member

I guess this requires an addition to https://github.com/oVirt/ovirt-dependencies or packaging weld3 as rpm in CentOS Virt SIG

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.

4 participants