Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » web start problem
web start problem [message #1011454] Tue, 19 February 2013 15:15 Go to next message
Jan Weidauer is currently offline Jan Weidauer
Messages: 47
Registered: July 2009
Member
Hi,

I try to get a minimal e4 based application started via web start but
get the following error:
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:353)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.WebStartMain.basicRun(WebStartMain.java:79)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.WebStartMain.main(WebStartMain.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


It seems the runtime plugin isn't started correctly. But I do not know
how to achieve this. For in my jnlp file I declared an osgi.bundles
property and set the runtime plugin to start. Below I list the jnlp file.
Does anyone have a hint what to do?

Greetings,

Jan


The jnlp file:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="file:///f:/Projekte/Serval/E4_JNLP/web">
<information>
<title>Feature</title>
<vendor>Imagine Worlds</vendor>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<component-desc/>

<!-- The name of the main class to execute. This does not change-->
<application-desc main-class="org.eclipse.equinox.launcher.WebStartMain">
<argument>-nosplash</argument>
</application-desc>
<resources>
<!-- Information usually specified in the config.ini -->
<property
name="osgi.instance.area"
value="@user.home/Application Data/test"/>
<property
name="osgi.configuration.area"
value="@user.home/Application Data/test"/>
<property
name="osgi.bundles"

value="reference\:file\:org.eclipse.osgi_3.8.1.v20120830-144521.jar@-1\:start,reference\:file\:org.eclipse.equinox.ds_1.4.0.v20120522-1841.jar@1\:start,org.eclipse.equinox.common_3.6.100.v20120522-1841.jar@2\:start,reference\:file\:org.eclipse.core.runtime_3.8.0.v20120521-2346.jar@\:start"/>
<property
name="osgi.bundles.defaultStartLevel"
value="4"/>

<!-- The id of the product to run, like found in the overview page of
the product editor -->
<property
name="eclipse.product"
value="de.jawe.jnlp.test.product"/>

<j2se version="1.6+" />

<jar href="plugins/org.eclipse.emf.ecore.xmi_2.8.0.v20120911-0500.jar"/>
<jar href="plugins/org.w3c.dom.svg_1.1.0.v201011041433.jar"/>
<jar href="plugins/org.eclipse.emf.common_2.8.0.v20120911-0500.jar"/>
<jar
href="plugins/org.eclipse.jface.databinding_1.6.0.v20120521-2329.jar"/>
<jar
href="plugins/org.eclipse.core.databinding_1.4.1.v20120521-2329.jar"/>
<jar
href="plugins/org.eclipse.core.databinding.observable_1.4.1.v20120521-2329.jar"/>
<jar
href="plugins/org.eclipse.equinox.preferences_3.5.0.v20120522-1841.jar"/>
<jar
href="plugins/org.eclipse.e4.ui.workbench3_0.12.0.v20120521-2329.jar"/>
<jar href="plugins/org.eclipse.jface_3.8.101.v20120817-083647.jar"/>
<jar href="plugins/org.eclipse.equinox.event_1.2.200.v20120522-2049.jar"/>
<jar href="plugins/javax.inject_1.0.0.v20091030.jar"/>
<jar href="plugins/org.eclipse.osgi_3.8.1.v20120830-144521.jar"/>
<jar
href="plugins/org.eclipse.e4.ui.model.workbench_0.10.1.v20120523-1955.jar"/>
<jar
href="plugins/org.eclipse.e4.ui.css.core_0.10.2.v20120806-171245.jar"/>
<jar href="plugins/org.apache.batik.css_1.6.0.v201011041432.jar"/>
<jar
href="plugins/org.eclipse.e4.core.contexts_1.1.0.v20120828-170404.jar"/>
<jar
href="plugins/org.eclipse.swt.win32.win32.x86_64_3.100.1.v4234e.jar"/>
<jar
href="plugins/org.eclipse.e4.core.commands_0.10.1.v20120523-1955.jar"/>
<jar href="plugins/javax.annotation_1.0.0.v20101115-0725.jar"/>
<jar
href="plugins/org.eclipse.e4.ui.widgets_0.12.0.v20120905-175524.jar"/>
<jar
href="plugins/org.eclipse.equinox.registry_3.5.200.v20120522-1841.jar"/>
<jar
href="plugins/org.eclipse.core.databinding.property_1.4.100.v20120523-1955.jar"/>
<jar href="plugins/javax.xml_1.3.4.v201005080400.jar"/>
<jar
href="plugins/org.eclipse.core.contenttype_3.4.200.v20120523-2004.jar"/>
<jar href="plugins/org.w3c.css.sac_1.3.1.v200903091627.jar"/>
<jar
href="plugins/org.eclipse.e4.ui.css.swt.theme_0.9.3.v20120806-170624.jar"/>
<jar
href="plugins/org.eclipse.emf.ecore.change_2.8.0.v20120911-0500.jar"/>
<jar href="plugins/org.eclipse.core.runtime_3.8.0.v20120521-2346.jar"/>
<jar href="plugins/org.apache.batik.util.gui_1.6.0.v201011041432.jar"/>
<jar
href="plugins/org.eclipse.e4.ui.workbench.swt_0.10.2.v20120802-184737.jar"/>
<jar href="plugins/org.apache.batik.util_1.6.0.v201011041432.jar"/>
<jar
href="plugins/org.eclipse.equinox.common_3.6.100.v20120522-1841.jar"/>
<jar href="plugins/org.w3c.dom.smil_1.0.0.v200806040011.jar"/>
<jar href="plugins/org.eclipse.osgi.services_3.3.100.v20120522-1822.jar"/>
<jar
href="plugins/org.eclipse.e4.core.di.extensions_0.11.0.v20120523-2004.jar"/>
<jar href="plugins/org.eclipse.emf.ecore_2.8.1.v20120911-0500.jar"/>
<jar href="plugins/org.eclipse.swt_3.100.1.v4234e.jar"/>
<jar
href="plugins/org.eclipse.core.expressions_3.4.401.v20120627-124442.jar"/>
<jar href="plugins/org.eclipse.core.jobs_3.5.300.v20120622-204750.jar"/>
<jar
href="plugins/org.eclipse.core.runtime.compatibility.registry_3.5.100.v20120521-2346.jar"/>
<jar
href="plugins/org.eclipse.e4.ui.workbench_0.10.3.v20120822-140642.jar"/>
<jar
href="plugins/org.eclipse.e4.ui.workbench.renderers.swt_0.10.2.v20120814-175454.jar"/>
<jar href="plugins/org.eclipse.e4.core.di_1.1.0.v20120627-124443.jar"/>
<jar
href="plugins/org.eclipse.e4.ui.services_0.10.2.v20120726-172631.jar"/>
<jar href="plugins/org.eclipse.e4.ui.di_0.10.1.v20120523-1955.jar"/>
<jar href="plugins/de.jawe.jnlp.test_1.0.0.201302191600.jar"/>
<jar href="plugins/org.eclipse.equinox.util_1.0.400.v20120522-2049.jar"/>
<jar href="plugins/org.eclipse.core.commands_3.6.1.v20120814-150512.jar"/>
<jar href="plugins/com.ibm.icu_4.4.2.v20110823.jar"/>
<jar href="plugins/org.eclipse.equinox.ds_1.4.0.v20120522-1841.jar"/>
<jar
href="plugins/org.eclipse.e4.ui.css.swt_0.10.2.v20120821-165957.jar"/>
<jar href="plugins/org.eclipse.equinox.app_1.3.100.v20120522-1841.jar"/>
<jar
href="plugins/org.eclipse.e4.core.services_1.0.0.v20120521-2346.jar"/>
<jar
href="plugins/org.eclipse.e4.ui.bindings_0.10.1.v20120716-173435.jar"/>
<jar
href="plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar"/>
<jar
href="plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813.jar"/>
</resources>
</jnlp>
Re: web start problem [message #1011782 is a reply to message #1011454] Wed, 20 February 2013 08:48 Go to previous message
Jan Weidauer is currently offline Jan Weidauer
Messages: 47
Registered: July 2009
Member
I found a solution.
As mentioned here:
http://wiki.eclipse.org/Eclipse4/RCP/FAQ#Why_won.27t_my_application_start.3F
the error message indicates a problem setting the start levels.

But after searching the web over and over again I came to a site
configuring osgi in the config file not in the format like
reference\:file\:org.eclipse.equinox.ds_1.4.0.v20120522-1841.jar@1\:start
but rather using only the bundle names and avoiding masking backslashes like
org.eclipse.equinox.ds@1:start
And so it works well. I hope that's useful to others.

Jan
Previous Topic:Application.e4xmi externalize strings
Next Topic:How Do I Listen For Caret Movements in Eclipse 4
Goto Forum:
  


Current Time: Thu Sep 18 21:48:42 GMT 2014

Powered by FUDForum. Page generated in 0.03841 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software