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

sendRedirect is not working

I am facing problem while developing filter with day CQ in my project. My code is working with requestDispatcher's forward method. But with response.sendRedirect(), it is not working. if (servletRequest instanceof SlingHttpServletRequest) { …
narsi
  • 183
  • 1
  • 4
  • 14
0
votes
1 answer

Felix: Configuring bundle cache location to a temporary folder

In windows, I would like to set the bundle cache location of felix to %TEMP%/myApp. As far as I know, the configurations.property file that takes org.osgi.framework.storage will only take felix system properties using ${property} notation, but not…
Miquel
  • 15,405
  • 8
  • 54
  • 87
0
votes
1 answer

Deploying Gemini Blueprint to Felix In Glassfish

I have a Java Web Application using Spring and running in Glassfish 3.1.2 and I am trying to convert it to an OSGi architecture. I started by downloading Gemini blueprint and copying the jars to the autodeploy/bundle directory in Glassfish at which…
rogermushroom
  • 5,486
  • 4
  • 42
  • 68
0
votes
1 answer

Android & Felix OSGI - Communication with Android GUI?

We are successfully runnning Apache Felix 4.0.3 on Android (2.1) and can deploy/remove Bundles at runtime. For dependeny management between OSGI Bundles we use the Felix DependenyManager. Now we want to to send data from running OSGI Bundles to the…
Philipp E.
  • 3,296
  • 3
  • 34
  • 52
0
votes
1 answer

setting the ContextPath in Jetty running under ServiceMix (OSGI)

Here is my brief background of environment. I am trying to convert a myapp WAR to an OSGi compliant by making the MANIFEST.MF as shown below, and wanted to deploy this war in ServiceMix an OSGi based container. MANIFEST.MF Manifest-Version:…
0
votes
1 answer

OSGi in Netbeans, ClassCastException when retrieving service

im having a ClassLoader issue. Since im quite an osgi newby, hopefully the answer isn't that hard :) I think it has to do with Compile vs. Runtime libraries. in Netbeans 6.7.1 project properties, the compiletime libs are always propagated to the…
Houtman
  • 2,819
  • 2
  • 24
  • 34
0
votes
2 answers

Felix - how to correctly re-register service on bundle update?

I have some app, what calls some jar library, what calls Felix framework and added some bundles from bundles dir. The code of the "Show Help" button: private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) { …
Arthur
  • 3,253
  • 7
  • 43
  • 75
0
votes
1 answer

mangen adds 'Bundle-ManifestVersion: 1' to manifest, but felix doesn't seem to accept value 1

I've used 'Mangen' to process my jar, which works but it adds the next line to the manifest Bundle-ManifestVersion: 1 after which Felix 1.8.0 complains with -> install file:D:/bundles/osgi_ds_1.jar.new.jar org.osgi.framework.BundleException:…
Houtman
  • 2,819
  • 2
  • 24
  • 34
0
votes
2 answers

NullPointerException when accessing OSGi bundle resources

I am using two OSGi frameworks within a plain Java application. Both frameworks load bundles from a shared directory. In one bundle, I load a file from the resources. I tried different ways e.g.…
user1488793
  • 284
  • 2
  • 14
0
votes
1 answer

ClassCastException with (embedded OSGI)/External launcher

I am using felix for this. For my test, I have just created a simple HelloWorld. Bundle 1 public interface HelloWorldService { public void sayHello(String name); } --------- impl ---------- Bundle 2 Bundle Activator public class…
basu76
  • 441
  • 10
  • 19
0
votes
2 answers

How do i register the OSGIhost jar(itself) with DS?

Im trying to create an application which can fire-up felix, and also publish services to the 'Declarative Services' bundle. But with my 'felix-starter' and services effectively being inside the same jar. i assume the jar containing both the…
Houtman
  • 2,819
  • 2
  • 24
  • 34
0
votes
2 answers

Error on compiling bundle with Maven on context.getBundle(0).adapt(FrameworkWiring.class).getDependencyClosure(bundles)

On bundle compiling with code package ihtika2.mainform; import com.google.code.ihtika.Vars.Ini; import ihtika2.mainform.service.MainFormInterface; import java.util.HashSet; import java.util.Hashtable; import org.osgi.framework.Bundle; import…
Arthur
  • 3,253
  • 7
  • 43
  • 75
0
votes
1 answer

Issue with org.apache.felix:maven-bundle-plugin and Export-Package/Import-Package

I am trying to configure how packages are imported/exported by the maven-bundle-plugin by specifying the * wildcard. The config below results in no package being exported or imported... Anyone has any clue?
balteo
  • 23,602
  • 63
  • 219
  • 412
0
votes
1 answer

HSQLDB bundle in felix org.hsqldb.jdbcDriver not found

I have some code, what loaded: 1) HSQLDB v. 2.2.8 bundle 2) Bundle with service: package ihtika2.i_internalfunctions.service; import com.google.code.ihtika.Vars.Ini; import java.awt.Desktop; import java.io.IOException; import…
Arthur
  • 3,253
  • 7
  • 43
  • 75
0
votes
3 answers

Can I create a transient configuration in OSGi using the ConfigAdmin?

I'd like to create a Configuration object in OSGi, but one that won't be persisted, so it won't be there when the framework is restarted. Similar to START_TRANSIENT for bundles. Some background: I've got an OSGi (Felix) based client side…
Frank Lee
  • 2,728
  • 19
  • 30