RCP 4 + Webstart - Fails to load workbench [message #938211] |
Tue, 09 October 2012 17:07 |
Brad Maxwell 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 |
Thomas Schindl 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 #1220918 is a reply to message #945847] |
Mon, 16 December 2013 07:44 |
Christophe Bouhier 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 |
Christophe Bouhier 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
|
|
|
Powered by
FUDForum. Page generated in 0.03892 seconds