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
5
votes
0 answers

Felix bundles - org.osgi.framework.BundleException: Unable to acquire global lock for resolve

I am running an instance of AEM 6.1 and am having problems installing bundles. I am installing the bundles via Maven (probably not related, but not ruling it out). Periodically a bundle will not start when it is installed. I get the following…
Woodifer
  • 1,019
  • 1
  • 7
  • 15
5
votes
1 answer

What is the difference between Apache Felix and Apache Tomcat

I have just stepped into OSGi bundle framework and things are quite different here(in comparison to what i have been doing in the past - We were developing web applications on J2EE - container for this application was Apache tomcat). Here in OSGi…
irshad.ahmad
  • 276
  • 3
  • 9
  • 24
5
votes
3 answers

Using Log4j2 from an embedded OSGi framework

We are usingApache Felix (version 4.4.1)as an embedded OSGi framework. The main application that is providing the framework is usingLog4j2 (version 2.0.1)as logging framework. There are dependencies on log4j-api and log4j-core. Of course when the…
sebastian
  • 2,427
  • 4
  • 32
  • 37
5
votes
3 answers

Maven SCR Plugin - Not generating OSGI-INF folder

I have been having trouble getting my SCR plugin working. I have searched as much as I could bur only found examples that were not similar to the structure I am required to use. Snippets of POMs below. These are pretty much the default generated by…
Paul B.
  • 153
  • 2
  • 8
5
votes
1 answer

which one is called first Activate function or bind function in SCR Runtime

I was confused with the order that which function Activate function or bind function gets called when component become active. In my opinion activate function function will be called first as Bind function is for binding the service. But as we know…
5
votes
1 answer

Creating Osgi Bundle with dependent Jars using Gradle

I would like to create some bundles which dependent on some other (3rd party) jars (whether this is a good practice is another topic) I am able to use gradle to generate a fat jar (which has all dependent jars) and the osgi manifest My project…
vincentlcy
  • 1,157
  • 2
  • 17
  • 19
5
votes
2 answers

Apache Felix Maven Plugin Not Working

Simple. Here is the felix plugin in the maven pom.xml: org.apache.maven.plugins maven-compiler-plugin 2.5.1
rb8680
  • 279
  • 2
  • 3
  • 11
5
votes
2 answers

Looking for basic example of using Apache Felix in dynamic loading of Jar file and instancing a class at runtime in Java

I tried implementing my own class loader based on some examples. However, I think it is not working as expected ( unable to reload Jar file etc. I see few references of recommending using OSGI or Apache Felix for handling Jar file loading. Is there…
user1533269
  • 53
  • 1
  • 4
5
votes
1 answer

Deploy war files in Apache Felix?

I'm trying to deploy an application to Apache Felix. It was a gwt application but I've been simplifying the problem until just a hello world html file so my problem is to deploy any kind of web application in a war file. I've also tried to deploy…
blaxter
  • 335
  • 3
  • 10
4
votes
1 answer

resolving two dependency chains in FuseESB and Jersey Servlet

I am trying to deploy a Jersey servlet in FuseESB (based on apache serviceMix) but I get the following error: Error executing command: Unable to resolve module com.temp.myappserver [248.4] because it is exposed to package 'javax.ws.rs' from…
Arnon Rotem-Gal-Oz
  • 25,469
  • 3
  • 45
  • 68
4
votes
2 answers

Maven - Unresolved references to [javax.activation, javax.annotation]

I'm developing web application with OSGI. I have a maven configuration error which I cannot find. This is the complete source code: http://uploading.com/files/8e5c9888/SH_27_test.zip/ This is the POM file:
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
4
votes
2 answers

IPojo - @Reference does not inject service

In one bundle have interface IService, implemented by class ServiceImpl: public interface IService { void doSomething(); } @Component @Provides @Instantiate public class ServiceImpl implements IService { public void doSomething() { …
civilu
  • 1,042
  • 1
  • 8
  • 17
4
votes
1 answer

OSGi, Jersey, and "No message body writer has been found for class"

I am putting together a short little REST demo of OSGi R7, OpenAPI, and jsonSchema. Everything works fine, except Postman is giving the following error: No message body writer has been found for class…
Randy Leonard
  • 655
  • 7
  • 21
4
votes
0 answers

Refresh Package Bundles

I've stumbled upon a problem, that can be summarized as follows: I have an application which is embedded with OSGI. In this OSGI container, I have installed a bundle A of version v1 which registers that service object. This service object is used by…
imcat
  • 158
  • 6
4
votes
1 answer

Tomcat Apache ServiceMix integration issue

We are trying to integrate a web application running on Apache Tomcat 8.5.3 with Apache ServiceMix 7.0.1 using Apache Felix bridge (org.apache.felix.http.bridge-4.0.0.jar). All the steps listed here are done…
Praveen
  • 106
  • 7