osgi

A cycle was detected in the build path of project xxx - Build Path Problem

别来无恙 提交于 2019-12-18 10:12:26
问题 I'm in the process of converting my projects to OSGI bundles using maven and eclipse. Maven builds the stuff just fine, only I get the above error now within Eclipse. How can I find out which project causes this? Is there a special view or something? How can this happen, I would expect that maven can detect cyclic dependencies as well? Update Ok, I found something here and here Could this be caused by the felix maven-bundle-plugin which does for each export also an import? 回答1: Mark circular

OSGi: What are the differences between Apache Felix and Apache Karaf?

让人想犯罪 __ 提交于 2019-12-18 09:57:15
问题 Apache Karaf is a sub project of Apache Felix. It is defined as "a lightweight OSGi container". I don't understand when should I use the heavyweight and when to use the lightweight. Their site doesn't explain this too much. 回答1: The 'lightweight OSGi container' label is contrasting Karaf with more feature rich OSGi containers, not with Felix. To quote Guillaume Nodet (Karaf's author) from here: Felix is just the OSGi core runtime. Karaf provides a "distribution" based on Felix by adding other

How to convert old “plugin.xml” to new “manifest.mf” file?

落花浮王杯 提交于 2019-12-18 07:21:00
问题 How to convert plugin.xml file to manifest.mf file as some tags like: <runtime> <library name="aaa.jar"> <export name="*"/> </library> <runtime> are seems to be ignored. Here is some correspondence in the next document, but far from complete reference. http://www.eclipse.org/eclipse/platform-core/runtime/adoption.html 回答1: Open the file in the plugin.xml editor. On the Overview Tab>Plug-in Content section there should be a link, " ..., create an OSGi manifest " The OSGi manifest is a set of

Eclipse RCP: Target platform - Eclipse vs. Equinox?

微笑、不失礼 提交于 2019-12-18 04:52:47
问题 I'm just starting with OSGi and Eclipse RCP. Could someone explain to me the difference between "Eclipse" and "Equinox" as the target platform, when creating a new eclipse plugin project? I still know that Equinox is Eclipse's implementation of OSGi. I read in some articles that eclipse rcp is also based on Equinox. So where is the difference between the target platform you have to choose in a new Eclipse Plugin Project? Best regards 回答1: It is about the environement in which the module you

Fatal signal 7 (SIGBUS) at 0x00000000 (code=2)

隐身守侯 提交于 2019-12-18 04:42:30
问题 While using a OSGi Platform on Android i got this errormsg: Fatal signal 7 (SIGBUS) at 0x595302e0 (code=2) I don't think that my app needs that much space in memory or need a lot of computation power. Its just the OSGi Platform with 20 Bundles. My app is always restarting after that. Any ideas ? 回答1: Even I too found a similar problem and happens to be (code=128) with about fault. Seems to be a data alignment error. To solve this issue, I tried putting a code something like this: *Data = (

Loading of OSGi bundle dynamically from a file system

安稳与你 提交于 2019-12-18 03:48:32
问题 I have a modular application which uses OSGi framework. Here I'm using org.eclipse.equinox.common_3.4.0 OSGi container. So now the application is already running with all the osgi bundles installed and active and I am displaying all the active OSGi bundles on the UI, by looping though a hash map, based on some action. Now the requirement is, while the application is already running, I want to instal a new OSGi bundle, from a file system, by giving this new bundle to the application's OSGi

Should I use POM first or MANIFEST first when developing OSGi application with Maven?

不羁的心 提交于 2019-12-17 22:40:16
问题 There are two main approaches when developing an OSGi application with Maven: POM-first and MANIFEST first. I'm looking for an answer that is in a form of a table that shows pros and cons of each method. To be more specific, I would also like to know how it relates to: Maturity of toolset Vendor independence Development ease (which includes finding people who can do the development on the tooling) Compatibility Avoiding ClassNotFound Avoiding manual work 回答1: At present this is what I can

java.util.NoSuchElementException while starting an OSGi framework programatically

眉间皱痕 提交于 2019-12-17 21:32:20
问题 I am trying to programatically start an OSGi framework (preferably Equinox) from Java and then load up any bundles. So I was going through this article which says how to do that. But I am getting java.util.NoSuchElementException everytime at the below line everytime ServiceLoader.load(FrameworkFactory.class).iterator().next(); Below is the code- import java.io.File; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import java.util.ServiceLoader; import java.util

How to compile mavenized OSGi 4.3 bundle with OpenJDK 7?

ⅰ亾dé卋堺 提交于 2019-12-17 19:39:58
问题 i am trying to compile my OSGi bundle against OSGi specification 4.3 using OpenJDK7 but i am getting error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5:compile (default-compile) on project example: Compilation failure [ERROR] /tmp/baka/example/src/main/java/org/example/Activator.java:[14,24] error: type ServiceReference does not take parameters here is my Activator.java: package org.example; import org.osgi.framework.BundleActivator; import org.osgi

Full Android support for OSGi bundles [closed]

二次信任 提交于 2019-12-17 17:26:47
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago . This topic explains how you can transform an OSGI framework to run on android. Then it gives tips to convert android packages as OSGI bundles capable of calling android API. At the current stage, the only thing these Android OSGI bundles cannot do is manipulate activities and use resources and