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
152
votes
13 answers

Reading my own Jar's Manifest

I need to read the Manifest file, which delivered my class, but when I use: getClass().getClassLoader().getResources(...) I get the MANIFEST from the first .jar loaded into the Java Runtime. My app will be running from an applet or a webstart, so I…
Houtman
  • 2,819
  • 2
  • 24
  • 34
151
votes
1 answer

Why are uses constraints violated when both chains end in the same bundle?

I have four bundles, each containing only a manifest. The bundles are app which imports com.example.foo.fragment and com.example.bar foo which exports com.example.foo;uses:=com.example.foo.cfg foo.fragment which is a fragment attached to foo that…
Emil Lundberg
  • 7,268
  • 6
  • 37
  • 53
142
votes
3 answers

OSGi: What are the differences between Apache Felix and Apache Karaf?

Apache Karaf is a sub project of Apache Felix. It is defined as "a lightweight OSGi container". I don't understand when should I use the heavyweight and when to use the lightweight. Their site doesn't explain this too much.
GabiMe
  • 18,105
  • 28
  • 76
  • 113
79
votes
3 answers

What exactly is Apache Karaf?

I am a little bit confused about what Apache Karaf exactly is. Can you say that Apache Karaf includes, amongst other things: Apache Felix (which is an implementation of the OSGi 4.2 framework) Apache Aries (which is an implementation of the…
Frizz
  • 2,524
  • 6
  • 31
  • 45
55
votes
10 answers

Why can't JAXB find my jaxb.index when running inside Apache Felix?

It's right there, in the package that it should be indexing. Still, when I call JAXBContext jc = JAXBContext.newInstance("my.package.name"); I get a JAXBException saying that "my.package.name" doesnt contain ObjectFactory.class or…
Hanno Fietz
  • 30,799
  • 47
  • 148
  • 234
38
votes
6 answers

Dependency Injection in OSGI environments

First some background: I'm working on some webapp prototype code based on Apache Sling which is OSGI based and runs on Apache Felix. I'm still relatively new to OSGI even though I think I've grasped most concepts by now. However, what puzzles me is…
ilikeorangutans
  • 1,753
  • 1
  • 11
  • 14
37
votes
4 answers

Scala in OSGI container?

How can I code my bundle in Scala and then deploy it into OSGI container? Do I compile it into "java" first or can i deploy scala straight into OSGI and use some kind of bundles to recognize it? Any pointers would be great. Currently I am using…
Andriy Drozdyuk
  • 58,435
  • 50
  • 171
  • 272
28
votes
2 answers

Trouble understanding the whole OSGi web eco system

I am pretty new to the whole Java and OSGi world and I have trouble understanding the eco system of a OSGi web application. To be more precise I am at the moment trying to understand how all the parts of the eco system are related to each…
Jens
  • 20,533
  • 11
  • 60
  • 86
28
votes
3 answers

What is the purpose behind building of Apache Sling, Felix, Jackrabbit projects

I am asking a very basic question here. Question is I am using Apache Sling , Apache Jackrabbit, Apache Felix in my project as said by my instructor. I am trying to understand why these software is developed by Apache. I tried a lot on the…
devsda
  • 4,112
  • 9
  • 50
  • 87
17
votes
2 answers

OSGi memory management

I have theoretical question about OSGi memory management. Let’s say we have some OSGi container (Felix for instance), and let’s suppose I created some bundle with memory leak. And here are some questions that I have: Is there any way to limit…
Sebastian Łaskawiec
  • 2,667
  • 15
  • 33
17
votes
3 answers

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 WARNING: An illegal reflective access operation has occurred WARNING: Illegal…
Pavel_K
  • 10,748
  • 13
  • 73
  • 186
16
votes
3 answers

How do I access a file inside an OSGi bundle?

I am new to OSGi and created an OSGi-bundle which I run in the Apache Felix OSGi-container. There is a file resource contained in the bundle, which I need to pass to a method as a java.io.File. To instantiate a File-object, either an URI in the…
mtsz
  • 2,725
  • 7
  • 28
  • 41
15
votes
1 answer

OSGi and Transitive Dependencies

I’m using Felix Framework for my OSGi project, but I’ve came across a severe problem concerning third party dependencies. I’m using eclipse and maven-bundle-plugin to generate my bundles from the sources and the MANIFEST.MF from the POM.XML file. So…
PedroD
  • 5,670
  • 12
  • 46
  • 84
14
votes
1 answer

switching to gradle from maven to manage a osgi big project (>200 bundles)

We have a big (~215 bundles and counting) osgi (felix+springdm) project, build with maven and maven-osgi plugin. We've several problems with maven way: 1. submodules pom have to inherit from parent pom to take advantage of common variables and…
Uberto
  • 2,712
  • 3
  • 25
  • 27
12
votes
3 answers

Fatal signal 7 (SIGBUS) at 0x00000000 (code=2)

While using a OSGi Platform on Android i got this errormsg: Fatal signal 7 (SIGBUS) at 0x595302e0 (code=2) I don't think that my app needs that much space in memory or need a lot of computation power. Its just the OSGi Platform with 20 Bundles. My…
Rob Anderson
  • 2,377
  • 3
  • 22
  • 31
1
2 3
61 62