Description
I am porting our application from Java 11 to Java 21.
During initialization, I get the following exception from OpenWebBeans 2.0.27:
Caused by: java.lang.RuntimeException: Unable to read class definition for com.sun.faces.context.FacesFileNotFoundException
at org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1180)
at org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:153)
at org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:166)
at org.apache.webbeans.corespi.scanner.xbean.OwbAnnotationFinder.<init>(OwbAnnotationFinder.java:41)
at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.initFinder(AbstractMetaDataDiscovery.java:138)
at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:177)
... 33 more
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
at org.apache.xbean.asm9.ClassReader.<init>(ClassReader.java:199)
at org.apache.xbean.asm9.ClassReader.<init>(ClassReader.java:180)
at org.apache.xbean.asm9.ClassReader.<init>(ClassReader.java:166)
at org.apache.xbean.asm9.ClassReader.<init>(ClassReader.java:287)
at org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1176)
I already updated the org.apache.xbean:xbean-asm9-shaded dependency to the latest version 4.24.
Is OpenWebBeans 2.0.27 not supposed to work with Java 21?
What else can I try?