|Launch RCP App without plugins folder [message #99249]
||Wed, 03 October 2007 13:30
Originally posted by: helmut.rubasch.com|
I am currently trying to programmatically start a simple RCP Application in Equinox. Unlike all the examples I found on the net, we do not have the necessary bundles in a "plugins" folder, but we are using Spring OSGi's integration test harness for installing and activating them - we are doing this, because we are also using the integration test harness for our server bundles.
So we don't have a plugins-folder, we don't have a config.ini, and the bundles are installed into the Equinox runtime (which is internally started using the <code>EclipseStarter</code>) and activated by the integration test harness.
My question is: is this possible at all? If yes, what is the (my?) problem?
Here is what I have tried up to now:
As soon as I had all necessary bundles up-and-"ACTIVE" in Equinox, and the Application was still not showing up, I started playing 'round with some Runtime options:
... which produced the error message <i>Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini)</i> at the next startup. And entering <code>apps</code> in the OSGi console only displays the <code>org.eclipse.equinox.app.error [running] [not launchable]</code>-application.
Please correct me if I'm wrong, but I think what had happened was, that the runtime was trying to start the testplugin.Application <b>before</b> the integration test harness had activated all the necessary bundles (like <code>org.eclipse.core.runtime</code>).
So I tried to defer starting the RCP application (until all necessary bundles are activated) using some other runtime options (like eclipse.application.launchDefault, eclipse.application.registerDescriptors, eclipse.ignoreApp or eclipse.activateRuntimePlugins), but none of the combinations I tried seemed to work: <code>apps</code> does not display any apps and the <code>org.eclipse.equinox.app</code> bundle does not register any ApplicationDescriptor or ApplicationHandle.
Just to rule out the most obvious sources for the problem: the plugin.xml looks ok (and the RCP App can be started from inside Eclipse) and all bundles (including the RCP App itself) are happily resolved and activated.
So back to my question: is this possible at all? If yes, could you please point me into the right direction (which runtime options to set, ...)? A link to a detailled description of the startup-process of an RCP App would also help me a lot!
Thank you very much in advance,
Powered by FUDForum
. Page generated in 0.02397 seconds