Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8676

fabric8-project-bom-with-platform-deps incompatible cdi-api version

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: FIS 2.0
    • Fix Version/s: FIS 2.0
    • Component/s: FIS-Fabric8
    • Labels:
      None
    • Sprint:
      FIS 2.0 Sprint 6

      Description

      io.fabric8:fabric8-project-bom-with-platform-deps:2.2.0.redhat-000037 declares

       <dependency>
                      <groupId>javax.enterprise</groupId>
                      <artifactId>cdi-api</artifactId>
                      <version>1.0</version>
                      <scope>runtime</scope>
      </dependency>
      

      This is incompatible with the weld version from the same file (2.3.5.Final ), causes camel-cdi applications to fail

      Exception in thread "main" org.jboss.weld.exceptions.IllegalStateException: WELD-000144: CDI API version mismatch. CDI 1.0 API detected on classpath. Weld requires version 1.1 or better.
      	at org.jboss.weld.bootstrap.WeldStartup.checkApiVersion(WeldStartup.java:242)
      	at org.jboss.weld.bootstrap.WeldStartup.startContainer(WeldStartup.java:175)
      	at org.jboss.weld.bootstrap.WeldBootstrap.startContainer(WeldBootstrap.java:69)
      	at org.jboss.weld.environment.se.Weld.initialize(Weld.java:586)
      	at org.apache.deltaspike.cdise.weld.WeldContainerControl.boot(WeldContainerControl.java:68)
      	at org.apache.camel.cdi.Main.doStart(Main.java:97)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.main.MainSupport.run(MainSupport.java:138)
      	at org.apache.camel.main.MainSupport.run(MainSupport.java:390)
      	at org.apache.camel.cdi.Main.main(Main.java:64)
      

      Note that FIS 1.0 version (2.2.0.redhat-079 ) declares cdi-api version 1.2

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                maschmid Marek Schmidt
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: