[ https://issues.apache.org/jira/browse/OWB-1423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17687883#comment-17687883 ]
Romain Manni-Bucau commented on OWB-1423: ----------------------------------------- Hi [~Tsakumagos] , Think you didn't use the jakarta stack but just one artifact leading to this error, either define the owb artifacts to use jakarta or reuse this dependency which already does it: ``` <dependency> <groupId>io.yupiik.uship</groupId> <artifactId>backbone-owb</artifactId> <version>1.0.16</version> <type>pom</type> </dependency> ``` > openwebbeans-impl-jakarta is using old javax namespace > ------------------------------------------------------ > > Key: OWB-1423 > URL: https://issues.apache.org/jira/browse/OWB-1423 > Project: OpenWebBeans > Issue Type: Bug > Affects Versions: 2.0.26, 2.0.27 > Reporter: Georg Tsakumagos > Priority: Major > > h3. Description > Openwebbeans with jakarta qualifier should use the jakarta namespace. I try > to use openejb 9.0.0 for testing but run into a no NoSuchMethodError. > The class > *_org.apache.webbeans.portable.events.discovery.BeforeBeanDiscoveryImpl_* is > using the old namespace. > h3. Stacktrace > {code:java} > Caused by: org.apache.webbeans.exception.WebBeansException: > java.lang.NoSuchMethodError: 'void > jakarta.enterprise.inject.spi.BeforeBeanDiscovery.addAnnotatedType(jakarta.enterprise.inject.spi.AnnotatedType)' > at > org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:377) > at > org.apache.webbeans.event.NotificationManager.invokeObserverMethod(NotificationManager.java:1146) > at > org.apache.webbeans.event.NotificationManager.doFireSync(NotificationManager.java:1009) > ... 61 more > Caused by: java.lang.NoSuchMethodError: 'void > jakarta.enterprise.inject.spi.BeforeBeanDiscovery.addAnnotatedType(jakarta.enterprise.inject.spi.AnnotatedType)' > at > org.apache.bval.cdi.BValExtension.addBvalBinding(BValExtension.java:112) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:566) > {code} > h3. GAV Coordinates > {code:xml} > <dependency> > <groupId>org.apache.openwebbeans</groupId> > <artifactId>openwebbeans-impl</artifactId> > <classifier>jakarta</classifier> > <version>2.0.27</version> > </dependency> {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)