OSGi headless running on linux - org.eclipse.core.runtime Can't get app service

After agonizing for weeks, I finally got my OSGi app deployed on Linux and almost running.

This is a headless application, my Linux is also headless.

I run it with the command

java -jar org.eclipse.equinox.launcher_1.1.0.v20100507.jar -application eclipse

      

When I run it I see that all my Bundles are activated and then as I expected it to finish loading, I get the following exception. org.eclipse.core.runtime is in config.ini and in the plugin directory.

Any ideas why this won't start? I have an entry level as 1

!ENTRY org.eclipse.osgi 4 0 2012-03-08 05:27:29.804
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

      

Actually I found a solution thanks to http://www.volker-wegert.de/en/node/65#comment-197

Set initial level to 2 and set to auto start in config.ini

org.eclipse.core.runtime.jar@2:start

      

+3


source to share


1 answer


Actually I found a solution thanks to http://www.volker-wegert.de/en/node/65#comment-197

Set initial level to 2 and set to auto start in config.ini



org.eclipse.core.runtime.jar@2:start

      

+3


source







All Articles