osgi

Eclipse RCP: Target platform - Eclipse vs. Equinox?

Deadly 提交于 2019-11-29 07:05:24
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 It is about the environement in which the module you will be creating will run: see this Vogalla's RCP Tutorial Vogella's OSGi with Eclipse Equinox Eclipse

The activator for bundle is invalid

喜夏-厌秋 提交于 2019-11-29 06:20:50
问题 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 this error? 回答1: Check your build.properties section If it doesn't properly specify what's supposed to be in the final binary result, it will not work. Check the .class files are where the MANIFEST.MF says they will be. from EclipseZone, another reason

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

╄→尐↘猪︶ㄣ 提交于 2019-11-29 06:06:52
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 ? 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 = (*Data)(Temp+i) becomes Temp1 = *(Temp+i); *Data = Temp1; Before and into the function call and passed back the

Non-osgi library usage in an osgi application

假装没事ソ 提交于 2019-11-29 02:46:25
问题 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? 回答1: As it was written in previous answers you have two options if you want to use additional libraries

Loading of OSGi bundle dynamically from a file system

旧时模样 提交于 2019-11-29 02:45:12
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 container so that it will start this bundle. How do I achieve this ? I have tried reading the OSGi bundle

Which version of OSGi is implemented by which version of Eclipse/Equinox?

大憨熊 提交于 2019-11-29 02:16:43
问题 We are looking for a table which matches Eclipse/Equinox release versions to the corresponding OSGi Service Platform specification release version. Eclipse/Equinox wiki doesn't have any info on this in a structured form. 回答1: The release archaeology is quite hard. So far we have these versions collected: Year | Eclipse | Release | OSGi spec | Equinox implementation version | version | name | version | org.eclipse.osgi | org.eclipse.osgi.services -----|---------|----------|-----------|--------

When is an OSGi fragment attached to host?

不羁岁月 提交于 2019-11-29 01:37:28
I have an OSGi bundle with persistence service (using hibernate ) and a fragment, which contains configuration (xml file). In bundle's activator, I'm loading the configuration using: @Override public void start(BundleContext ctx) { URL url = ctx.getBundle().getResource("hibernate.cfg.xml"); SessionFactory sessionFactory = new AnnotationConfiguration().configure(url).buildSessionFactory(); } but sometimes, the URL is null. When I've tried to list all available URL s (using findEntries method), it appeared that the bundle's own ones are available always, but the fragment ones only sometimes. I'm

How to get classloader for a bundle in equinox?

≡放荡痞女 提交于 2019-11-29 01:33:49
I have read a lot of equinox code for this, but still can't figure out a non-hacky way of getting the classloader for a osgi bundle in eclipse equinox setup. Is there one? The short answer (certainly for OSGi 4.1, not sure of 4.2) is you can't get a bundle's classloader. However the Bundle interface exposes a loadClass() method and this would allow you to write a classloader that wraps the bundle API and delegates to that loadClass() method. Or you can save some time and use Spring DM's BundleDelegatingClassLoader class instead. Balazs Zsoldos In OSGi 4.3 you can use: bundle.adapt(BundleWiring

Web Application using OSGi and GWT

爷,独闯天下 提交于 2019-11-28 23:29:52
Which is a good architecture for a Web Application using OSGI and GWT as UI? The aim is to use bundles to make bundles of web interface sections. If I add new bundle it will add new features (a menu for example) on the user interface, which cooperate with existing ones. Please see a similar discussion on the GWT mailing list - http://groups.google.com/group/google-web-toolkit/msg/4a3f912cb89a7256 To summarize - GWT's architecture is orthogonal to your requirement of multiple modules loaded at runtime. There are ways to achieve dynamic modules in GWT, but it is never going to be optimal. In

C++ modularization framework (like OSGi) ?

前提是你 提交于 2019-11-28 23:25:06
问题 I found one SOF http://www.codeproject.com/KB/library/SOF_.aspx , Are there anyother stable frameworks for modularization in C++ ? 回答1: The OSGi4Cpp tries to implement the OSGi specification in C++. 回答2: The authors of the open source Portable Components library (POCO) have also developed a modular framework based on OSGI called OSP or Open Service Platform. http://www.appinf.com/en/products/osp.html. It's not open source however. 回答3: I found this write-up which gives a status as of April