[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] Setting osgi.configuration.area breaks my Equinox-based OSGI app

I have an application which has used Equinox as an osgi framework for a while now. Until now I used the system property osgi.install.area to specify where my bundles are like so:

${osgi.install.area}/Â

 plugins/Â

  org.eclipse.osgi_3.7.0.v20110613.jarÂ

  ... my app bundles

Equinox then automatically uses ${osgi.install.area}/configuration as the configuration area.

Everything works fine that way.

Now I need to move the configuration area out of ${osgi.install.area} because that may be read-only and I thought it was as simple as setting ${osgi.configuration.area} to a suitable path but when I do this the application no longer starts and I have the following stack trace in the logs:

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 org.eclipse.core.runtime.adaptor.EclipseStarter.main(EclipseStarter.java:150) ...

I can see that the path is used because at that location the log file is created and a directory "org.eclipse.osgi" before it fails.

Paths to bundles are referenced in my config.ini like so:

osgi.bundles=de.mycomp.app-0.6.0.20121116-1834.jar@start, ...

The error message does not really give a hint where to look except my config.ini and that has not changed and I thought paths were being resolved relative toÂ${osgi.install.area}/pluginsÂand that has not changed. It must be something rather simple but I am rather clueless at the moment.

Thanks in advance,

Robert