Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP and Java Webstart
RCP and Java Webstart [message #444726] Mon, 20 February 2006 06:20 Go to next message
Eclipse UserFriend
Originally posted by: gvillot.free.fr

Hi All,

I've been trying to export my RCP application using the Java Webstart technology using Eclipse 3.1.2 and Java 1.506 under Linux, without any success.

I got several errors, some related to the plugins directory which is not valid, some related to the application id which hasn't been found, some related to plugins which are not resolved.

To do it, I followed the Eclipse help ( http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/java_web_start.htm)
for multiple plugins RCP, by creating a Feature project to wrap all plugins (Eclipse core plugins + my plugins)...

I have attached all jnlp files + the log I've got from the cache.

At the moment, everything seems to be downloaded "correctly", all jars are present in the cache, but the application doesn't start...
Re: RCP and Java Webstart [message #444731 is a reply to message #444726] Mon, 20 February 2006 09:28 Go to previous messageGo to next message
Vincent WUHRLIN is currently offline Vincent WUHRLINFriend
Messages: 19
Registered: July 2009
Junior Member
Hello, i am currently working on an RCP application for webstart.
I have tried the example of Ed Burnet, but in my case all are ok but
nothing appear on the screen. I will study this and i will contact you
when i have more news.
I am interesting to exchange some experience on Webstart with you Georges,
to advance rapidly.
Just a question, it is possible to sign jar inc build.properties directly
with Eclipse. Have you made that? If no, how have you signed the jars?
Have you exported the jar with the product plugin export? (and next, copy
all jars manually for webstart).

Thank you very much.
Vincent
Re: RCP and Java Webstart [message #444733 is a reply to message #444731] Mon, 20 February 2006 10:17 Go to previous messageGo to next message
Ricky is currently offline RickyFriend
Messages: 204
Registered: July 2009
Senior Member
> Just a question, it is possible to sign jar inc build.properties
> directly with Eclipse.

Yes, if you export with a feature. So put all plugins in a new feature,
double check that everything is present and then export the feature. There
are some options specific to jnlp and there is a signing step. Be sure to
export all plugins as individual jars.

hth,

Ricky
Re: RCP and Java Webstart [message #444736 is a reply to message #444731] Mon, 20 February 2006 11:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gvillot.free.fr

Hi Vincent,

on the top of what Ricky described, you may need to add manually startup.jar in the root of your feature project, and sign it manually using jarsigner and the same keystore that you specified to sign your plugins.
Then add in your build.properties:
root=file:startup.jar
to have it exported

cheers,
georges
Re: RCP and Java Webstart [message #444737 is a reply to message #444736] Mon, 20 February 2006 11:39 Go to previous messageGo to next message
Vincent WUHRLIN is currently offline Vincent WUHRLINFriend
Messages: 19
Registered: July 2009
Junior Member
ReHello everybody, i have followed your ideas and eclipse help to make a
webstart plugin. All are exported, and signed automatically with a new
feature-project for my plugin. I have testes on my local server, all
plugins are loaded (~ approximately 10Mb in total).

But the big problem now is that nothing appear on the screen. I have
activated the console on the java preferences, but the console appear and
disappear rapidly. I have finded the log file which is created for every
webstart execution, but all are empty.
I have tried to add a simple line in my application:

public Object run(Object args) throws Exception
{
System.out.println("APPLICATION OK !!!!!!!!!!");
System.exit(0);
...
}

In hope to see the output in the webstart console, but always nothing...

So, I think that the startup.jar don't launch application, and a problem
must exist at this level. But the startup is generated by the product
export, and when I launch the executable on windows (myapplication.exe
which launch next the startup.jar), i have no problem.

So, what have you made of different for have something on the screen? :)
Thank you very much
Vincent
Re: RCP and Java Webstart [message #444741 is a reply to message #444737] Mon, 20 February 2006 12:22 Go to previous messageGo to next message
Vincent WUHRLIN is currently offline Vincent WUHRLINFriend
Messages: 19
Registered: July 2009
Junior Member
In fact, i have forgotten to see the logs in user home.
I have see that the response of Nick concerne the same problem, but i
don't see what is wrong.
in the log, i have that :

!ENTRY
initial@reference :file:DMplugins/RMorg.eclipse.core.runtime_3.2.0.v20051208.j ar/
0 0 2006-02-20 13:14:43.890
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in
org.eclipse.core.internal.runtime.PlatformActivator.start() of bundle
org.eclipse.core.runtime.
...
...
Caused by: java.lang.NullPointerException

So, the Application is not executed, and i don't see what cause the null
exception.
Have you some ideas?

Thank you very much.
Vincent
Re: RCP and Java Webstart [message #444745 is a reply to message #444741] Mon, 20 February 2006 12:55 Go to previous messageGo to next message
Ricky is currently offline RickyFriend
Messages: 204
Registered: July 2009
Senior Member
Could you please provide the full stacktrace. Maybe purge it before you
run the application to remove stale entries.

Ricky
Re: RCP and Java Webstart [message #444746 is a reply to message #444745] Mon, 20 February 2006 13:03 Go to previous messageGo to next message
Vincent WUHRLIN is currently offline Vincent WUHRLINFriend
Messages: 19
Registered: July 2009
Junior Member
Ok, this the full log file :


!SESSION 2006-02-20 14:01:26.171
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR

!ENTRY
initial@reference :file:DMplugins/RMorg.eclipse.core.runtime_3.2.0.v20051208.j ar/
0 0 2006-02-20 14:01:28.828
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in
org.eclipse.core.internal.runtime.PlatformActivator.start() of bundle
org.eclipse.core.runtime.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1013)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:969)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:316)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:328)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1030)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:573)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:495)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:275)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:455)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:189)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:291)
Caused by: java.lang.NullPointerException
at
org.eclipse.core.internal.registry.eclipse.LegacyExtensionRe gistry.getExtensionPoint(LegacyExtensionRegistry.java:82)
at
org.eclipse.core.internal.runtime.AdapterManagerListener.reg isterFactoryProxies(AdapterManagerListener.java:42)
at
org.eclipse.core.internal.runtime.AdapterManagerListener.<init >(AdapterManagerListener.java:31)
at
org.eclipse.core.internal.runtime.InternalPlatform.start(Int ernalPlatform.java:980)
at
org.eclipse.core.internal.runtime.PlatformActivator.start(Pl atformActivator.java:40)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:994)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:988)
... 10 more
Root exception:
java.lang.NullPointerException
at
org.eclipse.core.internal.registry.eclipse.LegacyExtensionRe gistry.getExtensionPoint(LegacyExtensionRegistry.java:82)
at
org.eclipse.core.internal.runtime.AdapterManagerListener.reg isterFactoryProxies(AdapterManagerListener.java:42)
at
org.eclipse.core.internal.runtime.AdapterManagerListener.<init >(AdapterManagerListener.java:31)
at
org.eclipse.core.internal.runtime.InternalPlatform.start(Int ernalPlatform.java:980)
at
org.eclipse.core.internal.runtime.PlatformActivator.start(Pl atformActivator.java:40)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:994)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:988)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:969)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:316)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:328)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1030)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:573)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:495)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:275)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:455)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:189)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:291)

