equinox

Eclipse p2 : Difference between category.xml and site.xml

孤者浪人 提交于 2019-12-22 04:10:09
问题 p2 repository creation ant tasks like eclipse.publish.featuresAndBundles seem to take a site.xml or category.xml file which specifies the category information. I see that the contents of site.xml and category.xml that eclipse generates are exactly the same right down to the tags. So what is the difference between the two? Edit - To be clear : What additions/subtractions are present in category.xml that differentiate it from a site.xml apart from the filenames? 回答1: The main difference between

What do these OSGi commands really do?

霸气de小男生 提交于 2019-12-20 20:19:27
问题 Using Felix / Equinox, what do the following do under the hood? osgi:install osgi:refresh osgi:resolve osgi:restart osgi:update Is there a state-machine diagram or more concise documentation somewhere? 回答1: The best documentation for this is the OSGi Core Specification. The section and page numbers below refer to Release 4.3 (April 2011) of the spec. osgi:install means install a bundle from a file or stream, and it maps to the BundleContext.installBundle method in the API. Refer to section 4

In Equinox Is it possible to to mark an OSGi bundle as started from its containing feature's p2.inf?

丶灬走出姿态 提交于 2019-12-18 12:29:26
问题 I have an Eclipse feature which includes several bundles. I want to tell p2 to mark one of those bundles as started when the feature is installed. This is possible using the bundles own META-INF/p2.inf like so, instructions.configure = markStarted(started: true) but I want to do this at the feature-level rather than the bundle-level (the bundle in question is third-party, and I'd prefer not to modify it in any way, if possible). Some research has led me to this document which suggests that it

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

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 start osgi console (Equinox)

谁都会走 提交于 2019-12-17 15:57:29
问题 I'm trying to start an OSGi console in Windows 7. I used this statement on a terminal window: java -jar org.eclipse.osgi.jar -console But it doesn't work that is nothing does happen nor doesn't appear prompt osgi> . And typing on keyboard is ineffective except for ^C that makes to reappear usual terminal prompt. Anyone has any suggestion? 回答1: Starting from Equinox 3.8.0.M4, it has a new console. So you need also these four bundles for it to run properly. org.eclipse.equinox.console.jar org

OSGI with Hibernate: “No suitable driver found”

爷,独闯天下 提交于 2019-12-13 19:01:26
问题 I'm getting the beloved error: java.sql.SQLException: No suitable driver found for jdbc:postgresql://localhost:5432/acme I understand many reasons why this error usually arises: Invalid URL: This URL doesn't seem to have any errors in it and works perfectly fine in SQL Workbench. Driver Not on ClassPath: It is successfully imported (org.postgresql.Driver) and can be instantiated either directly or by using Class.forName("org.postgresql.Driver"). The Hibernate SessionFactory loading is

Osgi Equinox enable component from external bundle

不想你离开。 提交于 2019-12-13 04:33:28
问题 Given this scenario: Bundle A: component 1A (enabled:false) Bundle B: component 2B How can i enable component 1A from Bundle B or Component 2B? I've tried to do it by using componentContext, dsContext.enableComponent("1A"); but it seems to work only with services in the same bundle. 回答1: Your using a mechanism that is intended for management and it seems you want to use it on application level. Declarative services should be enabled/disabled through their dependencies, or through a domain

Problem integrating GWT and OSGi

╄→尐↘猪︶ㄣ 提交于 2019-12-12 09:57:36
问题 I have a problem integrating GWT into OSGi Equinox container. The entry point webpage runs. I see my first page. However, when I click on a button to realize server call, it does not run. I work with Firefox and I have firebug. Then, when I see network field I get the next message: Content-Type text/html; charset=iso-8859-1 Cache-Control must-revalidate,no-cache,no-store Content-Length 1431 Server Jetty(6.1.x) Host localhost User-Agent Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101