osgi-bundle

java.lang.LinkageError while using JGit and Jsch for Eclipse plugin development

狂风中的少年 提交于 2020-01-06 09:05:40
问题 I am trying to develop an Eclipse plugin. This plugin uses jgit to accecc git repositories over ssh with ubuntu username and password. (Clone git repository over ssh with username and password by Java) Using jgit in this with NetbBeans works just fine. Without a problem it can clone, commit and push projects. However when I move the same code fragment into Eclipse jsch of jgit plugin and the jsch I've added to the project conflicts. If I remove the one I've I added then I cannot compile the

Pax Exam issue with Apache POI wrapped bundle

不想你离开。 提交于 2020-01-03 04:26:04
问题 I have been beating my head against the wall trying to get Apache POI to work within an OSGi bundle. Here is the history of what I have tried with no luck: 1) I initially tried using the pre wrapped Apache Servicemix POI bundle. However this had many dependencies I had to deploy, many of which were not needed. I hit a wall as even after adding Apache POI servicemix (and its dependencies), i was still getting issues with missing classes. 2) Due to the amount of unneeded stuff in the first

FileLocator's method toFileURL ignores empty folders

天大地大妈咪最大 提交于 2020-01-03 01:47:12
问题 With aid of this and this questions I managed to create the most of the desired file structure in a project by copying this from my plugin bundle. URL templatesURL = Activator.getDefault().getBundle().getEntry(TEMPLATES_PATH); File templatesFolder = new File(FileLocator.toFileURL(templatesURL).getPath()); copyFiles(templatesFolder, project, monitor); I have two folders TEMPLATES_PATH + "\test\java" with no files in them. I want these to be created as well, but they don't. Investigations led

List bundle ID's only on servicemix

杀马特。学长 韩版系。学妹 提交于 2020-01-02 12:00:13
问题 I'm using ServiceMix and I was trying to list some bundles and retrieve only there bundle ID. I'm trying to do the following: osgi:list | grep -i | awk xxx I tried to use awk but that's not provided in ServiceMix. I also tried to use shell:exec like this: osgi:list | grep -i | shell:exec awk 'xxx' But that doesn't work either, maybe my approach is completely wrong. Does anybody else have some experience how I could achieve my goal of only retrieving the id's of a bundle? 回答1: You can always

karaf not displaying any error while component factory example

纵饮孤独 提交于 2019-12-31 04:25:08
问题 i have tried component factory example from this link. interface: package com.java.examplefactoryservice; public interface ExampleFactoryService { public void start(); public void stop(); } factory provider: package com.java.examplecomponentfactoryserviceprovider; import java.util.Map; import org.apache.felix.scr.annotations.Activate; import org.apache.felix.scr.annotations.Component; import com.java.examplefactoryservice.ExampleFactoryService; @Component(name =

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

浪子不回头ぞ 提交于 2019-12-29 19:00:06
问题 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 Karaf instance. And it can happen like couple times per hour. The way I'm doing it now is a maven build that creates a JAR bundle and then it's copied into the Karaf's deploy directory. I think that it isn't elegant at all. I was trying to find a way

Extension Library osgi not loading properly

限于喜欢 提交于 2019-12-25 16:38:12
问题 On one of my clients sites they deleted the updatesite.nsf and created a new one (with the same name) installed the latest Extension Library into the updatesite.nsf and signed the content by a person with All Admin Rights. Did: tell HTTP quit load http When it loaded the HTTP the console message is: HTTP JVM: NotesException: Invalid replica id (updatesite.nsf) Shut the server down and restarted it with the same error when it came to load the HTTP. I had something like this happen on a new

Equinox OSGi activating two versions of the same bundle

*爱你&永不变心* 提交于 2019-12-25 06:55:18
问题 I am looking for settung up my RCP and install all of the available applications on it. However; these applications have many internal and external dependencies such as. A -> B [1.0.0, 2.0.0) C -> B [2.0.0, 3.0.0) As a result in order to have both A and C installed on my RCP, I need both versions of B available and running. Assuming that B is not a singleton, what is the behavior of Equinox OSGI? In some places I read that OSGI will catch the latest version and loads that bundle. However, I

Packing multiple OSGi bundles in the same jar

不打扰是莪最后的温柔 提交于 2019-12-25 06:35:44
问题 I am very new to the OSGi platform. Having an OSGi bundle B1 that has a dependency to another bundle B2 , which is very probably not provided by the container, can I package both bundles in the same jar ? If yes: howto do that? what would happen if the jar is installed and the bundle is already installed? 回答1: Yes you can do this... kind of. Normally OSGi bundles are JAR files because they need to have a META-INF/MANIFEST.MF. The OSGi framework cannot directly read your "multi-bundle" JAR.

Packing multiple OSGi bundles in the same jar

a 夏天 提交于 2019-12-25 06:35:02
问题 I am very new to the OSGi platform. Having an OSGi bundle B1 that has a dependency to another bundle B2 , which is very probably not provided by the container, can I package both bundles in the same jar ? If yes: howto do that? what would happen if the jar is installed and the bundle is already installed? 回答1: Yes you can do this... kind of. Normally OSGi bundles are JAR files because they need to have a META-INF/MANIFEST.MF. The OSGi framework cannot directly read your "multi-bundle" JAR.