!ENTRY
initial@reference :file:DMplugins/RMorg.eclipse.equinox.preferences_1.0.0.v200 51211.jar/
0 0 2006-02-20 14:01:28.937
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in
org.eclipse.core.internal.preferences.Activator.start() of bundle
org.eclipse.equinox.preferences.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1013)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:969)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:316)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:328)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1030)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:573)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:495)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:275)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:455)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:189)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:291)
Caused by: java.lang.NullPointerException
at
org.eclipse.core.internal.preferences.PreferencesService.get PrefExtensions(PreferencesService.java:1134)
at
org.eclipse.core.internal.preferences.PreferencesService.ini tializeScopes(PreferencesService.java:91)
at
org.eclipse.core.internal.preferences.PreferencesService.<init >(PreferencesService.java:170)
at
org.eclipse.core.internal.preferences.PreferencesService.get Default(PreferencesService.java:83)
at
org.eclipse.core.internal.preferences.Activator.registerServ ices(Activator.java:64)
at
org.eclipse.core.internal.preferences.Activator.start(Activa tor.java:47)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:994)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:988)
... 10 more
Root exception:
java.lang.NullPointerException
at
org.eclipse.core.internal.preferences.PreferencesService.get PrefExtensions(PreferencesService.java:1134)
at
org.eclipse.core.internal.preferences.PreferencesService.ini tializeScopes(PreferencesService.java:91)
at
org.eclipse.core.internal.preferences.PreferencesService.<init >(PreferencesService.java:170)
at
org.eclipse.core.internal.preferences.PreferencesService.get Default(PreferencesService.java:83)
at
org.eclipse.core.internal.preferences.Activator.registerServ ices(Activator.java:64)
at
org.eclipse.core.internal.preferences.Activator.start(Activa tor.java:47)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:994)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:988)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:969)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:316)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:328)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1030)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:573)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:495)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:275)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:455)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:189)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:291)

