Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Launching RCP Application via java webstart seems to do nothing
Launching RCP Application via java webstart seems to do nothing [message #458070] Mon, 13 November 2006 14:51 Go to next message
Eclipse UserFriend
Originally posted by: mushy.drkw.com

Hi,

I am trying to launch an RCP app onto a PC via java webstart, hosted on
the same PC using Tomcat. I have followed the example set out on the help
page -
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/java_web_start.htm
- almost exactly, namely:
Define a Product
Define a feature importing the product
Export the feature into separate jars
Use Ant to sign the jars
Archive as a .war
Deploy as .war file onto Tomcat.

When running the main jnlp, all the correct jars are downloaded, and the
correctly-branded download screens are displayed. However, once this is
complete, nothing happens. The page from which the app was launched
remains the same, and I cannot find evidence in any log files of any java
process having started. Could you please let me know what I am doing
wrong?

Cheers,

Mushy

I am using Eclipse 3.2, Tomcat 5.5, jdk/jre 1.5.0_06, all on a Win XP PC
The main jnlp file is attached below:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp
spec="1.0+"
codebase="http://iblongsw65577:8080/helloworld"
href="helloworld.jnlp"> <!-- URL to the site containing the jnlp
application. It should match the value used on export. Href, the name of
this file -->
<information>
<!-- user readable name of the application -->
<title> Helloo world </title>
<!-- vendor name -->
<vendor>MushyCorp International</vendor>
<!-- vendor homepage -->
<homepage href="http://localhost:8080" />
<!-- product description -->
<description>A program with which to manage hierarchies, or
somesuch</description>
<icon kind="splash" href="splash.bmp"/>
</information>

<!--request all permissions from the application. This does not change-->
<security>
<all-permissions/>
</security>

<!-- The name of the main class to execute. This does not change-->
<application-desc main-class="org.eclipse.core.launcher.WebStartMain">
<argument>-nosplash</argument>
</application-desc>

<resources>
<!-- Reference to the startup.jar. This does not change -->
<jar href="startup.jar"/>

<!-- Reference to all the plugins and features constituting the
application -->
<!-- Here we are referring to the wrapper feature since it
transitively refers to all the other plug-ins necessary -->
<extension
name="Main feature"
href="features/helloworld.feature_1.0.0.jnlp"/>

<!-- Information usually specified in the config.ini -->
<property
name="osgi.instance.area"
value="@user.home/Application Data/hm"/>
<property
name="osgi.configuration.area"
value="@user.home/Application Data/hm"/>

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

<!-- Indicate on a platform basis which JRE to use -->
<resources os="Mac">
<j2se version="1.5+" java-vm-args="-XstartOnFirstThread"/>
</resources>
<resources os="Windows">
<j2se version="1.5+"/>
</resources>
<resources os="Linux">
<j2se version="1.4+"/>
</resources>
</jnlp>
Re: Launching RCP Application via java webstart seems to do nothing [message #458099 is a reply to message #458070] Mon, 13 November 2006 18:47 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
Look in the config and workspace directories, which are (in your case) ~/Application Data/hm. In particular, look in hm/.metadata/.log to see what's going on. You might like to try changing those paths to something else e.g. c:\temp\data and c:\temp\config, just so you know where the files are being written to in case you can't find them.

Alex.
Re: Launching RCP Application via java webstart seems to do nothing [message #458104 is a reply to message #458099] Mon, 13 November 2006 22:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: linux.kaiho.de

Hi!

I have exactly the same problem like Mushy albeit in another environment (Eclipse 3.2.1, Apache 2.2, Java SDK 1.5.0_06, Linux GTK x86): Web Start downloads the JARs correctly but did not launch the product. It seems to do nothing. I followed 25.3 of the Eclipse RCP book by McAffer/Lemieux and all the discussed points in http://eclipsezone.com/eclipse/forums/t83652.html.

My problem seems to appear really early in the launching process. Here is the content of the log-file in the osgi area:

!SESSION Mon Nov 13 22:55:33 CET 2006 ------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 2006-11-13 22:55:33.169
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:393)
at org.eclipse.core.launcher.WebStartMain.basicRun(WebStartMain .java:58)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.WebStartMain.main(WebStartMain.jav a:40)

Any ideas?

Thanks for your help in advance!

Kai
Re: Launching RCP Application via java webstart seems to do nothing [message #458119 is a reply to message #458104] Tue, 14 November 2006 14:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mushy.drkw.com

@Alex - Thanks for that. I'll give it a pop, and let you know what happens.

Cheers,

Mushy
Re: Launching RCP Application via java webstart seems to do nothing [message #458120 is a reply to message #458104] Tue, 14 November 2006 14:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mushy.drkw.com

@kaiho - Yes - that's exactly what I get. I'll see if I can find the error
resoltion anywhere.

Cheers,

Mushy
Re: Launching RCP Application via java webstart seems to do nothing [message #458124 is a reply to message #458119] Tue, 14 November 2006 16:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mushy.drkw.com

Hi,

My log file is exactly the same as kaiho's, i.e.,
!SESSION Tue Nov 14 14:26:57 GMT 2006
------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 2006-11-14 14:26:57.432
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at org.eclipse.core.launcher.WebStartMain.basicRun(WebStartMain .java:58)
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)

This appears to be pointing to the following line in the source of
WebStartMain:

System.getProperties().put("osgi.framework", fwkURL);

I've had a poke around the web, and can't see anything relevant for that
error. Nowhere in my main jnlp do I set a property called
"osgi.framework" - is this the problem?

Thanks for your time,

Mushy
Re: Launching RCP Application via java webstart seems to do nothing [message #458134 is a reply to message #458124] Tue, 14 November 2006 21:36 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
It tries to find it automatically if it's not set (and in any case, since the Jar will be downloaded via Java WebStart, you don't know where it is). However, I recall that there was a bug with the name of the osgi.jar in 3.2.1; get rid of the R32x_ from the name (i.e. org.eclipse.osgi_3.2.1.R32x_v2345 -> org.eclipse.osgi_3.2.1-v2345).

Alex.
Re: Launching RCP Application via java webstart seems to do nothing [message #458207 is a reply to message #458134] Wed, 15 November 2006 17:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mushy.drkw.com

hmm. Have removed the R32x_ bit from the package name. Eclipse seems to
helpfully be digging up an old version of the osgi jar from somewhere
else, and packaging that. That resulted in the saem error as before. I'm
updating my eclipse version to 3.2.1 [it was 3.2.0], getting all of the
plugins afresh, and seeing what happens from there.

Thanks for the help so far

Mushy
Re: Launching RCP Application via java webstart seems to do nothing [message #458212 is a reply to message #458134] Wed, 15 November 2006 18:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: linux.kaiho.de

Thank you, Alex, this works! I've got another error now. :-)

Kai
Re: Launching RCP Application via java webstart seems to do nothing [message #458221 is a reply to message #458207] Thu, 16 November 2006 08:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: linux.kaiho.de

@Mushy (8): I only renamed the exported org.eclipse.osgi_3.2.1...jar in my JNLP-deployment/plugins-directory (and also the refering JNLP-file in the JNLP-deployment/features-directory).

Updating to 3.2.1 will probably not solve the problem, because I'm running 3.2.1, that suffers from that naming problem.

Kai
Re: Launching RCP Application via java webstart seems to do nothing [message #458300 is a reply to message #458221] Thu, 16 November 2006 16:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mushy.drkw.com

Got my head up my @rse a bit so gave up, and started from a blank sheet of
paper. I followed this rather good tutorial
(http://www.i-proving.ca/comments/RCP+and+Java+Web+Start), and it now
works fine.

Thanks Alex, Kai for your time and help
Re: Launching RCP Application via java webstart seems to do nothing [message #462920 is a reply to message #458134] Fri, 02 February 2007 11:28 Go to previous messageGo to next message
Igor Semenko is currently offline Igor SemenkoFriend
Messages: 14
Registered: July 2009
Junior Member
Alex, thank you very much for the hint and work around (org.eclipse.osgi_3.2.1.R32x_v2345 -> org.eclipse.osgi_3.2.1-v2345). This solved the problem for me but it looks to be some Eclipse RCP bug?

Do you know whether it will be fixed in platform?

Also, I found that using javaws from Java 6, I still receive the same NPE:
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at org.eclipse.core.launcher.WebStartMain.basicRun(WebStartMain .java:60)
at org.eclipse.core.launcher.Main.run(Main.java:984)
at org.eclipse.core.launcher.WebStartMain.main(WebStartMain.jav a:40)

Any ideas on how to work around under Java6?
Re: Launching RCP Application via java webstart seems to do nothing [message #462921 is a reply to message #462920] Fri, 02 February 2007 12:21 Go to previous message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
IIRC JavaWebStart, Java 1.6 and Eclipse 3.2 don't work. I'm not sure whether there's an open bug still or if it's been fixed in the 3.3 stream, but I'd stay away from Java 1.6 if you want to do WebStart for the time being.

Alex.
Previous Topic:Plugin Dependancy Problems
Next Topic:RCP App terminates after adding Action to ApplicationActionBarAdviso
Goto Forum:
  


Current Time: Sat Oct 05 06:55:12 GMT 2024

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

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

Back to the top