Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4110

OSGI conflict between imports after ZK-3878

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.6.1
    • 8.6.0
    • None
    • Security Level: Jimmy
    • None

      in ZK-3878, an import-package entry for org.zkoss.zk.ui.sys was added to zkex osgi build.
      This cause the following error when both zk and zkex bundles are used together:

      Requested: A unified dependency chain or a reworking of the import to avoid this error.

      RESOLVER: Candidate permutation failed due to a conflict between imports; will try another if possible. (Uses constraint violation. Unable to resolve resource [package].zk [osgi.identity; osgi.identity="[package].zk"; type="osgi.bundle"; version:Version="1.0.0.qualifier"; singleton:="true"] because it is exposed to package 'org.zkoss.zk.ui.sys' from resources zk [osgi.identity; osgi.identity="zk"; type="osgi.bundle"; version:Version="8.5.1.2"] and zkex [osgi.identity; osgi.identity="zkex"; type="osgi.bundle"; version:Version="8.5.1.2"] via two dependency chains.
       
      Chain 1:
        [package].zk [osgi.identity; osgi.identity="[package].zk"; type="osgi.bundle"; version:Version="1.0.0.qualifier"; singleton:="true"]
          require: (&(osgi.wiring.bundle=zk)(bundle-version>=8.0.5))
           |
          provide: osgi.wiring.bundle: zk
        zk [osgi.identity; osgi.identity="zk"; type="osgi.bundle"; version:Version="8.5.1.2"]
       
      Chain 2:
        [package].zk [osgi.identity; osgi.identity="[package].zk"; type="osgi.bundle"; version:Version="1.0.0.qualifier"; singleton:="true"]
          require: (&(osgi.wiring.bundle=zhtml)(bundle-version>=8.0.5))
           |
          provide: osgi.wiring.bundle; bundle-version:Version="8.5.1.2"; osgi.wiring.bundle="zhtml"
        zhtml [osgi.identity; osgi.identity="zhtml"; type="osgi.bundle"; version:Version="8.5.1.2"]
          import: (osgi.wiring.package=org.zkoss.zk.ui.sys)
           |
          export: osgi.wiring.package: org.zkoss.zk.ui.sys
        zkex [osgi.identity; osgi.identity="zkex"; type="osgi.bundle"; version:Version="8.5.1.2"])
      

            CharlesQiu CharlesQiu
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 week
                1w
                Remaining:
                Time Spent - 1 day, 7 hours, 30 minutes Remaining Estimate - 3 days, 30 minutes
                3d 30m
                Logged:
                Time Spent - 1 day, 7 hours, 30 minutes Remaining Estimate - 3 days, 30 minutes
                1d 7h 30m