Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » RCP 4 + Webstart - Fails to load workbench
RCP 4 + Webstart - Fails to load workbench [message #938211] Tue, 09 October 2012 17:07 Go to next message
Brad Maxwell is currently offline Brad MaxwellFriend
Messages: 5
Registered: October 2012
Junior Member
I'm trying to convert an Eclipse 3 application to Eclipse 4. The app launches from the IDE without any issues, but I'm unable to start the workbench when starting from webstart.

The stack trace of the exception is:

java.lang.NullPointerException
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.<init>(ModelServiceImpl.java:92)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:442)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:182)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:554)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)


Based on other posts, I suspect that I'm missing a plugin when I launch via webstart. The logs appear to be clean at this point, though, except for the exception. I've tried what's been suggested in other posts (hopefully correctly), but I'm still missing something. I'd appreciate any help in diagnosing the problem.

I'd like to be able to list loaded plugins from the osgi console to provide more info, but I'm not having any luck with the approach I've seen (-console and port in the startup params, then telnet to the port). Any help there would also be appreciated.

Some things to note:
* I don't have a custom config.ini
* equinox.ds and equinox.event are added to my launch config and jnlp jars
* equinox.ds is marked with a start level of 1 and marked as auto start
* Eclipse release is 20120614-1722
* Running under Windows, launching from JBoss 4.2.3

