Questions tagged [apache-felix]

Apache Felix is a community effort to implement the OSGi R4 Service Platform and other interesting OSGi-related technologies under the Apache license.

Apache Felix is a community effort to implement the OSGi R4 Service Platform and other interesting OSGi-related technologies under the Apache license. The OSGi specifications originally targeted embedded devices and home services gateways, but they are ideally suited for any project interested in the principles of modularity, component-orientation, and/or service-orientation. OSGi technology combines aspects of these aforementioned principles to define a dynamic service deployment framework that is amenable to remote management.

Subprojects:

The Felix project is organized into subprojects, where each subproject targets a specific OSGi specification or OSGi-related technology; the following list summarizes each released subproject:

  • Config Admin - An implementation of the OSGi Configuration Admin service specification for managing bundle configuration properties.
  • Dependency Manager - An API-based component model to simplify OSGi-based development.
  • Event Admin - An implementation of the OSGi Event Admin service specification for event-based communication.
  • File Install - A simple, directory-based management agent for managing bundle deployment.
  • Framework - An implementation of the OSGi R4.2 core framework.
  • Gogo - An advanced shell for interacting with OSGi frameworks.
  • HTTP Service - An implementation of the OSGi HTTP Service specification.
  • iPOJO - A sophisticated service-oriented component model to simplify OSGi-based development.
  • Log - A simple, memory-based implementation of the OSGi Log service specification.
  • Maven Bundle Plugin - A Maven plugin to simplify building bundles.
  • Maven SCR Plugin - A Maven plugin to simplify using Declarative Services.
  • Metatype - An implementation of the OSGi Metatype service to describe types needed by bundles.
  • OSGi Bundle Repository - A bundle repository service to simplify discovering and deploying bundles and their dependencies.
  • Preferences - An implementation of the OSGi Preferences service specification for storing settings and preferences.
  • Remote Shell - A remote, text-based interface to the Apache Felix Shell.
  • Service Component Runtime - An implementation of the OSGi Declarative Services specification providing a service-oriented component model to simplify OSGi-based development.
  • Shell - A very simple shell service implemented as a bundle for interacting with an OSGi framework instance.
  • Shell TUI - A simple, text-based interface to the Apache Felix Shell.
  • UPnP - An implementation of the OSGi UPnP Device service specification for UPnP device integration.
  • Web Console - A simple tool to inspect and manage OSGi framework instances using your favorite Web Browser.

Official Website: http://felix.apache.org/

Useful Links:

921 questions
4
votes
2 answers

Imported Jackson Annotations Ignored for POJOs in OSGi Dependency at Runtime

