Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3657 problem with installing / uninstalling features in fuse 6.2.1
  3. ENTESB-4268

multiple jboss-logging versions in fuse may cause wiring chain issues

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Minor Minor
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1
    • SwitchYard
    • None
    • % %

      There are two versions of jboss-logging:

      ./system/org/apache/camel/karaf/apache-camel/2.15.1.redhat-621053/apache-camel-2.15.1.redhat-621053-features.xml:    <bundle dependency='true'>mvn:org.jboss.logging/jboss-logging/3.1.4.GA</bundle>
      ./system/org/apache/camel/karaf/apache-camel/2.15.1.redhat-621053/apache-camel-2.15.1.redhat-621053-features.xml:    <bundle dependency='true'>mvn:org.jboss.logging/jboss-logging/3.1.4.GA</bundle>
      ./system/org/apache/camel/karaf/apache-camel/2.15.1.redhat-621054/apache-camel-2.15.1.redhat-621054-features.xml:    <bundle dependency='true'>mvn:org.jboss.logging/jboss-logging/3.1.4.GA</bundle>
      ./system/org/apache/camel/karaf/apache-camel/2.15.1.redhat-621054/apache-camel-2.15.1.redhat-621054-features.xml:    <bundle dependency='true'>mvn:org.jboss.logging/jboss-logging/3.1.4.GA</bundle>
      ./system/org/apache/karaf/assemblies/features/pax-cdi-features/2.4.0.redhat-621053/pax-cdi-features-2.4.0.redhat-621053-features.xml:        <bundle>mvn:org.jboss.logging/jboss-logging/3.1.4.GA</bundle>
      ./system/org/apache/karaf/assemblies/features/pax-cdi-features/2.4.0.redhat-621053/pax-cdi-features-2.4.0.redhat-621053-features.xml:        <bundle>mvn:org.jboss.logging/jboss-logging/3.3.0.Final</bundle>
      ./system/org/apache/karaf/assemblies/features/pax-cdi-features/2.4.0.redhat-621054/pax-cdi-features-2.4.0.redhat-621054-features.xml:        <bundle>mvn:org.jboss.logging/jboss-logging/3.1.4.GA</bundle>
      ./system/org/apache/karaf/assemblies/features/pax-cdi-features/2.4.0.redhat-621054/pax-cdi-features-2.4.0.redhat-621054-features.xml:        <bundle>mvn:org.jboss.logging/jboss-logging/3.3.0.Final</bundle>
      ./system/org/apache/karaf/assemblies/features/enterprise/2.4.0.redhat-621053/enterprise-2.4.0.redhat-621053-features.xml:        <bundle dependency="true">mvn:org.jboss.logging/jboss-logging/3.1.4.GA</bundle>
      ./system/org/apache/karaf/assemblies/features/enterprise/2.4.0.redhat-621053/enterprise-2.4.0.redhat-621053-features.xml:        <bundle dependency="true">mvn:org.jboss.logging/jboss-logging/3.1.4.GA</bundle>
      ./system/org/apache/karaf/assemblies/features/enterprise/2.4.0.redhat-621054/enterprise-2.4.0.redhat-621054-features.xml:        <bundle dependency="true">mvn:org.jboss.logging/jboss-logging/3.1.4.GA</bundle>
      ./system/org/apache/karaf/assemblies/features/enterprise/2.4.0.redhat-621054/enterprise-2.4.0.redhat-621054-features.xml:        <bundle dependency="true">mvn:org.jboss.logging/jboss-logging/3.1.4.GA</bundle>
      

      It may cause wiring chain issues when installing multiple switchyard features/bundles with logging dependencies:
      For instance switchyard-quickstart-rest-binding

      [ERROR] [FeaturesInstallTest] Failed to install feature 'Feature "switchyard-quickstart-rest-binding" (2.0.1.redhat-621054) currently uninstalled  from switchyard-2.0.1.redhat-621054':
      Error executing command: Could not start bundle mvn:org.switchyard.components/switchyard-component-resteasy/2.0.1.redhat-621054 in feature(s) switchyard-internal-rest-2.0.1.redhat-621054: Uses constraint violation. Unable to resolve bundle revision org.switchyard.components.switchyard-component-resteasy [1325.0] because it is exposed to package 'org.jboss.logging' from bundle revisions org.jboss.logging.jboss-logging [458.0] and org.jboss.logging.jboss-logging [1028.0] via two dependency chains.
      
      Chain 1:
        org.switchyard.components.switchyard-component-resteasy [1325.0]
          import: (&(osgi.wiring.package=org.jboss.logging)(version>=3.1.0)(!(version>=4.0.0)))
           |
          export: osgi.wiring.package=org.jboss.logging
        org.jboss.logging.jboss-logging [458.0]
      
      Chain 2:
        org.switchyard.components.switchyard-component-resteasy [1325.0]
          import: (&(osgi.wiring.package=org.switchyard.config.model.composite.v1)(version>=2.0.0)(!(version>=2.1.0)))
           |
          export: osgi.wiring.package=org.switchyard.config.model.composite.v1; uses:=org.jboss.logging
        org.switchyard.switchyard-config [1079.0]
          import: (&(osgi.wiring.package=org.jboss.logging)(version>=3.1.0)(!(version>=4.0.0)))
           |
          export: osgi.wiring.package=org.jboss.logging
        org.jboss.logging.jboss-logging [1028.0]
      
      
      [ERROR] [FeaturesInstallTest] Related bundles are:
      [ 458] [Active     ] [            ] [       ] [   80] mvn:org.jboss.logging/jboss-logging/3.1.4.GA
      [1028] [Active     ] [            ] [       ] [   80] mvn:org.jboss.logging/jboss-logging/3.3.0.Final
      [1079] [Active     ] [            ] [       ] [   80] mvn:org.switchyard/switchyard-config/2.0.1.redhat-621054
      

              tcunning@redhat.com Thomas Cunningham
              jludvice Josef Ludvicek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: