Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-1423

openwebbeans-impl-jakarta is using old javax namespace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.26, 2.0.27
    • 4.0.0
    • None
    • None

    Description

      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.

      Stacktrace

      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)
      
      

      GAV Coordinates

      <dependency>
        <groupId>org.apache.openwebbeans</groupId>
        <artifactId>openwebbeans-impl</artifactId>
        <classifier>jakarta</classifier>
        <version>2.0.27</version>
      </dependency> 

      Attachments

        Activity

          People

            struberg Mark Struberg
            Tsakumagos Georg Tsakumagos
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: