Apache Karaf – Unable to resolve root: missing requirement – caused by: Unable to resolve java-api

I have Apache Karaf 4.0.1 running on a Linux Centos 7 server. I get the following error: org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity;…

How to resolve conflict between JPMS and OSGi Bundle for Eclipse plugin project an Tycho

I am working on an Eclipse based project that recently switched from Java 1.8 to Java 11. Due to that we have now a conflict between classes from the JRE and classes that are introduced from Eclipse …

How to get a content of config file for some OSGI Bundle

I have a following structure: — bundles —- nicebundle —— src ——– … ——– nicebundle.config ———- NiceConfig.java ——– … —- mybundle —— … —- another bundles… -…

Where to place module-info.java using Java 9?

I have an OSGI application and I have around 30 bundles (jar files). Today I decided to see how it works/if it works with Java 9. So I started my application and got WARNING: An illegal reflective …

Maven Bundle Plugin: Export has private references

After updating the maven-bundle-plugin from version 2.3.5 to version 2.4.0 running mvn clean install outputs some warning messages, which I don’t fully understand. E.g. Export ch.entwine.weblounge….

Tycho cannot resolve fragment dependency on other fragment

I want to create an extension for org.eclipse.swt as a fragment. I have created a bundle swt.extension with the following MANIFEST.MF: Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: …