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

Adobe CQ / AEM akka integration

I was playing around adobe cq and scala and as a result I was able to write scala service and deploy it to osgi container. Afterwards I tried to integrate akka with following tutorial and I get the following error 28.08.2014 12:23:45.656 *ERROR*…
yurko
  • 1,502
  • 1
  • 13
  • 14
0
votes
1 answer

Is it possible to start pax-run without the Gogo shell?

I'm trying to deploy an application which is provisioned with pax-run. However, it seems that it insists on installing the Gogo bundles. Since when the application is executed it does not get a terminal allocated, Gogo closes and stops the…
Robert Munteanu
  • 67,031
  • 36
  • 206
  • 278
0
votes
1 answer

Embedded Tomcat in OSGi Felix Container

I have used an embedded tomcat 7.0.53 in Eclipse to run the gateway at localhost. It works well when I run the gateway in Eclipse. Now I want to run the gateway in a OSGi Felix container, but I got a tomcat error: LifeCycleException. Here is the…
luthienly
  • 1
  • 2
0
votes
1 answer

IPOJO logging warning when shutting down

When the application is shutting down and some @Requires services are shutdown, ipojo is logging an exception "The dependency is not optional, however no service object can be injected in A" public class Main { @Requires(id = "A", proxy =…
AdrianS
  • 1,980
  • 7
  • 33
  • 51
0
votes
1 answer

Old bundle not being deleted after update and refresh - (re)moved packages

I have a bundle com.elsten.bliss.platform. Here are the wirings before update: g! inspect capability osgi.wiring.package 59 com.elsten.bliss.platform [59] provides: ---------------------------------------- osgi.wiring.package;…
Dan Gravell
  • 7,855
  • 7
  • 41
  • 64
0
votes
1 answer

Getting Jar file after its OSGi related URI

In a specific point in my deployed OSGi bundle, I get a jar file URI in OSGi standard format, jar file that I need to parse for entity classes. So, having the URI like: bundle://233.0:1, would it be possible to get the jar file so that, I will be…
artaxerxe
  • 6,281
  • 21
  • 68
  • 106
0
votes
2 answers

Bundle not resolving while creating Mongodb OSGI Bundle using Amdatu

I am creating OSGi bundle for Mongodb using org.amdatu.mongo service factory following this guide I am using Gridfs for the storage purpose. I am using eclipse Bndtool plugin. for this purpose I have created an Interface Named AgendaMongo and an…
Root
  • 955
  • 1
  • 16
  • 39
0
votes
0 answers

Apache Felix: inherit import package org.osgi.service.cm

I have one bundle which has Import-Package org.osgi.service.cm. In this bundle there is only an interface ConfigurationInterface, that declares a couple of methods, one throws an org.osgi.service.cm.ConfigurationException. This bundle exports only…
0
votes
1 answer

How to make Pax logging to use the loggback config instead of the standard log4j properties like syntax

I have some services in tomcat and trying to move to apache karaf. I have a existing service which uses logback for logging configuration. I tried to make same configuration in osgi, but could not achieve. Any please let me know what could be the…
Srikanth Hugar
  • 385
  • 5
  • 22
0
votes
1 answer

Servlet registration in OSGi fails with custom org.osgi.service.http.HttpContext object

I am working on servlet registration in osgi bundle.To support MIME mapping I want to write custom implementation of HttpContext and want HttpService to call it instead of default HttpContext. public final class Activator implements…
WillMcavoy
  • 1,795
  • 4
  • 22
  • 34
0
votes
1 answer

OSGi to solve pluggable architecture

I have a Java app (that should deploy as an executable JAR) that takes a JSON file as input, something like this: "appConfig": { "fizzClass": "com.me.myorg.FizzImpl" // Lots of other configs } The config allows a user to specify what…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
0
votes
1 answer

spring based bundle in apache felix osgi

I am working one POC where I want to create plugin based web application. Main application will have all the spring mvc context. Plugins can write spring controllers but they cannot have their own spring context file. What I want is when plugin is…
Rishi Saraf
  • 1,644
  • 2
  • 14
  • 27
0
votes
1 answer

ClassNotFoundException: org.apache.felix.dm.DependencyActivatorBase with Pax Exam

I am using Pax Exam (3.5.0) for my OSGi unit tests. I have created a test but when I run it I get this stacktrace: java.lang.NoClassDefFoundError: org/apache/felix/dm/DependencyActivatorBase at java.lang.ClassLoader.defineClass1(Native Method) …
Tuno
  • 1,234
  • 1
  • 13
  • 22
0
votes
2 answers

java.lang.AbstractMethodError/ClassCastException when creating integration test for osgi using felix, osgi and PaxRunner Framework

I am trying to create integration test for my bundle. basically I want to mimic the setup I have in normal web app project(wherein the test are in src/test folder) I am almost there except that I have exception when the bundle tries to…
0
votes
1 answer

Configure classpath for external jars

I would like to configure external jars into java classpath. Is there any way to configure this into Apache Felix configuration file.
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808