Summary Jackson annotations applied to POJOs exported through an OSGi depdendency does not work when the POJO is serialized in an importing bundle at Runtime. If the POJO is placed in the using bundle directly, or tested in a Unit Test (in either…
Tormod Haugene
  • 3,538
  • 2
  • 29
  • 47
4
votes
3 answers

Dynamically setting target property in OSGi Reference annotatation

After reading an article on Reference target (and corresponding properties), I still don't understand how to retrieve a service, when target is set at runtime (typically target and properties are set at compile time and evaluated by SCR at…
mike
  • 4,929
  • 4
  • 40
  • 80
4
votes
1 answer

Why is it a bad idea to manually wire OSGi services?

In order to favor certain service implementations over others, I wrote a customizable version of java.util.ServiceLoader (adds priority and enabled/disabled flag to implementations via preference files for non-OSGi code). The client was pleased and…
mike
  • 4,929
  • 4
  • 40
  • 80
4
votes
5 answers

OSGi feature uninstall works, but bundles are still installed

EDIT: updated this question with latest information... I'm having issues running back-to-back "features:uninstall" commands for dependent features. OSGi responds back with "State change in progress...", but by accepting other requests, we run into…
Ben ODay
  • 20,784
  • 9
  • 45
  • 68
4
votes
1 answer

Is it possible to create OSGI Service programmatically with Injections resolved

Unfortunately, I could not find a way to create an osgi service programmatically with resolved references. It is a well known fact, that OSGi creates service as a singleton object. Owing to some reason, I need to create new service instances…
Alexander Drobyshevsky
  • 3,907
  • 2
  • 20
  • 17
4
votes
1 answer

Failed to execute goal (generate-scr-scrdescriptor) on project Unable to load compiled class

Have any one faced below error. why it causes.? am using the below version of plugins. org.apache.maven.plugins maven-compiler-plugin 3.2
VAr
  • 2,551
  • 1
  • 27
  • 40
4
votes
3 answers

How to dynamically update references in an OSGi component?

I have an OSGi component MyComponent . This component has reference to a service MyService. Now MyService has a couple of implementations MyServiceImpl1 and MyServiceImpl2. MyComponent also has property MyProperty. Now what I want is that whenever…
sdm
  • 1,236
  • 11
  • 9
4
votes
2 answers

OSGI bundle of JARs with maven-bundle-plugin

I am trying to embed some JARs into an OSGI bundle which do not have a corresponding OSGI bundle so that other OSGI bundles can reference them. I have followed many suggestions but nothing worked. My last attempt is based on: for…
OSGI Java
  • 545
  • 7
  • 21
4
votes
1 answer

Apache Felix OSGi logging with Logback

My current application uses Logback for logging. I have used Apache Felix to deploy an OSGi framework that allows bundles to be dynamically registered at runtime. The Felix setup is as follows: ... //System.out.println("Building OSGi…
tarka
  • 5,289
  • 10
  • 51
  • 75
4
votes
3 answers

OSGI bundle dependencies

I have created an bundle which relies on SLF4J and as such am using Logback for the OSGI implementation. This all bundles up and installs OK but when I come to start the bundle I get the following exception: org.osgi.framework.BundleException:…
timothyclifford
  • 6,799
  • 7
  • 57
  • 85
4
votes
2 answers

OSGi/Felix Declarative Services: How to filter the services to be bound?

I am using Apache Felix and its Declarative Services (SCR) to wire the service dependencies between bundles. For example, if I need access to a java.util.Dictionary I can say the following to have SCR provide one: /** * @scr.reference…
Thilo
  • 257,207
  • 101
  • 511
  • 656
4
votes
3 answers

OSGi bundle not started : missing requirement osgi.wiring.package; > &(osgi.wiring.package=org.apache.felix.dm)

I have been trying to follow 'Building Modular Cloud Apps with OSGi'. In chapter 3 of the book 'Creating the first OSGi application' the author describes how to create a simple OSGi application with a service in eclipse with bndtools. Below is the…
mu_sa
  • 2,685
  • 10
  • 39
  • 58
4
votes
1 answer

Error while deploying a web application in OSGI container using pax web

Hello I am trying to deploy a web application in a Felix container. I have all the required configuration done with my web app like the setting up of the manifest headers: Webapp-Context: Bundle-ClassPath: Bundle-Activator:…
RaulDM
  • 41
  • 3
4
votes
1 answer

OSGi bundles won't start - Unable to resolve sun.reflect.generics.reflectiveObjects

After seemingly irrelevant changes in the code of my AEM project, my bundle fails to resolve. Upon inspecting the logs, I can see the following errors appearing. 22.04.2015 11:00:18.650 *ERROR* [qtp1266495948-35] org.apache.felix.http.jetty…
toniedzwiedz
  • 17,895
  • 9
  • 86
  • 131
4
votes
1 answer

How handle different logging solutions in OSGi (Apache Felix)

In OSGi there is a separation between the logging frontend and the actual output. So, by using the LogService, this doesnt mean that anything is written to the console for example. This is what a LogReaderService is responsible for. In my current…
lostiniceland
  • 3,729
  • 6
  • 38
  • 50