Hi Scott, It seems to come directly from the Felix framework.
Did you try with equinox ? Maybe you are exporting (by mistake) java.io <http://java.io/> and java.lang packages ? Regards JB > Le 16 oct. 2020 à 22:23, Leschke, Scott <slesc...@medline.com> a écrit : > > I’m getting the following with Karaf 4.2.9 and the latest BndTools 5.2.0REL. > I’m confused by what’s going on here. Obviously importing of java.* packages > is still required, or at least allowed. > This first stack trace is a WARN in the log while the second one is an ERROR. > Java 11 on Windows if that matters. > > org.osgi.framework.BundleException: Importing java.* packages not allowed: > java.io <http://java.io/> > at > org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeImportClauses(ManifestParser.java:349) > ~[?:?] > at > org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:181) > ~[?:?] > at > org.apache.felix.framework.BundleRevisionImpl.<init>(BundleRevisionImpl.java:117) > ~[?:?] > at > org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1282) > ~[?:?] > at > org.apache.felix.framework.BundleImpl.revise(BundleImpl.java:1219) ~[?:?] > at > org.apache.felix.framework.Felix.updateBundle(Felix.java:2388) ~[?:?] > at > org.apache.felix.framework.BundleImpl.update(BundleImpl.java:1018) ~[?:?] > …. > > org.osgi.framework.BundleException: Importing java.* packages not allowed: > java.lang > at > org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeImportClauses(ManifestParser.java:349) > ~[?:?] > at > org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:181) > ~[?:?] > at > org.apache.felix.framework.BundleRevisionImpl.<init>(BundleRevisionImpl.java:117) > ~[?:?] > at > org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1282) > ~[?:?] > at > org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:113) ~[?:?] > at > org.apache.felix.framework.Felix.installBundle(Felix.java:3042) ~[?:?] > at > org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:167) > ~[?:?] > …. > > Thanks in advance, > > Scott