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

how does system bundle has access to system packages?

I'm exploring how OSGI is implemented for the last couple of weeks. I know that each bundle uses its own class loader to load its classes. As part of my investigation, I understood that parent of every bundle's class loader is null i.e boot class…
6
votes
4 answers

java.lang.NoClassDefFoundError on OSGi

I have a bundle, with an activator declared. This activator create a JFrame and show it. Running on Eclipse as Plugin project it works fine. When I put on Felix it doesn't work anymore. It shows: java.lang.NoClassDefFoundError:…
John John Pichler
  • 4,427
  • 8
  • 43
  • 72
6
votes
0 answers

Why do't the resolver threads shutdown in apache Felix

I'm trying to embed Felix in Embedded Tomcat. Everything works fine. However when shutting down the Felix framework (have deployed SCR, cm, event admin, and metatype services) it will give me a framework shutdown event. But the threads is still…
Mario Toffia
  • 510
  • 5
  • 16
6
votes
6 answers

OSGI Beginners tutorials are outdated. Is there a new standard?

I have been trying to start with studying OSGI for quiet a few days now. I've tried many tutorials to work on eclipse especially to start with apache felix or Equinox but the step by step tutorials never take me to the end of creating even one…
Excite
  • 484
  • 1
  • 5
  • 19
6
votes
1 answer

How to start and use Apache Felix from code?

I can't find information about starting and using Apache Felix from code. I want do things which I am able (or unable ;) ) to do with Apache Felix's Shell. For example, how do I start a module? Please help.
java.is.for.desktop
  • 10,748
  • 12
  • 69
  • 103
6
votes
1 answer

How to change the default command scope in the Felix gogo shell?

When you enter a command into the gogo shell, it looks first in the default scope for a match for that command. How do you configure what this default scope is? For example, if you start up the Felix framework with gogo, it uses the felix scope…
Lindsay Smith
  • 115
  • 2
  • 8
6
votes
4 answers

REST client inside of OSGi application

I need to integrate a REST client into an existing OSGi application implemented using Apache Felix. The REST service is based on RESTeasy implementation (version 2.3.2.Final) of JAX-RS. I created a separate bundle with clients' dependencies,…
Alex Fedulov
  • 1,442
  • 17
  • 26
6
votes
3 answers

Apache Felix for desktop application

I work from several months with Apache Felix and Glassfish. I can create simple Web Applications. Now I have to create Java daemon based on OSGI architecture. Is there any good tutorial with example code that can help to learn Apache Felix for Java…
user1285928
  • 1,328
  • 29
  • 98
  • 147
6
votes
4 answers

getting started with osgi + felix

Which packages of Felix do I need to get started? There are a zillion of them on the downloads page. (p.s. is the name a reference to the Odd Couple + in contrast to OSGI's "Oscar" reference framework? this occurred to me after reading one of the…
Jason S
  • 184,598
  • 164
  • 608
  • 970
6
votes
1 answer

Run Apache Felix 4.0.2 in IntelliJ IDEA 11

According to this post, IDEA uses Osmorc to run OSGi frameworks. It, in turn, uses Pax Runner to launch different framework implementations. The toolchain in IDEA 11 can only run Apache Felix up to 3.0.2, but I have to run version 4.0.2. Is it…
frm
  • 3,346
  • 1
  • 21
  • 21
5
votes
2 answers

Multiple class loaders in the same OSGI bundle resulting in class cast exceptions

Sometimes, after we deploy our application and bundles are being uninstalled and installed, we are getting class cast exceptions where class A cannot be cast to class A. The problem is that the class loader of an instance that have already been in…
5
votes
3 answers

Build Failure: Version increase required: Failed to execute goal org.apache.felix:maven-bundle-plugin:3.0.1:baseline

Below is the error i am getting when i am adding any new method to existing code (especially when i am adding any method to interface or class) --- animal-sniffer-maven-plugin:1.15:check (default) @ deepser --- [INFO] Checking unresolved references…
KCS
  • 2,937
  • 4
  • 22
  • 32
5
votes
3 answers

OSGI @Component annotation does not include references required by the base class while extending an existing OSGI service

I'm trying to extend an OSGI service. The OSGI service that is being extended includes some references and properties. I'm using the new org.osgi.service.component.annotations package. The meta XML generated by the annotations processor of OSGi R6…
Sharath Madappa
  • 3,393
  • 1
  • 24
  • 41
5
votes
1 answer

How to AOP aspectj in OSGi with Apache Felix

I'm currently working on an OSGi project. Without many experiences in AOP combined with OSGi, I would like to know how to best do AOP in an OSGi environment? We have implemented the AOP scenario to create a console that intercept the call to a…
freedomind
  • 51
  • 2
5
votes
1 answer

OSGi - What does system.bundle mean?

I am new to OSGi. I'm using Apache felix in Jboss AS 7.1 for OSGi container. On accessing 'localhost:8090/system/console' I can find the list of bundles that are installed. When I check a bundle's import packages, I can find few are imported from…
SDJ
  • 899
  • 1
  • 7
  • 14