I'm back to experimenting with bundles to run on Felix and ran into this
message

ERROR: Bundle yrs.contractor.LedgerReportsBundle [88] Error starting
atomos:boot:file:///sata2/modules/felix/LedgerReportsBundle-1.0.0
.jar (org.osgi.framework.BundleException: Unable to resolve
yrs.contractor.LedgerReportsBundle [88](R 88.0): missing requirement [yrs.
contractor.LedgerReportsBundle [88](R 88.0)] osgi.ee; (osgi.ee=UNKNOWN)
Unresolved requirements: [[yrs.contractor.LedgerReportsBundle
[88](R 88.0)] osgi.ee; (osgi.ee=UNKNOWN)])
org.osgi.framework.BundleException: Unable to resolve
yrs.contractor.LedgerReportsBundle [88](R 88.0): missing requirement
[yrs.contra
ctor.LedgerReportsBundle [88](R 88.0)] osgi.ee; (osgi.ee=UNKNOWN)
Unresolved requirements: [[yrs.contractor.LedgerReportsBundle [88](R
88.0)] osgi.ee; (osgi.ee=UNKNOWN)]
       at org.apache.felix.framework@7.0.0
/org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
       at org.apache.felix.framework@7.0.0
/org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
       at org.apache.felix.framework@7.0.0
/org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1566)
       at org.apache.felix.framework@7.0.0
/org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
       at java.base/java.lang.Thread.run(Thread.java:831)

Attempting to find out what is producing the message I looked in the
manifest Netbeans (12.3) is producing.   Some Googling I found a message
regarding eclipse from 2 years ago that indicated the bnd tools are too old
(in 2019!)  The offending entry is apparently the Require-Capability:
osgi.ee entry in the manifest.  Unfortunately, I can't find a way to fix it
via Netbeans.

Manifest-Version: 1.0
Bnd-LastModified: 1620784684373
Build-Jdk: 16.0.1
Built-By: chuck
Bundle-Activator: yrs.contractor.ledgerreports.Activator
Bundle-ManifestVersion: 2
Bundle-Name: LedgerReportsBundle OSGi Bundle
Bundle-SymbolicName: yrs.contractor.LedgerReportsBundle
Bundle-Version: 1.0.0
Created-By: Apache Maven Bundle Plugin
Export-Package: yrs.contractor.ledgerreports;uses:="org.osgi.framework
 ";version="1.0.0"
Import-Package: com.yakridge.jfxbase;version="[3.0,4)",com.yakridge.jf
 xbase.interfaces;version="[3.0,4)",javafx.scene,javafx.scene.control,
 javafx.scene.layout,org.osgi.framework;version="[1.8,2)"
Require-Capability: osgi.ee;filter:="(osgi.ee=UNKNOWN)"
Tool: Bnd-3.5.0.201709291849

And I noticed, creating a new OSGi Bundle project uses VERY old versions in
the POM file.

Thanks to anybody who knows a work-around until Netbeans can produce a
Manifest without the offending entry.

Reply via email to