Thanks in advance,
Brad
Re: RCP 4 + Webstart - Fails to load workbench [message #938822 is a reply to message #938211] Wed, 10 October 2012 07:21 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
It looks like equinox.ds is not running, not sure why it is not when
running with webstart.

Tom

Am 09.10.12 19:07, schrieb Brad Maxwell:
> I'm trying to convert an Eclipse 3 application to Eclipse 4. The app
> launches from the IDE without any issues, but I'm unable to start the
> workbench when starting from webstart.
>
> The stack trace of the exception is:
>
> java.lang.NullPointerException
> at
> org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.<init>(ModelServiceImpl.java:92)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:442)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:182)
>
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:554)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
>
>
> Based on other posts, I suspect that I'm missing a plugin when I launch
> via webstart. The logs appear to be clean at this point, though, except
> for the exception. I've tried what's been suggested in other posts
> (hopefully correctly), but I'm still missing something. I'd appreciate
> any help in diagnosing the problem.
>
> I'd like to be able to list loaded plugins from the osgi console to
> provide more info, but I'm not having any luck with the approach I've
> seen (-console and port in the startup params, then telnet to the
> port). Any help there would also be appreciated.
>
> Some things to note:
> * I don't have a custom config.ini
> * equinox.ds and equinox.event are added to my launch config and jnlp jars
> * equinox.ds is marked with a start level of 1 and marked as auto start
> * Eclipse release is 20120614-1722
> * Running under Windows, launching from JBoss 4.2.3
>
> Thanks in advance,
> Brad
Re: RCP 4 + Webstart - Fails to load workbench [message #939210 is a reply to message #938822] Wed, 10 October 2012 14:29 Go to previous messageGo to next message
Brad Maxwell is currently offline Brad MaxwellFriend
Messages: 5
Registered: October 2012
Junior Member
Thanks, Tom. I did get a listing from the osgi console. Equinox.ds is still marked as "resolved" after the crash. Here's the list of plugins. It's id 74 below.

Please let me know if this provides any clues.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.8.0.v20120529-1548
1 ACTIVE org.eclipse.equinox.common_3.6.100.v20120522-1841
2 ACTIVE org.eclipse.core.runtime_3.8.0.v20120521-2346
3 STARTING org.eclipse.core.databinding.property_1.4.100.v20120523-1955
4 ACTIVE com.xxx.vps.application_1.0.0
5 RESOLVED org.apache.batik.css_1.6.0.v201011041432
6 STARTING org.eclipse.core.databinding_1.4.1.v20120521-2329
7 STARTING org.eclipse.emf.ecore.xmi_2.8.0.v20120606-0717
8 STARTING org.eclipse.e4.ui.workbench.addons.swt_0.10.1.v20120523-1955
9 RESOLVED org.w3c.css.sac_1.3.1.v200903091627
10 STARTING org.eclipse.equinox.util_1.0.400.v20120522-2049
11 RESOLVED org.eclipse.core.commands_3.6.1.v20120521-2329
12 STARTING org.eclipse.equinox.security_1.1.100.v20120522-1841
13 STARTING org.eclipse.ui.workbench.texteditor_3.8.0.v20120523-1310
14 STARTING org.eclipse.ui.ide_3.8.0.v20120521-2329
15 RESOLVED javax.servlet_3.0.0.v201112011016
16 STARTING org.eclipse.emf.ecore_2.8.0.v20120606-0717
17 ACTIVE org.eclipse.e4.ui.model.workbench_0.10.1.v20120523-1955
18 ACTIVE org.eclipse.jface_3.8.0.v20120521-2329
19 ACTIVE org.eclipse.e4.ui.workbench.swt_0.10.1.v20120525-2014
20 STARTING org.eclipse.equinox.p2.engine_2.2.0.v20120501-1502
21 RESOLVED org.eclipse.jface.databinding_1.6.0.v20120521-2329
22 STARTING org.eclipse.equinox.p2.core_2.2.0.v20120430-0525
23 STARTING org.eclipse.core.runtime.compatibility.auth_3.2.200.v2011011
0
24 RESOLVED org.apache.batik.util.gui_1.6.0.v201011041432
25 RESOLVED org.eclipse.swt.win32.win32.x86_64_3.100.0.v4233d
Master=72
26 RESOLVED org.eclipse.e4.ui.workbench3_0.12.0.v20120521-2329
27 ACTIVE org.eclipse.ui_3.103.0.v20120521-2329
28 STARTING org.eclipse.e4.core.commands_0.10.1.v20120523-1955
29 STARTING org.eclipse.e4.ui.css.swt_0.10.1.v20120523-1955
30 STARTING org.eclipse.e4.ui.bindings_0.10.1.v20120523-1955
31 ACTIVE com.xxx.vps.common_1.0.0
32 STARTING org.eclipse.emf.ecore.change_2.8.0.v20120606-0717
33 STARTING org.eclipse.e4.core.di.extensions_0.11.0.v20120523-2004
34 ACTIVE org.eclipse.ui.workbench_3.103.0.v20120530-1824
35 ACTIVE org.apache.felix.gogo.shell_0.8.0.v201110170705
36 RESOLVED org.eclipse.equinox.launcher_1.3.0.v20120522-1813
37 STARTING org.eclipse.equinox.event_1.2.200.v20120522-2049
38 ACTIVE org.eclipse.e4.core.contexts_1.1.0.v20120523-2004
39 STARTING org.eclipse.core.expressions_3.4.400.v20120523-2004
40 ACTIVE org.eclipse.emf.common_2.8.0.v20120606-0717
41 RESOLVED org.eclipse.osgi.services_3.3.100.v20120522-1822
42 STARTING com.xxx.vps.maintenance.ui_1.0.0
43 RESOLVED javax.inject_1.0.0.v20091030
44 STARTING org.eclipse.e4.ui.css.swt.theme_0.9.2.v20120523-1955
45 RESOLVED org.eclipse.jface.text_3.8.0.v20120531-0600
46 STARTING com.xxx.vps.order.ui_1.0.0
47 RESOLVED javax.annotation_1.0.0.v20101115-0725
48 ACTIVE org.eclipse.core.runtime.compatibility_3.2.200.v20120521-2346
49 ACTIVE com.xxx.vps.common.libs_1.0.0
50 STARTING org.eclipse.core.filebuffers_3.5.200.v20120523-1310
51 STARTING org.eclipse.equinox.p2.metadata_2.1.0.v20120430-2001
52 STARTING org.eclipse.e4.ui.services_0.10.1.v20120523-1955
53 STARTING org.eclipse.e4.ui.di_0.10.1.v20120523-1955
54 STARTING org.eclipse.ui.forms_3.5.200.v20120521-2329
55 STARTING org.eclipse.help_3.6.0.v20120521-2344
56 ACTIVE org.eclipse.core.contenttype_3.4.200.v20120523-2004
57 STARTING org.eclipse.core.filesystem_1.3.200.v20120522-2012
Fragments=83
58 STARTING org.eclipse.core.resources_3.8.0.v20120522-2034
59 ACTIVE org.eclipse.equinox.preferences_3.5.0.v20120522-1841
60 ACTIVE org.eclipse.e4.core.di_1.1.0.v20120521-2346
61 STARTING org.eclipse.core.variables_3.2.600.v20120521-2012
62 STARTING org.eclipse.equinox.p2.repository_2.2.0.v20120524-1945
63 RESOLVED org.w3c.dom.svg_1.1.0.v201011041433
64 RESOLVED org.eclipse.e4.ui.widgets_0.12.0.v20120523-1955
65 ACTIVE org.eclipse.core.databinding.observable_1.4.1.v20120521-2329
66 ACTIVE org.eclipse.equinox.registry_3.5.200.v20120522-1841
67 ACTIVE com.xxx.vps.webservice.client_1.0.0
68 RESOLVED org.w3c.dom.smil_1.0.0.v200806040011
69 STARTING org.eclipse.equinox.p2.metadata.repository_1.2.100.v20120524-1717
70 STARTING org.eclipse.ui.editors_3.8.0.v20120523-1540
71 STARTING org.eclipse.ui.console_3.5.100.v20120521-2012
72 RESOLVED org.eclipse.swt_3.100.0.v4233d
Fragments=25
73 RESOLVED org.apache.batik.util_1.6.0.v201011041432
74 RESOLVED org.eclipse.equinox.ds_1.4.0.v20120522-1841
75 ACTIVE org.eclipse.e4.ui.workbench_0.10.2.v20120531-1742
76 STARTING org.eclipse.rcp_4.2.0.v201206081400
77 STARTING org.eclipse.compare.core_3.5.200.v20120522-1148
78 ACTIVE org.eclipse.core.jobs_3.5.0.v20100515
79 RESOLVED org.eclipse.e4.ui.css.core_0.10.1.v20120523-1955
80 ACTIVE org.eclipse.e4.core.services_1.0.0.v20120521-2346
81 RESOLVED org.eclipse.text_3.5.200.v20120523-1310
82 ACTIVE com.ibm.icu_4.4.2.v20110823
83 RESOLVED org.eclipse.core.filesystem.win32.x86_64_1.1.300.v20120522-1137
Master=57
84 ACTIVE org.eclipse.equinox.app_1.3.100.v20120522-1841
85 STARTING org.eclipse.update.configurator_3.3.200.v20120523-1752
86 ACTIVE org.eclipse.equinox.console_1.0.0.v20120522-1841
87 STARTING vps_eclipse_libs_1.0.0
88 ACTIVE org.apache.felix.gogo.command_0.8.0.v201108120515
89 STARTING org.eclipse.e4.ui.workbench.renderers.swt_0.10.1.v20120523-1955
90 ACTIVE org.apache.felix.gogo.runtime_0.8.0.v201108120515
Re: RCP 4 + Webstart - Fails to load workbench [message #939304 is a reply to message #939210] Wed, 10 October 2012 16:15 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
But resolved is NOT enough it needs to be in ACTIVE!

Tom

Am 10.10.12 16:29, schrieb Brad Maxwell:
> Thanks, Tom. I did get a listing from the osgi console. Equinox.ds is
> still marked as "resolved" after the crash. Here's the list of
> plugins. It's id 74 below.
>
> Please let me know if this provides any clues.
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.8.0.v20120529-1548
> 1 ACTIVE org.eclipse.equinox.common_3.6.100.v20120522-1841
> 2 ACTIVE org.eclipse.core.runtime_3.8.0.v20120521-2346
> 3 STARTING
> org.eclipse.core.databinding.property_1.4.100.v20120523-1955
> 4 ACTIVE com.xxx.vps.application_1.0.0
> 5 RESOLVED org.apache.batik.css_1.6.0.v201011041432
> 6 STARTING org.eclipse.core.databinding_1.4.1.v20120521-2329
> 7 STARTING org.eclipse.emf.ecore.xmi_2.8.0.v20120606-0717
> 8 STARTING
> org.eclipse.e4.ui.workbench.addons.swt_0.10.1.v20120523-1955
> 9 RESOLVED org.w3c.css.sac_1.3.1.v200903091627
> 10 STARTING org.eclipse.equinox.util_1.0.400.v20120522-2049
> 11 RESOLVED org.eclipse.core.commands_3.6.1.v20120521-2329
> 12 STARTING org.eclipse.equinox.security_1.1.100.v20120522-1841
> 13 STARTING
> org.eclipse.ui.workbench.texteditor_3.8.0.v20120523-1310
> 14 STARTING org.eclipse.ui.ide_3.8.0.v20120521-2329
> 15 RESOLVED javax.servlet_3.0.0.v201112011016
> 16 STARTING org.eclipse.emf.ecore_2.8.0.v20120606-0717
> 17 ACTIVE org.eclipse.e4.ui.model.workbench_0.10.1.v20120523-1955
> 18 ACTIVE org.eclipse.jface_3.8.0.v20120521-2329
> 19 ACTIVE org.eclipse.e4.ui.workbench.swt_0.10.1.v20120525-2014
> 20 STARTING org.eclipse.equinox.p2.engine_2.2.0.v20120501-1502
> 21 RESOLVED org.eclipse.jface.databinding_1.6.0.v20120521-2329
> 22 STARTING org.eclipse.equinox.p2.core_2.2.0.v20120430-0525
> 23 STARTING
> org.eclipse.core.runtime.compatibility.auth_3.2.200.v2011011
> 0
> 24 RESOLVED org.apache.batik.util.gui_1.6.0.v201011041432
> 25 RESOLVED org.eclipse.swt.win32.win32.x86_64_3.100.0.v4233d
> Master=72
> 26 RESOLVED org.eclipse.e4.ui.workbench3_0.12.0.v20120521-2329
> 27 ACTIVE org.eclipse.ui_3.103.0.v20120521-2329
> 28 STARTING org.eclipse.e4.core.commands_0.10.1.v20120523-1955
> 29 STARTING org.eclipse.e4.ui.css.swt_0.10.1.v20120523-1955
> 30 STARTING org.eclipse.e4.ui.bindings_0.10.1.v20120523-1955
> 31 ACTIVE com.xxx.vps.common_1.0.0
> 32 STARTING org.eclipse.emf.ecore.change_2.8.0.v20120606-0717
> 33 STARTING org.eclipse.e4.core.di.extensions_0.11.0.v20120523-2004
> 34 ACTIVE org.eclipse.ui.workbench_3.103.0.v20120530-1824
> 35 ACTIVE org.apache.felix.gogo.shell_0.8.0.v201110170705
> 36 RESOLVED org.eclipse.equinox.launcher_1.3.0.v20120522-1813
> 37 STARTING org.eclipse.equinox.event_1.2.200.v20120522-2049
> 38 ACTIVE org.eclipse.e4.core.contexts_1.1.0.v20120523-2004
> 39 STARTING org.eclipse.core.expressions_3.4.400.v20120523-2004
> 40 ACTIVE org.eclipse.emf.common_2.8.0.v20120606-0717
> 41 RESOLVED org.eclipse.osgi.services_3.3.100.v20120522-1822
> 42 STARTING com.xxx.vps.maintenance.ui_1.0.0
> 43 RESOLVED javax.inject_1.0.0.v20091030
> 44 STARTING org.eclipse.e4.ui.css.swt.theme_0.9.2.v20120523-1955
> 45 RESOLVED org.eclipse.jface.text_3.8.0.v20120531-0600
> 46 STARTING com.xxx.vps.order.ui_1.0.0
> 47 RESOLVED javax.annotation_1.0.0.v20101115-0725
> 48 ACTIVE
> org.eclipse.core.runtime.compatibility_3.2.200.v20120521-2346
> 49 ACTIVE com.xxx.vps.common.libs_1.0.0
> 50 STARTING org.eclipse.core.filebuffers_3.5.200.v20120523-1310
> 51 STARTING org.eclipse.equinox.p2.metadata_2.1.0.v20120430-2001
> 52 STARTING org.eclipse.e4.ui.services_0.10.1.v20120523-1955
> 53 STARTING org.eclipse.e4.ui.di_0.10.1.v20120523-1955
> 54 STARTING org.eclipse.ui.forms_3.5.200.v20120521-2329
> 55 STARTING org.eclipse.help_3.6.0.v20120521-2344
> 56 ACTIVE org.eclipse.core.contenttype_3.4.200.v20120523-2004
> 57 STARTING org.eclipse.core.filesystem_1.3.200.v20120522-2012
> Fragments=83
> 58 STARTING org.eclipse.core.resources_3.8.0.v20120522-2034
> 59 ACTIVE org.eclipse.equinox.preferences_3.5.0.v20120522-1841
> 60 ACTIVE org.eclipse.e4.core.di_1.1.0.v20120521-2346
> 61 STARTING org.eclipse.core.variables_3.2.600.v20120521-2012
> 62 STARTING org.eclipse.equinox.p2.repository_2.2.0.v20120524-1945
> 63 RESOLVED org.w3c.dom.svg_1.1.0.v201011041433
> 64 RESOLVED org.eclipse.e4.ui.widgets_0.12.0.v20120523-1955
> 65 ACTIVE
> org.eclipse.core.databinding.observable_1.4.1.v20120521-2329
> 66 ACTIVE org.eclipse.equinox.registry_3.5.200.v20120522-1841
> 67 ACTIVE com.xxx.vps.webservice.client_1.0.0
> 68 RESOLVED org.w3c.dom.smil_1.0.0.v200806040011
> 69 STARTING
> org.eclipse.equinox.p2.metadata.repository_1.2.100.v20120524-1717
> 70 STARTING org.eclipse.ui.editors_3.8.0.v20120523-1540
> 71 STARTING org.eclipse.ui.console_3.5.100.v20120521-2012
> 72 RESOLVED org.eclipse.swt_3.100.0.v4233d
> Fragments=25
> 73 RESOLVED org.apache.batik.util_1.6.0.v201011041432
> 74 RESOLVED org.eclipse.equinox.ds_1.4.0.v20120522-1841
> 75 ACTIVE org.eclipse.e4.ui.workbench_0.10.2.v20120531-1742
> 76 STARTING org.eclipse.rcp_4.2.0.v201206081400
> 77 STARTING org.eclipse.compare.core_3.5.200.v20120522-1148
> 78 ACTIVE org.eclipse.core.jobs_3.5.0.v20100515
> 79 RESOLVED org.eclipse.e4.ui.css.core_0.10.1.v20120523-1955
> 80 ACTIVE org.eclipse.e4.core.services_1.0.0.v20120521-2346
> 81 RESOLVED org.eclipse.text_3.5.200.v20120523-1310
> 82 ACTIVE com.ibm.icu_4.4.2.v20110823
> 83 RESOLVED
> org.eclipse.core.filesystem.win32.x86_64_1.1.300.v20120522-1137
> Master=57
> 84 ACTIVE org.eclipse.equinox.app_1.3.100.v20120522-1841
> 85 STARTING org.eclipse.update.configurator_3.3.200.v20120523-1752
> 86 ACTIVE org.eclipse.equinox.console_1.0.0.v20120522-1841
> 87 STARTING vps_eclipse_libs_1.0.0
> 88 ACTIVE org.apache.felix.gogo.command_0.8.0.v201108120515
> 89 STARTING
> org.eclipse.e4.ui.workbench.renderers.swt_0.10.1.v20120523-1955
> 90 ACTIVE org.apache.felix.gogo.runtime_0.8.0.v201108120515
Re: RCP 4 + Webstart - Fails to load workbench [message #939326 is a reply to message #939304] Wed, 10 October 2012 16:47 Go to previous messageGo to next message
Brad Maxwell is currently offline Brad MaxwellFriend
Messages: 5
Registered: October 2012
Junior Member
Any thoughts on what would keep it from going active? Start level is at 1 and it's set to auto-start.
Re: RCP 4 + Webstart - Fails to load workbench [message #939379 is a reply to message #939326] Wed, 10 October 2012 18:01 Go to previous messageGo to next message
Eclipse UserFriend
'diag NNN' from the OSGi console, where NNN is the bundle number from 'ss org.eclipse.equinox.ds', will tell you what the bundle cannot be started,

Brian.
Re: RCP 4 + Webstart - Fails to load workbench [message #939440 is a reply to message #939379] Wed, 10 October 2012 19:08 Go to previous messageGo to next message
Brad Maxwell is currently offline Brad MaxwellFriend
Messages: 5
Registered: October 2012
Junior Member
I just get this, which looks normal-ish. Would this imply that my start level/auto-start settings aren't making it to the webstart launch, maybe?

osgi> diag 74
initial@reference:file:C:/Users/xxx/AppData/LocalLow/Sun/Java/Deployment/cache/6.0/48/65668170-39def60a-1.4.0.v20120522-1841- [74]
No unresolved constraints.

osgi> start 74
osgi>
Re: RCP 4 + Webstart - Fails to load workbench [message #941261 is a reply to message #939440] Fri, 12 October 2012 10:44 Go to previous messageGo to next message
Eclipse UserFriend
org.eclipse.equinox.events needs to be autostarted too.

http://wiki.eclipse.org/Eclipse4/RCP/FAQ#Why_won.27t_my_application_start.3F
Re: RCP 4 + Webstart - Fails to load workbench [message #945847 is a reply to message #941261] Mon, 15 October 2012 18:09 Go to previous messageGo to next message
Brad Maxwell is currently offline Brad MaxwellFriend
Messages: 5
Registered: October 2012
Junior Member
Ah, a web page I had forgotten about cause I don't know where the <configurations> node would go. So the plugin start settings in my <app>.product file don't get used by webstart, I guess?

I added these under the osgi.bundles property in my jnlp and it works great now.

Thanks for the help, guys!
Re: RCP 4 + Webstart - Fails to load workbench [message #1220463 is a reply to message #938211] Wed, 11 December 2013 22:19 Go to previous messageGo to next message
Aaron L is currently offline Aaron LFriend
Messages: 18
Registered: November 2009
Junior Member
I am experiencing the same NPE when trying to run my RCP application via Java Web Start and it appears to be due to updating to Java 7 u45.

With Java 7 u45, you can no longer specify the "osgi.bundles" property in the JNLP file.

I have been able to get around this for other properties by passing them as application arguments. For example "osgi.install.area" is now specified in my JNLP using it's command line equivalent as shown below.

Before Java 7 u45:

<resources>
    <property name="osgi.install.area" value="location"/>
</resources>


After Java 7 u45:

<application-desc main-class="org.eclipse.equinox.launcher.WebStartMain">
    <argument>-install</argument>
    <argument>location</argument>
</application-desc>


However, there does not seem to be a command line equivalent for the "osgi.bundles" property. I need to be able to start the equinox.ds and equinox event bundles but cannot figure out how to, now that JAVA has blocked the "osgi.bundles" property.

Anyone know what JNLP modifications need to be made to do get this to work?
Re: RCP 4 + Webstart - Fails to load workbench [message #1220918 is a reply to message #945847] Mon, 16 December 2013 07:44 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi Brad,

I have been trying to get my e4 webstart going without success (I posted
on this forum previously) . Can you plz share your .jnlp? (If possible).
It's just for me to gain confidence that it can actually work.

The method, I use is tycho generated .jnlp, which not supported
unfortunately, in the state it is, it doesn't generate something which
works..

Rgds Christophe



On 15-10-12 20:09, Brad Maxwell wrote:
> Ah, a web page I had forgotten about cause I don't know where the
> <configurations> node would go. So the plugin start settings in my
> <app>.product file don't get used by webstart, I guess?
>
> I added these under the osgi.bundles property in my jnlp and it works
> great now.
> Thanks for the help, guys!
Re: RCP 4 + Webstart - Fails to load workbench [message #1220935 is a reply to message #1220463] Mon, 16 December 2013 08:53 Go to previous message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
On 11-12-13 23:19, Aaron L wrote:
> I am experiencing the same NPE when trying to run my RCP application via
> Java Web Start and it appears to be due to updating to Java 7 u45.
>
> With Java 7 u45, you can no longer specify the "osgi.bundles" property
> in the JNLP file.
>
> I have been able to get around this for other properties by passing them
> as application arguments. For example "osgi.install.area" is now
> specified in my JNLP using it's command line equivalent as shown below.
>
> Before Java 7 u45:
>
> <resources>
> <property name="osgi.install.area" value="location"/>
> </resources>
>
> After Java 7 u45:
>
> <application-desc main-class="org.eclipse.equinox.launcher.WebStartMain">
> <argument>-install</argument>
> <argument>location</argument>
> </application-desc>
>
> However, there does not seem to be a command line equivalent for the
> "osgi.bundles" property. I need to be able to start the equinox.ds and
> equinox event bundles but cannot figure out how to, now that JAVA has
> blocked the "osgi.bundles" property.
>
> Anyone know what JNLP modifications need to be made to do get this to work?

Hi ,

Well in my case it is like this:

<property name="osgi.bundles"
value="org.eclipse.equinox.simpleconfigurator@1:start"/>


which seems to work in a way, but then I get a problem that it looks for
the configuration folder, and jawas prepends the server url, so it will
look for

http://yourserver.url/configuration/config.ini

Now yourserver.url is not even the URL as defined in the 'codebase'
attribute, i.e. :

<jnlp spec="1.5+" version="1.1.8.201312160105"
codebase="http://www.netxforge.com/demo/">

I guess jawas will prepend the default server to any folder it looks
for... Not sure what happens here.

Cheers Christophe
Previous Topic:Reseting the Window Layout
Next Topic:Webstart , equinox launcher which parameters in JNLP file
Goto Forum:
  


Current Time: Thu Mar 28 13:43:01 GMT 2024

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

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

Back to the top