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

please fix duplicate javax.mail in fuse

    XMLWordPrintable

Details

    • % %
    • 6.3 Sprint 4 (Mar 28 - Apr 29)

    Description

      There are two versions of javax.mail:

      <!-- in camel features -->
          <bundle dependency='true'>mvn:com.sun.mail/javax.mail/1.5.5</bundle>
      
      <!-- in cxf --> 
          <bundle start-level="10" dependency="true">mvn:javax.mail/mail/1.4.7</bundle>
      
      <!-- in pax web -->
          <bundle dependency="true" start-level="30">mvn:javax.mail/mail/1.4.7</bundle>
      

      I don't have exact steps to reproduce but it may cause following wiring chain:

      JBossFuse:karaf@root> features:install camel-aws
      Error executing command: Could not start bundle mvn:org.apache.camel/camel-aws/2.17.0.redhat-630063 in feature(s) camel-aws-2.17.0.redhat-630063: Uses constraint violation. Unable to resolve bundle revision org.apache.camel.camel-aws [1239.0] because it is exposed to package 'javax.mail' from bundle revisions com.sun.mail.javax.mail [1236.0] and javax.mail [66.0] via two dependency chains.
      
      Chain 1:
        org.apache.camel.camel-aws [1239.0]
          import: (&(osgi.wiring.package=javax.mail)(version>=1.5.0)(!(version>=2.0.0)))
           |
          export: osgi.wiring.package=javax.mail
        com.sun.mail.javax.mail [1236.0]
      
      Chain 2:
        org.apache.camel.camel-aws [1239.0]
          import: (osgi.wiring.package=com.amazonaws.services.simpleemail)
           |
          export: osgi.wiring.package=com.amazonaws.services.simpleemail; uses:=javax.mail
        org.apache.servicemix.bundles.aws-java-sdk [1235.0]
          import: (&(osgi.wiring.package=javax.mail)(version>=1.4.0)(!(version>=2.0.0)))
           |
          export: osgi.wiring.package=javax.mail
        javax.mail [66.0]
      

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              jludvice Josef Ludvicek (Inactive)
              Josef Ludvicek Josef Ludvicek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: