Home » Eclipse Projects » Equinox » RCP app can't see plug-ins installed in separate configuration area
RCP app can't see plug-ins installed in separate configuration area [message #1062778] |
Mon, 10 June 2013 17:15 |
Klara Ward Messages: 14 Registered: July 2009 |
Junior Member |
|
|
I have an RCP app (based on Eclipse 3.8.2)
which will be installed in c:\Program Files\..... by default on Windows.
So to be able to install plug-ins in my app, I need to set osgi.configuration.area to somewhere writable.
The problem is that when I install plug-ins, and restart my app, I can only see the newly installed features, but not the newly installed plug-ins, and the functionality they provide does not work..
I compared with an installation of Eclipse where I also installed my RCP app base plug-ins. Then I set osgi.configuration.area for Eclipse as well, and installed the same "extra" plug-ins that I install in my RCP app.
In this case, it worked fine, I can see the plug-ins, and they work as well.
Q:
What are the files that are most relevant to what plug-ins are actually loaded?
What Eclipse code do I debug?
I tried to compare the two config areas (RCP app and Eclipse), and the simpleconfigurator/bundles.info seems to differ quite a bit, for RCP app it's only two lines, for Eclipse it's the full set of installed plug-ins.
I've seen numerous questions in this area on forums, and also a number of Eclipse bugs, most of them seem closed. Non of the fixes/workarounds seem to work for me.
This is the config.ini I started out with:
eclipse.p2.profile=XYZ
osgi.splashPath=platform:/base/plugins/x.y.z.rcp.application
eclipse.application=x.y.z.rcp.application.app
eclipse.product=x.y.z.rcp.application.product
osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start,org.eclipse.equinox.simpleconfigurator@1:start,org.eclipse.equinox.ds@2:start,org.eclipse.equinox.util@2:start,org.eclipse.osgi.services@2:start,x.y.z.rcp.application@5
osgi.bundles.defaultStartLevel=4
osgi.instance.area.default=@user.home/.xyz/1.2.3
This is the config.ini after switching to using a bundles.info file and adapting some of the other things from the Eclipse config.ini:
eclipse.application=x.y.z.rcp.application.app
eclipse.p2.data.area=@config.dir/../p2
eclipse.p2.profile=XYZ
eclipse.product=x.y.z.rcp.application.product
equinox.use.ds=true
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
org.eclipse.update.reconcile=false
osgi.bundles.defaultStartLevel=4
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.301.v20120914-163612.jar@1\:start
osgi.configuration.area=D:/XYZs/conf_test/XYZ/conf
osgi.framework=file\:plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
osgi.install.area.readOnly=true
osgi.instance.area.default=@user.home/.xyz/1.2.3
osgi.splashPath=platform:/base/plugins/x.y.z.rcp.application
|
|
| | | |
Re: RCP app can't see plug-ins installed in separate configuration area [message #1064222 is a reply to message #1063875] |
Tue, 18 June 2013 10:29 |
Markus Persson Messages: 1 Registered: July 2009 |
Junior Member |
|
|
Pascal, thanks for the help. We (Klara and I) have now resolved this issue.
The reason was that we provided the wrong IU to the p2 Director. Instead of specifying the IU of the product itself, we had accidentally specified the IU of the containing feature.
Since this feature was the entire contents of the ".product", everything seemed to work anyway. (Due to being part of a larger install, the binary launcher was handled separately,
outside of the "eclipse" directory, and the config.ini inserted afterwards.)
But of course, what was missing was the CUs, in particular "tooling.osgi.bundle.default". (Since the update site in question was a pure add-on repository, p2 Publisher hadn't
added that CU in there either.)
In the non-shared install scenario, installing from the update site did "work" since we still have the legacy "org.eclipse.update.configurator" bundle (since the pre-p2 days),
which AFAIK simply adds any bundles it finds in the sites specified in platform.xml to the OSGi runtime. Am I correct in assuming that we could and should remove
"org.eclipse.update.configurator" from our product altogether?
For reference, our issue (and solution, I guess) was very similar to the one described in https://bugs.eclipse.org/bugs/show_bug.cgi?id=241559 .
|
|
|
Goto Forum:
Current Time: Mon Sep 23 21:04:16 GMT 2024
Powered by FUDForum. Page generated in 0.03692 seconds
|