!ENTRY org.eclipse.osgi 2006-02-20 14:01:28.968
!MESSAGE Startup error
!STACK 1
java.lang.IllegalStateException: Bundle
initial@reference :file:DMplugins/RMorg.eclipse.core.runtime_3.2.0.v20051208.j ar/
[1] is not active.
at
org.eclipse.core.runtime.adaptor.EclipseStarter.ensureBundle sActive(EclipseStarter.java:421)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.startup(Ecli pseStarter.java:309)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:173)
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.core.launcher.Main.invokeFramework(Main.java:338 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
at org.eclipse.core.launcher.WebStartMain.basicRun(WebStartMain .java:59)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.WebStartMain.main(WebStartMain.jav a:40)
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.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


------------------------------------------------------------ --------

Thank you very much,
Vincent
Re: RCP and Java Webstart [message #444755 is a reply to message #444746] Mon, 20 February 2006 14:25 Go to previous messageGo to next message
Ricky is currently offline RickyFriend
Messages: 204
Registered: July 2009
Senior Member
What version of eclipse are you using? Do you intent to use 3.2 stuff? It
is suspicious that equinox related plugins are failing. Do you have
equinox and all other mentioned plugins in your application, too? Are they
called in the proper order?

Ricky
Re: RCP and Java Webstart [message #444758 is a reply to message #444755] Mon, 20 February 2006 15:05 Go to previous messageGo to next message
Vincent WUHRLIN is currently offline Vincent WUHRLINFriend
Messages: 19
Registered: July 2009
Junior Member
I use Eclipse 3.2 M4 and i don't know really why i have Equinox related
plugins.
However, i use several Eclipse 3.2 plugin dependencies, i list the
different jar files that i used in my main jnlp : (i have keep the order
of product / configuration tab) :

<jar href="plugins/oreon_1.0.0.jar"/>
<jar href="plugins/org.eclipse.ant.core_3.1.100.v20051205.jar"/ >
<jar href="plugins/org.eclipse.core.commands_3.2.0.I20051212-2000.jar "/>
<jar href="plugins/org.eclipse.core.contenttype_3.2.0.v20051208.jar "/>
<jar href=" plugins/org.eclipse.core.expressions_3.2.0.v20051212-0800.ja r "/>
<jar href="plugins/org.eclipse.core.filesystem_1.0.0.v20051208.jar "/>
<jar
href=" plugins/org.eclipse.core.filesystem.win32.x86_1.0.0.v2005111 4.jar "/>
<jar href="plugins/org.eclipse.core.jobs_3.2.0.v20051208.jar"/>
<jar href="plugins/org.eclipse.core.resources_3.2.0.v20051208.jar "/>
<jar
href=" plugins/org.eclipse.core.resources.compatibility_3.2.0.v2005 1128.jar "/>
<jar href=" plugins/org.eclipse.core.resources.win32_3.2.0.v20051121.jar "/>
<jar href="plugins/org.eclipse.core.runtime_3.2.0.v20051208.jar"/ >
<jar
href=" plugins/org.eclipse.core.runtime.compatibility_3.1.0.v200511 211912.jar "/>
<jar href="plugins/org.eclipse.core.variables_3.1.100.v20051128.jar "/>
<jar href="plugins/org.eclipse.draw2d_3.2.0.jar"/>
<jar href="plugins/org.eclipse.equinox.common_1.0.0.v20051205.jar "/>
<jar href="plugins/org.eclipse.equinox.preferences_1.0.0.v20051211.jar "/>
<jar href="plugins/org.eclipse.equinox.registry_1.0.0.v20051214a.jar "/>
<jar href="plugins/org.eclipse.gef_3.2.0.jar"/>
<jar href="plugins/org.eclipse.help_3.2.0.v20051215.jar"/>
<jar href="plugins/org.eclipse.jface_3.2.0.I20051214-0010.jar"/ >
<jar href="plugins/org.eclipse.osgi_3.2.0.v20051212a.jar"/>
<jar href="plugins/org.eclipse.swt_3.2.0.v3218f.jar"/>
<jar href="plugins/org.eclipse.swt.win32.win32.x86_3.2.0.v3218.jar "/>
<jar href="plugins/org.eclipse.ui_3.2.0.I20051214-1200.jar"/>
<jar href="plugins/org.eclipse.ui.views_3.2.0.I20051129-0800.jar "/>
<jar href="plugins/org.eclipse.ui.workbench_3.2.0.I20051214-1200.jar "/>
<jar href=" plugins/org.eclipse.update.configurator_3.1.100.v20051214.ja r "/>

------------------------------------------------------------

This list of jar was created automatically by Eclipse.
The dependencies that i have defined in my xml are :
* org.eclipse.ui
* org.eclipse.core.runtime
* org.eclipse.ui.views
* org.eclipse.core.resources
* org.eclipse.gef
And two libraries for xml parsing.

I have search the cause but always nothing.
Thank you very much.

Vincent
Re: RCP and Java Webstart [message #444762 is a reply to message #444746] Mon, 20 February 2006 15:35 Go to previous messageGo to next message
Dave Carlson is currently offline Dave CarlsonFriend
Messages: 402
Registered: July 2009
Senior Member
This looks like the same error for which I've already submitted a bugzilla
related to both Eclipse 3.2 M4 and M5

https://bugs.eclipse.org/bugs/show_bug.cgi?id=125867


"Vincent" <vwuhrlin@merethis.com> wrote in message
news:042a70c57107e16c206389eb59452331$1@www.eclipse.org...
>
> Ok, this the full log file :
>
>
> !SESSION 2006-02-20
> 14:01:26.171 -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.5.0_06
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
>
> !ENTRY
> initial@reference :file:DMplugins/RMorg.eclipse.core.runtime_3.2.0.v20051208.j ar/
> 0 0 2006-02-20 14:01:28.828
> !MESSAGE FrameworkEvent.ERROR
> !STACK 0
> org.osgi.framework.BundleException: Exception in
> org.eclipse.core.internal.runtime.PlatformActivator.start() of bundle
> org.eclipse.core.runtime.
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1013)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:969)
> at
Re: RCP and Java Webstart [message #444763 is a reply to message #444762] Mon, 20 February 2006 15:56 Go to previous messageGo to next message
Vincent WUHRLIN is currently offline Vincent WUHRLINFriend
Messages: 19
Registered: July 2009
Junior Member
Thanks you very much !!!!
I have no the "java.lang.RuntimeException: No application id has been
found" error. Any ideas? I have seen lot of errors about that, i will read
all posts.
But i go to the next level :).
I have read that in the version of eclipse 3.2 M6, we don't have need to
make that. I will make a tutorial when all works, if somebody are
interesting...

Once again, thank you very much.

Vincent
Re: RCP and Java Webstart [message #444765 is a reply to message #444726] Mon, 20 February 2006 16:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cfieber.gmail.com

After much head-bashing trying to get my Eclipse RCP application to work
using the documented Java WebStart stuff, I ended up writing an
alternative to WebStartMain that basically establishes and/or updates a
working area (similar to what you get when you do a product export) by
connecting to a product site, and downloading a specified set of
features from that site, then invoking the standard Main from the
startup jar.

I'll attempt to get approval to submit that code, but it was pretty
simple to write if not.

-Cameron

Georges wrote:
> Hi All,
>
> I've been trying to export my RCP application using the Java Webstart technology using Eclipse 3.1.2 and Java 1.506 under Linux, without any success.
>
> I got several errors, some related to the plugins directory which is not valid, some related to the application id which hasn't been found, some related to plugins which are not resolved.
>
> To do it, I followed the Eclipse help ( http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/java_web_start.htm)
> for multiple plugins RCP, by creating a Feature project to wrap all plugins (Eclipse core plugins + my plugins)...
>
> I have attached all jnlp files + the log I've got from the cache.
>
> At the moment, everything seems to be downloaded "correctly", all jars are present in the cache, but the application doesn't start...
Re: RCP and Java Webstart [message #444766 is a reply to message #444765] Mon, 20 February 2006 16:17 Go to previous messageGo to next message
Vincent WUHRLIN is currently offline Vincent WUHRLINFriend
Messages: 19
Registered: July 2009
Junior Member
I am really interesting to have an example of that. But, just to know,
the features which called the files are on local disk?
I write this question because in my case, all files must are on a
webserver.
It is the main rule of my project: the persons dont want to install files
manually on the harddisk. So, webstart is a solution.
In your case, how that works?

Sincerely,
Vincent
Re: RCP and Java Webstart [message #444767 is a reply to message #444766] Mon, 20 February 2006 16:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cfieber.gmail.com

You first generate a feature project the same as you would for the
traditional WebStart deploy, but then generate an updatesite project for
that feature, build the updatesite, and publish that to the webserver.

The webstart application connects to the webserver, reads the site.xml
from the updatesite, and then, if necessary, downloads the features (and
their dependant features) from the webserver to the local pc, then runs
Main.

The actual classes launched by webstart are the eclipse startup jar +
the additional classes I wrote to do this download/update.

Vincent wrote:
>
> I am really interesting to have an example of that. But, just to know,
> the features which called the files are on local disk?
> I write this question because in my case, all files must are on a
> webserver.
> It is the main rule of my project: the persons dont want to install
> files manually on the harddisk. So, webstart is a solution.
> In your case, how that works?
>
> Sincerely,
> Vincent
>
>
Re: RCP and Java Webstart [message #444771 is a reply to message #444767] Mon, 20 February 2006 17:08 Go to previous messageGo to next message
Vincent WUHRLIN is currently offline Vincent WUHRLINFriend
Messages: 19
Registered: July 2009
Junior Member
OK, I see the global idea. It's really interesting, can you post your
different classes after finishing? I think it's can be a good alternative
to webstart.

At present, i am really desesperate about webstart. I have resolved the
product id error, and once again, a new error arrives. The webstart can
execute now the code inside the Application run function, but can't create
the display.
This is the log :

------------------------------------------------------------ ---------------------
!SESSION 2006-02-20 17:57:58.500
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR

!ENTRY org.eclipse.ui 4 4 2006-02-20 17:58:01.687
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2006-02-20 17:58:01.687
!MESSAGE No instance data can be specified.
!STACK 0
java.lang.IllegalStateException: No instance data can be specified.
at
org.eclipse.core.internal.runtime.DataArea.assertLocationIni tialized(DataArea.java:41)
at
org.eclipse.core.internal.runtime.DataArea.getStateLocation( DataArea.java:79)
at
org.eclipse.core.internal.preferences.InstancePreferences.ge tBaseLocation(InstancePreferences.java:44)
at
org.eclipse.core.internal.preferences.InstancePreferences.in itializeChildren(InstancePreferences.java:199)
at
org.eclipse.core.internal.preferences.InstancePreferences.<init >(InstancePreferences.java:59)
at
org.eclipse.core.internal.preferences.InstancePreferences.in ternalCreate(InstancePreferences.java:209)
at
org.eclipse.core.internal.preferences.EclipsePreferences.cre ate(EclipsePreferences.java:289)
at
org.eclipse.core.internal.preferences.EclipsePreferences.cre ate(EclipsePreferences.java:277)
at
org.eclipse.core.internal.preferences.PreferencesService.cre ateNode(PreferencesService.java:405)
at
org.eclipse.core.internal.preferences.RootPreferences.getChi ld(RootPreferences.java:63)
at
org.eclipse.core.internal.preferences.RootPreferences.getNod e(RootPreferences.java:96)
at
org.eclipse.core.internal.preferences.RootPreferences.node(R ootPreferences.java:85)
at
org.eclipse.ui.internal.JFaceUtil.initializeJFacePreferences (JFaceUtil.java:69)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:944)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1695)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:397)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at rcpmailwebstart.Application.run(Application.java:20)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:109)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:379)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:338 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
at org.eclipse.core.launcher.WebStartMain.basicRun(WebStartMain .java:59)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.WebStartMain.main(WebStartMain.jav a:40)
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.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

------------------------------------------------------------ ------------------

The line 20 of Application.java :
int returnCode = PlatformUI.createAndRunWorkbench(display, new
ApplicationWorkbenchAdvisor());


Webstart is really a assault course... (i don't know if my french
expression is good converted)
If somebody have an idea...

Thank you very much,
Vincent
Re: RCP and Java Webstart [message #444785 is a reply to message #444726] Mon, 20 February 2006 23:08 Go to previous messageGo to next message
Vincent WUHRLIN is currently offline Vincent WUHRLINFriend
Messages: 19
Registered: July 2009
Junior Member
ReHello, i am always currently blocked on a strange error of RCP WebStart.
A "No instance data can be specified" error.
The only information that i have found are about a bug of the workspace
creation, at the launch of application, but in my case, some files and
folders are created. All seems to be ok.

The application that i test is a simple RcpMail template plugin,
and the plugin of Ed Burnet works.

This is the beginning of the log error :
!ENTRY org.eclipse.ui 4 0 2006-02-20 17:58:01.687
!MESSAGE No instance data can be specified.
!STACK 0
java.lang.IllegalStateException: No instance data can be specified.

I am sure that after this error all of my webstart plugins will works, but
i have absolutly nothing ideas to resolve it.

Please Help !
Thank you very much.

P.s: if my plugin work i will share a very good tutorial !

Sincerely,
Vincent
Re: RCP and Java Webstart [message #444801 is a reply to message #444785] Tue, 21 February 2006 10:42 Go to previous messageGo to next message
Ricky is currently offline RickyFriend
Messages: 204
Registered: July 2009
Senior Member
Do you have the following in your JNLP file?

<property
name="osgi.instance.area"
value="@user.home/Application Data/myApp/workspace"/>

<property
name="osgi.configuration.area"
value="@user.home/Application Data/myApp/configuration"/>

Also be sure that these directories are writable by webstart.

I am really looking forward for this tutorial of yours! :)

Ricky
RCP Java Webstart 3.1 - 3.2, What is the difference? [message #444802 is a reply to message #444726] Tue, 21 February 2006 10:47 Go to previous messageGo to next message
Vincent WUHRLIN is currently offline Vincent WUHRLINFriend
Messages: 19
Registered: July 2009
Junior Member
Hello, i have made the exact same manipulation on my eclipse 3.1 that i
have realized on eclipse 3.2 yesterday. So, i have created a RcpMail
Plugin template,
created an feature project, exported to webstart...

All works fine ! My application is opened ad i can use as a exported
product.
The problem now is that my application was developped with gef on eclipse
3.2,
and recreate all the project in 3.1 will be a lost of time.

So, the error is of the Eclipse side, i Think it's equinox because i have
added these lines in 3.2 jnlp :
<property name="osgi.bundles" value="org.eclipse.equinox.common@2:start,
org.eclipse.core.jobs@2:start,
org.eclipse.core.runtime.compatibility.registry,
org.eclipse.equinox.registry@2:start, org.eclipse.equinox.preferences,
org.eclipse.core.contenttype, org.eclipse.core.runtime@2:start"/>

I will try the eclipse 3.2 M5, at present i have only the M4.

If someone have an idea and experience with eclipse 3.2, please help me :)
Thank you very much.

Vincent
Re: RCP Java Webstart 3.1 - 3.2, What is the difference? [message #444804 is a reply to message #444802] Tue, 21 February 2006 11:57 Go to previous messageGo to next message
Vincent WUHRLIN is currently offline Vincent WUHRLINFriend
Messages: 19
Registered: July 2009
Junior Member
I have tried the Eclipse 3.2 M5 and the result is same as Eclipse 3.2 M4.
The directory "workspace" is not created, and always the message "No
instance data can be specified."
I have these preferences for directory (which works good at eclipse 3.1) :

<property name="osgi.instance.area"
value="@user.home/Application Data/rcpmailwebstart/workspace"/>

<property name="osgi.configuration.area"
value="@user.home/Application Data/rcpmailwebstart/configuration"/>

So anyone have tested webstart on Eclipse 3.2 ?
I dont know what i must do at the moment, some ideas are good welcome.

Thank you very much !
Vincent
Re: RCP Java Webstart 3.1 - 3.2, What is the difference? [message #444829 is a reply to message #444804] Tue, 21 February 2006 21:13 Go to previous messageGo to next message
Dave Carlson is currently offline Dave CarlsonFriend
Messages: 402
Registered: July 2009
Senior Member
Hello Vincent,

I am also stumped on exactly the same problem. My JWS deployment works fine
on 3.1, but not on 3.2M5. I also have these two jnlp properties, and get
the same error. I've run out of ideas to fix it...

-- Dave Carlson

"Vincent" <vwuhrlin@merethis.com> wrote in message
news:1afe94b8116e4f52260aa32187074276$1@phoenix.eclipse.org...
>
> I have tried the Eclipse 3.2 M5 and the result is same as Eclipse 3.2 M4.
> The directory "workspace" is not created, and always the message "No
> instance data can be specified."
> I have these preferences for directory (which works good at eclipse 3.1) :
>
> <property name="osgi.instance.area"
> value="@user.home/Application Data/rcpmailwebstart/workspace"/>
> <property name="osgi.configuration.area"
> value="@user.home/Application Data/rcpmailwebstart/configuration"/> So
> anyone have tested webstart on Eclipse 3.2 ?
> I dont know what i must do at the moment, some ideas are good welcome.
>
> Thank you very much !
> Vincent
>
>
Re: RCP Java Webstart 3.1 - 3.2, What is the difference? [message #444840 is a reply to message #444829] Wed, 22 February 2006 10:29 Go to previous messageGo to next message
Vincent WUHRLIN is currently offline Vincent WUHRLINFriend
Messages: 19
Registered: July 2009
Junior Member
Hello, i have decided to stop my developpement on 3.2x, and i go back to
the 3.1.2 until webstart works on 3.2x. I have opened a bug declaration
on eclipse, i hope that i will have a response.

If i have good news or tutorial, i will post.

Sincerely,
Vincent
org.eclipse.swt.SWTException: Unable to load graphics library [message #444842 is a reply to message #444840] Wed, 22 February 2006 10:51 Go to previous messageGo to next message
Vincent WUHRLIN is currently offline Vincent WUHRLINFriend
Messages: 19
Registered: July 2009
Junior Member
Rehello, i have an deployement problem on a particular workstation.
All workstations can launch the webstart application, but an particular
computer have this error (its a windows 2000) :


!SESSION 2006-02-22 10:17:23.78
------------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR

!ENTRY org.eclipse.ui 4 4 2006-02-22 10:17:33.00
!MESSAGE Reference item menue not found for action editor_menu

!ENTRY org.eclipse.ui 4 4 2006-02-22 10:17:33.62
!MESSAGE Invalid Menu Extension (Group is invalid): menue

!ENTRY org.eclipse.ui 4 4 2006-02-22 10:17:33.62
!MESSAGE Invalid Menu Extension (Path is invalid): oreon.actions.gridsnap

!ENTRY org.eclipse.ui 4 4 2006-02-22 10:17:33.62
!MESSAGE Invalid Menu Extension (Path is invalid): oreon.actions.grid

!ENTRY org.eclipse.ui 4 4 2006-02-22 10:17:33.78
!MESSAGE Invalid Menu Extension (Path is invalid): oreon.actions.zoomall

!ENTRY org.eclipse.ui 4 4 2006-02-22 10:17:33.78
!MESSAGE Invalid Menu Extension (Path is invalid): oreon.actions.zoomin

!ENTRY org.eclipse.ui 4 4 2006-02-22 10:17:33.78
!MESSAGE Invalid Menu Extension (Path is invalid): oreon.actions.zoomout

!ENTRY org.eclipse.ui 4 4 2006-02-22 10:17:33.78
!MESSAGE Invalid Menu Extension (Path is invalid): oreon.actions.nextview

!ENTRY org.eclipse.ui 4 4 2006-02-22 10:17:33.93
!MESSAGE Invalid Menu Extension (Path is invalid):
oreon.actions.previousview

!ENTRY org.eclipse.ui 4 4 2006-02-22 10:17:34.78
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2006-02-22 10:17:34.78
!MESSAGE Unable to load graphics library [GDI+ is required]
(java.lang.UnsatisfiedLinkError: C:\Documents and
Settings\SJBSE\Application
Data\oreon\configuration\org.eclipse.osgi\bundles\25\1\.cp\s wt-gdip-win32-3139.dll:
Can't find dependent libraries)
!STACK 0
org.eclipse.swt.SWTException: Unable to load graphics library [GDI+ is
required] (java.lang.UnsatisfiedLinkError: C:\Documents and
Settings\SJBSE\Application
Data\oreon\configuration\org.eclipse.osgi\bundles\25\1\.cp\s wt-gdip-win32-3139.dll:
Can't find dependent libraries)
at org.eclipse.swt.SWT.error(SWT.java:2942)
at org.eclipse.swt.graphics.Device.checkGDIP(Device.java:175)
at org.eclipse.swt.graphics.Transform.<init>(Transform.java:105)
at org.eclipse.swt.graphics.Transform.<init>(Transform.java:56)


--------------------------------------------------------

Someone have already seen this error?
The files swt-gdip-win32-3139.dll and swt-win32-3139.dll are present on
the client. I have no ideas...

Thank you very much.
Vincent
Re: org.eclipse.swt.SWTException: Unable to load graphics library [message #444843 is a reply to message #444842] Wed, 22 February 2006 11:16 Go to previous message
Vincent WUHRLIN is currently offline Vincent WUHRLINFriend
Messages: 19
Registered: July 2009
Junior Member
In fact, it was on the swt faq :
http://www.eclipse.org/swt/faq.php#nographicslibrary
The webstart works now on the windows 2000 and the XP.

But, it is possible to include this dll on a webstart package?

Thank you very much.
Vincent
Previous Topic:Problem when starting Eclipse RCP SDK 3.1.0 ?
Next Topic:How to open another view from a customized View class?
Goto Forum:
  


Current Time: Fri Jan 03 04:23:01 GMT 2025

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

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

Back to the top