Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6382

Bundles failing to resolve because of missing java.* dependencies.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • framework-6.0.3
    • None
    • None
    • None
    • Windows Server 2016, openjdk-14.0.2+12, Bndtools 5.2.0 Rel

    Description

      Not sure how to address this. I previously mentioned this issue on the Karaf user list. I'm trying to upgrade to Karaf 4.3.0 (running under openjdk 14.0) and bundles fail to resolve due to unresolved java.* dependencies.

      I created a bundle with a single class that has a few java.* dependencies and it exhibits the problem as well. I tried compiling the test bundle as 1.8, 9, 11 and 14 and they all behaved the same. The strangest part is that third-party bundles that I rely on, Apache Commons Lang, Google Guava, etc resolve just fine.

      I hesitate to mark this as a Bug since it could be in my environment but I'm at a loss on this at the moment.  I'm using the same version of Bndtools that I used with Karaf 4.2.10 and everything works fine there.

      2021-01-26T14:52:36,821 | WARN  | fileinstall-E:/BAM | fileinstall                      | 17 - org.apache.felix.fileinstall - 3.6.8 | Error while starting bundle: file:/E:/BAM/medline.util.jar2021-01-26T14:52:36,821 | WARN  | fileinstall-E:/BAM | fileinstall                      | 17 - org.apache.felix.fileinstall - 3.6.8 | Error while starting bundle: file:/E:/BAM/medline.util.jarorg.osgi.framework.BundleException: Unable to resolve medline.util [55](R 55.2): missing requirement [medline.util [55](R 55.2)] osgi.wiring.package; (osgi.wiring.package=java.lang) Unresolved requirements: [[medline.util [55](R 55.2)] osgi.wiring.package; (osgi.wiring.package=java.lang)] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368) ~[?:?] at org.apache.felix.framework.Felix.startBundle(Felix.java:2281) ~[?:?] at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?] at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [!/:3.6.8] at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [!/:3.6.8] at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221) [!/:3.6.8] at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) [!/:3.6.8] at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [!/:3.6.8] at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [!/:3.6.8]

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              scott.y Scott Leschke
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: