Launching RCP Application via java webstart seems to do nothing [message #458070] |
Mon, 13 November 2006 14:51 |
Eclipse User |
|
|
|
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 #458104 is a reply to message #458099] |
Mon, 13 November 2006 22:19 |
Eclipse User |
|
|
|
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 #458124 is a reply to message #458119] |
Tue, 14 November 2006 16:46 |
Eclipse User |
|
|
|
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 #458207 is a reply to message #458134] |
Wed, 15 November 2006 17:02 |
Eclipse User |
|
|
|
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 #458221 is a reply to message #458207] |
Thu, 16 November 2006 08:41 |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05714 seconds