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
0
votes
1 answer

Unable to resolve bundle because of dependency conflict for jackson.annotation in Karaf

Some time while starting a bundle (basecomponent) I am getting the below error. It seems it is because of the two different versions of fasterxml.jackson.annotations . basecomponent bundle is using fasterxml.jackson.annotations 2.7.4 . basecomponent…
tuk
  • 5,941
  • 14
  • 79
  • 162
0
votes
2 answers

missing requirement osgi.wiring.package(com.sun.xml.internal.fastinfoset.sax)

I am trying to mix OSGi and JEE. I want to create a component in my Activator.java but when I console this project, I see following error: could not resolve the bundles: [agenda.console-0.0.0Unresolved constraint in bundle agenda.console [8]: Unable…
xiao
  • 542
  • 1
  • 9
  • 16
0
votes
0 answers

Getting java.lang.NoClassDefFoundError: com/day/cq/commons/Filter

Getting the below error message when we are accessing any page in our site even though the bundle is in active state: org.apache.sling.api.scripting.ScriptEvaluationException: javax.servlet.ServletException: java.lang.NoClassDefFoundError:…
user2930621
  • 17
  • 2
  • 11
0
votes
2 answers

Apache felix : Loading bundle files from dir with Felix embedded

I am using Apache Felix in embedded manner as explained in http://felix.apache.org/documentation/subprojects/apache-felix-framework/apache-felix-framework-launching-and-embedding.html As per the discussion in Apache Felix File Install jar from…
lsc
  • 681
  • 3
  • 8
  • 26
0
votes
0 answers

Apache Felix and Spring boot application : Class not found issue

I wrote a spring boot application which was working fine without any issues. Then I changed pom and added activator class and make it a Felix OSGI bundle. Then I was able to install it with Felix console as well. But when I start it with Felix…
lsc
  • 681
  • 3
  • 8
  • 26
0
votes
0 answers

Spring Boot (or mvc), OSGI integration : Dynamically creating objects for dynamic OSGI modules

I have a requirement to load dynamic modules on a Spring Boot Microservice. i.e Assume I have a MicroService called ProductService that will create different kind of products. And assume that I want to dynamically add products so there I use OSGI…
lsc
  • 681
  • 3
  • 8
  • 26
0
votes
1 answer

Karaf not able to load Afterburner classes during runtime

I am trying to use AfterBurner in a Karaf 3.0.5 (with default felix) using Java 1.8. In the same code base in one place it is working perfectly fine and in one place it is failing. The code where it is working looks like something like below (and is…
tuk
  • 5,941
  • 14
  • 79
  • 162
0
votes
2 answers

Package-Resolution (Import-Export) problem in maven2 generated osgi-bundles running in ServiceMix

I have one bundle using the following configuration in pom.xml: org.apache.felix maven-bundle-plugin 2.1.0 true
Akku
  • 4,373
  • 4
  • 48
  • 67
0
votes
1 answer

How to troubleshooting Apache Felix not resolving an optional dependency?

I have an OSGi setup with Apache Felix and a large number of dependencies. One of these dependencies (Apache CXF) has an optional dependency on an package in Spring (org.springframework.context.support). This dependency does not get resolved (not…
Jasper Siepkes
  • 1,412
  • 16
  • 25
0
votes
0 answers

start osgi bundle in android application

I am embedding Apache Felix into an android application. And then I install and start other four system bundle in android application. These four system bundle are installed successfully. But when I want to start them,it is wrong. So I can't start…
0
votes
1 answer

Starting a component in a Karaf feature

I'm trying to deploy a feature which has a dependency to a component named "utils" the component was added as a feature like this:
ender.an27
  • 703
  • 1
  • 13
  • 35
0
votes
3 answers

How Configuration Values Persist in Felix

I've been using Maven to deploy my bundles over a felix server. One of the things that fascinates me about Felix/OSGi is if i have configured a component with some values and i deploy my bundle again, even though the @Activate method will be called…
Shashi
  • 746
  • 10
  • 39
0
votes
1 answer

ManagedService won't get called from File Install

I have a Felix setup like this: ID|State |Level|Name 0|Active | 0|System Bundle (5.0.1) 1|Active | 1|Apache Felix Bundle Repository (2.0.4) 2|Active | 1|Apache Felix Configuration Admin Service (1.8.8) …
PeterMmm
  • 24,152
  • 13
  • 73
  • 111
0
votes
2 answers

Deploying OSGi bundle starts another one

I have one OSGi bundle (BundleA) for Sling that I deploy in Felix. This bundle loads initial Sling content and then through an activator executes some operations on this content (sets permissions and sorts nodes). That works well, I build it with…
0
votes
0 answers

Felix + WAR packaging => Component descriptor entry 'OSGI-INF/*.xml' not found

I'm trying to deploy the Java backend of a web application on GlassFish 4.1.1. I use OSGi with declarative services. Declarative services seem to work when the bundle in question is published as a JAR but I'm having some trouble with WARs: Felix…
Alix
  • 927
  • 7
  • 21