Top "Osgi" questions

The OSGi (Open Service Gateway Initiative) framework is a module system and service platform for the Java programming language that implements a complete and dynamic component model.

Tycho: Dependencies to other plugins of the project cannot be resolved when building plugins separately

I have a Eclipse RCP application that builds with Maven using the Tycho plugin. There is a master POM that …

eclipse maven osgi tycho artifactory
NoClassDefFoundError although OSGi bundle is there

I get a run time error when trying to run a grails application on Eclipse Equinox. java.lang.NoClassDefFoundError: org/…

java osgi equinox
Velocity in OSGi: how to load templates from classpath

I am developing an application for OSGi with velocity template engine. It works great for loading my templates by file …

java osgi velocity
Prioritizing OSGi service selection within a container when more than one implementation exist

I am playing with OSGi and have a few bundles. Bundle A and B both contain a registered service which …

osgi
Using Java 7 Comparators in Java 8

Situation I have an OSGi project that I'm trying to migrate to Java 8. In my project, I have dependencies to …

java migration osgi java-8
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/…

java osgi apache-felix java-9 java-platform-module-system
How to obtain OSGi service references from a Servlet that is registered in OSGi HttpService?

It seems natural that a HttpServlet running in OSGi environment (i.e. registered in OSGi HttpService) would want to call …

servlets dependency-injection osgi service-reference
How to overcome "Missing optionally imported package"issue in OSGi

I wrote an OSGi bundle using "maven-bundle-plugin"(where i try to make the "jruby-complete-1.4.0.jar" as osgi bundle, note that …

maven osgi equinox osgi-fragment
ClassNotFoundException for org.osgi.framework.BundleActivator despite of Import-Package

I tried running a really simple OSGi "Hello World"-style example with an activator after a longer while again and …

java osgi equinox
How to deploy easily to Karaf Osgi container with maven project

I'm developing an OSGI bundle for parsing a PDF file using PDFBox library. I use maven to build the project …

maven osgi apache-karaf karaf karaf-maven-plugin