I am attempting to create a Java Maven OSGI Desktop Application which can be launched using Karaf. The project includes several bundles. I believe I need to create features and assemble them? From Karaf’s documentation it seems there is a new and “old” way. https://svn.apache.org/repos/asf/karaf/site/production/manual/latest/custom-distribution.html I am still confused about the following: In addition to my parent/child bundle projects, should
Tag: osgi
Simple OSGi application with dependencies inside bundle
Simple OSGi application with dependencies inside bundle. I am playing with karaf. I started by writing a simple rest application. https://github.com/YaroslavTir/osgi-jersey-hibertate/tree/stackoverflow/examples/karaf-rest-core I took karaf examples as backbond and it was quite simple to run my first bundle with rest endpoints, but then I faced an issue when I added maven dependency. I added guava as an example and got an
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: Any ideas? I am a novice with apache-karaf/OSGi, so please excuse me if there is pertinent information lacking in this question, I would be glad to add info when suggested. More info: I build it using maven with Java1.7. I also tried building
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 plugin dependencies. So the java.xml.* classes are now present twice. once from the module java.xml and once due to a dependency from our
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 After some reading I added command line option and created file module-info.java with the following content: And I have two questions. Where should I place this module-info.java
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.contentrepository.impl.index, has 1, private references [org.elasticsearch.action.bulk] I guess this has something to do with an embedded lib (elasticsearch). Here are parts of the POM: What does the error message exactly mean? What is the recommended
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: Also, I have created an interface which extends an interface from SWT: When I build my project with tycho (mvn clean install) the following error occurs: It seems that tycho resolves only org.eclipse.swt jar. This is a host bundle
Quick and easy way to test OSGi bundles
Currently, I am working on a new version control system as part of a final year project at University. The idea is to make it highly adaptable and pluggable. We’re using the OSGi framework (Equinox implementation) to manage our plug ins. My problem is that I can’t find a simple & easy to use method for testing OSGi bundles. Currently,