Questions tagged [osgi-bundle]

OSGi - modularity layer for Java platform.

The OSGi bundle as a unit of modularization that is comprised of Java classes and other resources which together can provide functions to end users.

In other words it is a Java Archive File that contains Java code, resources, and a manifest that describes the bundle and it's dependencies.

Each bundle is a tightly coupled, dynamically loadable collection of classes, jars, and configuration files that explicitly declare their external dependencies (if any).

The bundle is the unit of deployment for an application.

961 questions
32
votes
3 answers

dependencies.dependency.version' is missing error

I am trying to create a bundle using apache maven. When I run mvn clean install command it is giving the below error: dependencies.dependency.version' is missing for javax.servlet:servlet-api.jar I have placed that ‘servlet-api.jar’ inside…
Anderson
  • 1,100
  • 2
  • 13
  • 17
23
votes
3 answers

What is the intended use case for Bundle-Classpath in OSGI bundles

I am trying to understand the intended use case for Bundle-Classpath in OSGI bundles. Here is my understanding, please help me understand if this is correct. Let's say I am working on creating an OSGI bundle which will be deployed in an ecosystem of…
Parag
  • 12,093
  • 16
  • 57
  • 75
22
votes
3 answers

Camel in OSGi Container: Apply InterceptStrategy to all camel contexts

I have several bundles (A, B, and C) deployed to an OSGi container, each containing a CamelContext and some routes. I have another bundle (M) with a CamelContext with a route (for collecting monitoring data) and a InterceptStrategy bean. I would…
VeeArr
  • 6,039
  • 3
  • 24
  • 45
21
votes
4 answers

Managing OSGi Dependency Hell

UPDATE 2: Since my blog is a bit dead the links got degraded so you can view the articles…
PedroD
  • 5,670
  • 12
  • 46
  • 84
19
votes
2 answers

Difference between OSGi services and REST microservices

OSGi talks about microservices and the press talks about microservices. However, they do not seem to be the same. What is the difference between these microservices.
sdindiver
  • 491
  • 1
  • 5
  • 19
19
votes
1 answer

How to work with frequent local snapshot bundle deployments on Karaf?

I decided to build an application on top of OSGI and Karaf - I really like this stuff. However, I'm struggling a bit with a daily deployment on my local, development machine. I mean.. I make a change and then I would like to test it on my local…
Michal Chudy
  • 1,883
  • 2
  • 21
  • 41
17
votes
14 answers

The activator for bundle is invalid

I'm trying to create a simple plugin in eclipse. When I run the application, I see this error in log file: org.osgi.framework.BundleException : The activator for bundle org.x.y.Activator for bundle org.x.y is invalid. Do you have any idea about…
penguru
  • 4,342
  • 11
  • 46
  • 56
14
votes
4 answers

Non-osgi library usage in an osgi application

Is it possible to use a non-osgi library with an OSGi application? For an example, I'm developing a semantic based search engine, and I am using a third party Natural Language Processing library for it…
Izza
  • 2,389
  • 8
  • 38
  • 60
11
votes
4 answers

Convert existing JAR to OSGi-bundle

I have a JAR file that I need to convert to an OSGi bundle. I do not have the original source code for the JAR file. I tried to use the answers from: How to create OSGi bundle from jar library? However, they are pretty outdated. Edit: I need to…
CodeTower
  • 6,293
  • 5
  • 30
  • 54
8
votes
2 answers

How to include resource file into osgi bundle from jar dependency with bnd/maven-bundle-plugin?

I'm using maven-bundle-plugin (bnd effectively). It's straightforward to include a resource file from sources. For example, a resource file (src/main/resources/some.xml) is moved under target directory (target/classes/some.xml) during build time and…
uvsmtid
  • 4,187
  • 4
  • 38
  • 64
8
votes
5 answers

org.osgi.framework.BundleException: Could not resolve module

I'm trying to setup my eclipse plugin development target and receive the following error multiple times: !ENTRY org.eclipse.e4.ui.css.swt 4 0 2015-01-30 15:15:06.879 !MESSAGE FrameworkEvent ERROR !STACK 0 org.osgi.framework.BundleException: Could…
Dreiven
  • 687
  • 3
  • 9
  • 22
7
votes
1 answer

Best way to debug OSGI bundles in Karaf

To date, I've been successful at building OSGI bundles, and invoking web services defined in these bundles via Apache CXF. Next, I'd like to be able to set breakpoints in my bundles as they are executed within the Karaf environment. I've looked…
Randy Leonard
  • 655
  • 7
  • 21
7
votes
1 answer

Is it possible to use wildcards in org.osgi.framework.system.packages.extra in Felix?

Is it possible to use wildcards in org.osgi.framework.system.packages.extra in Felix? For example, I want to export to the org.osgi.framework.system.packages.extra packages like my.package.* .
Arthur
  • 3,253
  • 7
  • 43
  • 75
7
votes
1 answer

ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console

I've log4j-api v2.0.2 and log4j-core v2.0.2 in the pom.xml of a fragment project and trying to build a project thats OSGI compliant. I get the following message "ERROR StatusLogger Log4j2 could not find a logging implementation. Please add…
SDS
  • 828
  • 3
  • 17
  • 35
7
votes
1 answer

Unable to resolve 1.0: missing requirement [1.0] osgi.wiring.package; (&(osgi.wiring.package=

I am trying to start one of my bundles, but as soon as I start it, I get the below exception. I am not sure what the problem is. org.osgi.framework.BundleException: Unresolved constraint in bundle GoldeneyeModellingFramework [1]: Unable to resolve…
AKIWEB
  • 19,008
  • 67
  • 180
  • 294
1
2 3
64 65