osgi-bundle

OSGI Bundle Error - ojdbc6.jar

走远了吗. 提交于 2019-12-06 12:19:09
问题 I am trying to convert my ojdbc6.jar into a bundle as mentioned in the steps here http://fusesource.com/docs/esb/4.2/deploy_osgi/DeployJar-Convert.html Unfortunately I am getting an error as below. Kindly help One error 1 : Unresolved references to [com.sun.security.auth.module, javax.resource, java x.resource.spi, javax.resource.spi.endpoint, javax.resource.spi.security, oracle .i18n.text, oracle.i18n.text.converter, oracle.ons, oracle.security.pki] by clas s(es) on the Bundle-Classpath[Jar

Apache POI usage with Apache Felix

谁都会走 提交于 2019-12-06 11:35:45
I'm trying to import Apache POI to Atlassian Jira Plugin for reading excel files. At the beginning, I started with adding just <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>${poi.version}</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml-schemas</artifactId> <version>${poi.version}</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>${poi.version}</version> </dependency> poi.version is 3.14 then when I started the plugin it gave Unresolved constraint

OSGI Bundle Error - ojdbc6.jar

廉价感情. 提交于 2019-12-04 19:54:38
I am trying to convert my ojdbc6.jar into a bundle as mentioned in the steps here http://fusesource.com/docs/esb/4.2/deploy_osgi/DeployJar-Convert.html Unfortunately I am getting an error as below. Kindly help One error 1 : Unresolved references to [com.sun.security.auth.module, javax.resource, java x.resource.spi, javax.resource.spi.endpoint, javax.resource.spi.security, oracle .i18n.text, oracle.i18n.text.converter, oracle.ons, oracle.security.pki] by clas s(es) on the Bundle-Classpath[Jar:OJDBC_PLUGIIN_1.0.0.jar]: [oracle/jdbc/connect or/OracleResourceAdapter.class, oracle/jdbc/pool

OSGi how to run mutliple instances of one service

非 Y 不嫁゛ 提交于 2019-12-04 19:48:31
Is it possible to run multiple instance of the same service in the osgi framework? More specific, I need to start multiple instances of a service, but each instance should recieve different parameters. This is because the services have similar functionality. But instead of writing a service for every variation, I want to reuse one implementing class. I've already found the registerService method in the framework api. ServiceRegistration<?> registration = bundlecontext.registerService( className, class, null); however, i seem to create only one instance of each class. Is there a workaround for

How to include a jar of dependency in an OSGi bundle using maven bundle plugin?

与世无争的帅哥 提交于 2019-12-04 11:31:21
I have an OSGi compliant bundle(jar), in which I want to add a jar of a dependency. The dependecy I want to add is of a Database Driver. That jar is not present in the lib folder of the Karaf container which I am using, and there is no way of adding it there manually. I have access only to the deploy folder, where I can deploy my bundles. I am using maven bundle plugin to package my bundle. So, I wanted to know whether there is a way to add the dependency jar in my bundle. Currently, I am adding the jar manually to the bundle by opening the bundle in 7zip and adding the jar by copying it in

Spring component-scan broken in osgi container

*爱你&永不变心* 提交于 2019-12-04 08:37:15
I'm trying to integrate spring DI into an existing jaxws project. I've got this working locally on tomcat but when I deploy to the remote container it doesn't appear to do the classpath scanning. I can see in the logs that on tomcat it registers my @Components as beans but on the remote server they're not mentioned at all. What I do see is the stacktrace below. It looks like it's down to the quirky web container I have to use. It's the "integrated application server for IBM i". http://www-03.ibm.com/systems/i/software/ias/ I believe this is built on the eclipse architecture and when you

Camel in OSGi Container: Apply InterceptStrategy to all camel contexts

隐身守侯 提交于 2019-12-03 22:18:48
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 like the InterceptStrategy bean from M to automatically apply to all of the other CamelContext s in the container (i.e., those in A, B, and C), without having to modify the other bundles. Ultimately, the goal is to wiretap data from each CamelContext into the route in M, without having to make any changes to A, B, or C to explicitly route the Exchange

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

倾然丶 夕夏残阳落幕 提交于 2019-12-03 21:25:36
问题 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 all the required dependencies by using the following Plugin. <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>1.4.0</version> <extensions>true</extensions> <configuration> <manifestLocation>META-INF<

Android Activity in OSGI Bundle

独自空忆成欢 提交于 2019-11-30 15:52:11
I am working on developing OSGI bundles that have a full support for android. So far, by my previous questions, I was able to use android API inside OSGI bundle. It works fine and I tried it. I am using Felix framework. However, I am stuck now at the mission of making an OSGI bundle to have an android activity and to start that activity. I also need these activities to be able to request permissions so I guess I will need an AndroidManifest.xml in the OSGI bundle. While doing a research, I was able to find only one person describing his experience in achieving this. Unfortunately, the steps he

Non-osgi library usage in an osgi application

喜你入骨 提交于 2019-11-30 05:15:15
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 ( http://wiki.opencog.org/w/RelEx_Dependency_Relationship_Extractor ). Is it possible to interface such a library which doesn't suport OSGi, as a couple of jar files, with my OSGi application? Piotr As it was written in previous answers you have two options if you want to use additional libraries in your bundles: embedding library jars in a bundle in which it will be used, creating a valid OSGi