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

Netbeans and osgi bundle development

I'm about to star an OSGI project using netbeans 6.8 and felix 2.0.4; can anybody provide me with tips and/or links to get started quickly ? Thanks in advance.
xain
  • 13,159
  • 17
  • 75
  • 119
0
votes
1 answer

Eclipse OSGi SystemBundleActivator vs BundleActivator

I have an OSGi based (Apache Felix) Eclipse project. It depends on org.eclipse.osgi. As soon as I launch it, the following exception occurs: Auto-properties install: file:C:\programs\eclipse\plugins \org.eclipse.osgi_3.9.1.v20140110-1610.jar…
gorootde
  • 4,003
  • 4
  • 41
  • 83
0
votes
0 answers

org.apache.felix.shell.Command and Servicemix

I have implemented a set of "org.apache.felix.shell.Command"s with the purpose of utilizing it in Apache Servicemix. The commands are being registered with "org.osgi.framework.BundleActivator" (Blueprint not involved as it often collides with Spring…
0
votes
1 answer

CQ5. configure classloading. Why does CQ loses class metainformation (annotations)?

We have 2 different OSGI bundles. In first bundle exist class which parses JSON string to MyClass.MyClass annotated by Gson annotations.MyClass located in Second bundle. I have a lot of problem with it. Eventually in debug mode I have noticed…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
2 answers

(Adobe CQ + maven-jspc) How can I ever compile my code if all of my dependencies are provided by an OSGI container at run time?

I'm developing an Adobe CQ application (OSGI) that runs in an Apache Felix environment that provides our JSPs with a huge list of Java packages we can include. I want to pre-compile our JSPs with the maven-jspc-plugin so we can catch compile errors…
AlleyGator
  • 1,266
  • 9
  • 13
0
votes
1 answer

Getting osgi declatative service from activator (same package)

I am newbie to osgi and it may be the reason of such simple question. A have a osgi bundle. Inside I have service,activator and pojo. Instance of pojo I create in activator. How can I pass the reference of pojo to service before anyone uses this…
user2022068
0
votes
1 answer

Call FrameworkWiring.refreshBundles() in Activator stop method

Exported packages remain imported after I uninstall one of my bundle. I understand this is the right behavior, it is well documented here. My question is, it is OK to call FrameworkWiring.refreshBundles(mybundle) in the stop method in my bundle's…
nerd
  • 837
  • 6
  • 21
0
votes
2 answers

How to fix dependency version conflicts?

I have 2 different modules called A and B. I have also another module called C. A uses C version 1.0 B uses C version 2.0 The problem is since C 2.0 is not backward-compatible even though the groupId and artifactId values are same for C 1.0 and C…
0
votes
1 answer

Apache Felix + Pax Web + Primefaces: ClassNotFoundException FacesServlet

I am trying to deploy a simple primefaces (4.0) testapplicationon on the felix framework (4.2.1) with pax web (3.0.5). But I always get an ClassNotFoundException FacesServlet (and ConfigureListener). Although I have the right jar files in…
0
votes
1 answer

Custom OSGi ClassLoader

I'd like to implement my own custom ClassLoader. Basically it should do exactly what the default OSGi ClassLoader does. I am using Karaf/Felix, so in my case that's org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader The reason for…
Frizz
  • 2,524
  • 6
  • 31
  • 45
0
votes
1 answer

Apache Felix: Delete JAR from Load Directory without Container Shutdown

For Felix OSGi, loading bundles automatically using a JAR in the Load directory is a snap; and getting a bundle stopped and uninstalled from Felix works well. But, what if you want to delete the file from the Load directory while the Tomcat / Java…
0
votes
1 answer

Using iPOJO API shows " Cannot create a POJO instance, the POJO constructor cannot be found"

iPOJO API seems complicated to deal with, especially when embedding OSGI framework. After getting done with the class loader issues by keeping the API coding lines in an OSGI bundle, I am here having a new different issue: In my bundle start method,…
Traveling Salesman
  • 2,209
  • 11
  • 46
  • 83
0
votes
3 answers

cannot convert from String to Integer

I have implemented some service which works fine. The service has the following property: @Property(name = MyService.PROXY_PORT, label = "Proxy Port", description = "Proxy Port", value= "8080") private static final String PROXY_PORT =…
Max_Salah
  • 2,407
  • 11
  • 39
  • 68
0
votes
1 answer

JUnit4OSGI with Equinox

I wonder if someone can point me to a good tutorial/sample/best practices about using JUnit4OSGI with Equinox as the OSGI container? I already downloaded JUnit4OSGI and started writing sample test cases, but what I'm looking for are answers for…
Rami
  • 7,162
  • 1
  • 22
  • 19
0
votes
1 answer

OSGi: unable to find UserAdmin in Apache Karaf

I am trying to install and start the Apache Felix implementation of the OSGi UserAdmin interface in Karaf 2.3.3. karaf@root> install mvn:org.apache.felix/org.apache.felix.useradmin/1.0.3 However, the bundle never gets resolved and I get the…