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

How do I start a specific bundle in my own OSGi application deployed in WAS 8.0?

I have quite a sophisticated OSGi application which uses Declarative Services and was designed to be deployed in Equinox. Now the task is to make this application be deployable in WAS 8. The first try was quite pragmatic: I have deployed an EAR…
5
votes
1 answer

osgi blueprint how to read resource file in bundle

I use osgi and blueprint, i search how to read file in my bundle? Such as : mybundle file.json OSGI-INF/blueprint/blueprint.xml WEB-INF * I want read file.json in myservice.
timactive
  • 789
  • 6
  • 27
5
votes
1 answer

How to add a custom osgi bundle as new dependency?

I need to process xlsx Excel documents in an OSGi bundle, but org.apache.servicemix.bundles.poi lacks classes to use 2007 and older formats. I've created an OSGi bundle (jar file) with full apache poi (including ooxml classes that are absent in…
Jack
  • 435
  • 2
  • 6
  • 16
4
votes
5 answers

How to fix org.osgi.framework.BundleException: Unable to cache bundle?

I'm working with an OSGi BundleActivator code. When I'm trying to install it using Apache Karaf I always get a Unable to install bundle mvn:com.baeldung/osgi-intro-sample-activator/1.0-SNAPSHOT: org.osgi.framework.BundleException: Unable to cache…
Bogdan Salyp
  • 43
  • 1
  • 7
4
votes
2 answers

Unresolved requirement: osgi.component

I'm trying to develop onto Karaf an OSGi WAB containing a REST API and a call from a custom-made service. However, for some weird reason, the OSGi framework complains about an unsatisfied capability, osgi.component. I would like to know: How can I…
Koldar
  • 1,317
  • 15
  • 35
4
votes
1 answer

How to Invoke an OSGi Service from outside the OSGi Framework.?

I've planning to develop a web application using Java and based on some MVC framework. This application should support plugins. So, I planning to create plugin using OSGI container(apache felix) and expose plugin as a service (using service…
parthiban
  • 51
  • 2
4
votes
2 answers

OSGI bundle of JARs with maven-bundle-plugin

I am trying to embed some JARs into an OSGI bundle which do not have a corresponding OSGI bundle so that other OSGI bundles can reference them. I have followed many suggestions but nothing worked. My last attempt is based on: for…
OSGI Java
  • 545
  • 7
  • 21
4
votes
4 answers

Make maven dependency OSGi ready

Im trying to connect database in JFUSE project. I've included com.mysql.jdbc dependency in pom file and project build runs fine. But then I encounter this annoying problem. When I try to install the bundle to OSGi, installation failed with following…
Crawler
  • 1,988
  • 3
  • 21
  • 42
4
votes
1 answer

Upgrade Camel on Servicemix

I've version of servicemix: 4.3.1-fuse-03.01 with Camel 2.6.0-fuse-03-01. I would like to upgrade Camel to version 2.8.0. Is it any easy and SAFE way to do this without upgrading whole Servicemix?
Marcin Erbel
  • 1,597
  • 6
  • 32
  • 51
4
votes
2 answers

How to add jar Non-osgi jar files as dependency to eclipse plugin?

I am developing an eclipse plugin using tycho build ,It needs some non-osgi jar files as dependency.when I add the dependency in my pom file ,It does not take the dependency during maven build. So, I have tried to make a osgi bundle which contains…
Obuli Sundar
  • 566
  • 7
  • 26
4
votes
1 answer

How to do the Rewiring Framework after OSGi bundle update

I have a equinox based application. I need to update a bundle and rewire the OSGi bundles corresponding to the updated bundle. I updated the bundle using, bundle.update(new FileInputStream(new File(filePath))); I need to refresh the affected…
Aruna Karunarathna
  • 981
  • 2
  • 23
  • 55
4
votes
2 answers

OSGI Felix not exporting the src/main/resource files

As we know that by defaul osgi export-package only export the package from src/main/java folder, but i need the other file form src/main/resource also to be exported to use by other projects. Below is the example of my ProjectA (packaging type is…
vashishth
  • 2,751
  • 4
  • 38
  • 68
4
votes
1 answer

How can we update any bundle in OSGI during runtime

In OSGI, we can update, activate, deactivate bundles during run time. But I didn't understand how it is possible because some other may use functionality of this bundle. Why not this happening crashes the application ? Normally, in JVM, whenever it…
devsda
  • 4,112
  • 9
  • 50
  • 87
4
votes
1 answer

how to include third parties library in maven-bundle-plugin(v2.3.7)

I am using servicemix(v4.5.3) and want to deploy my application(depends upon hundreds of third party library) as bundle via maven-bundle-plugin. Below is my pom.xml org.apache.felix
4
votes
1 answer

Failed to create route due to: No component found with scheme: activemq

Servicemix expert need some help. I have a web service deployed in apache servicemix. This web service I hit from web application that is deploying on tomcat on same machine. I want to send custom message from web service to activemq:queue. web…
ved
  • 909
  • 2
  • 17
  • 43
1 2
3
64 65