Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4437

CDI 4.0 Compatibility

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0-RC1
    • 4.0.0-RC1
    • None
    • None

    Description

      When compiling with CDI 4.0 the build fails with the following errors as it looks like some CDI BeanManager methods are missing.

      <dependency>
          <groupId>jakarta.enterprise</groupId>
          <artifactId>jakarta.enterprise.cdi-api</artifactId>
          <version>4.0.1</version>
          <scope>provided</scope>
      </dependency> 

      Compilation errors...

       

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project myfaces-impl: Compilation failure: Compilation failure:
      [ERROR] /C:/dev/melloware-git/myfaces/impl/src/main/java/org/apache/myfaces/push/EndpointImpl.java:[79,24] cannot find symbol
      [ERROR]   symbol:   method fireEvent(jakarta.faces.event.WebsocketEvent,jakarta.enterprise.util.AnnotationLiteral<jakarta.faces.event.WebsocketEvent.Opened>)
      [ERROR]   location: variable beanManager of type jakarta.enterprise.inject.spi.BeanManager
      [ERROR] /C:/dev/melloware-git/myfaces/impl/src/main/java/org/apache/myfaces/push/EndpointImpl.java:[114,24] cannot find symbol
      [ERROR]   symbol:   method fireEvent(jakarta.faces.event.WebsocketEvent,jakarta.enterprise.util.AnnotationLiteral<jakarta.faces.event.WebsocketEvent.Closed>)
      [ERROR]   location: variable beanManager of type jakarta.enterprise.inject.spi.BeanManager
      [ERROR] /C:/dev/melloware-git/myfaces/impl/src/main/java/org/apache/myfaces/cdi/util/AbstractDynamicProducer.java:[124,5] method does not override or implement a method from a supertype
      [ERROR] /C:/dev/melloware-git/myfaces/impl/src/main/java/org/apache/myfaces/cdi/CDIInjectionProviderImpl.java:[48,45] cannot find symbol
      [ERROR]   symbol:   method createInjectionTarget(jakarta.enterprise.inject.spi.AnnotatedType)
      [ERROR]   location: variable beanManager of type jakarta.enterprise.inject.spi.BeanManager
      [ERROR] /C:/dev/melloware-git/myfaces/impl/src/main/java/org/apache/myfaces/cdi/CDIInjectionProviderImpl.java:[60,45] cannot find symbol
      [ERROR]   symbol:   method createInjectionTarget(jakarta.enterprise.inject.spi.AnnotatedType)
      [ERROR]   location: variable beanManager of type jakarta.enterprise.inject.spi.BeanManager
      [ERROR] /C:/dev/melloware-git/myfaces/impl/src/main/java/org/apache/myfaces/cdi/CDIInjectionProviderImpl.java:[70,49] cannot find symbol
      [ERROR]   symbol:   method createInjectionTarget(jakarta.enterprise.inject.spi.AnnotatedType)
      [ERROR]   location: variable beanManager of type jakarta.enterprise.inject.spi.BeanManager 

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tandraschko Thomas Andraschko
            melloware Melloware
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment