[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] WebStart doesnt work in Java 6.0

Hello,

I have a WebStarted RCP app that works under 5.0, but under 6.0 I get exception:

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.java:40)

It seems searchFor method returns null here:

//Set the fwk location since the regular lookup would not find it
String fwkURL = searchFor(framework, null);
System.getProperties().put(PROP_FRAMEWORK, fwkURL);
super.basicRun(args);

My JNLP is:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp 
    spec="1.0+" 
    codebase="file:///c:\temp\win32.win32.x86" 
    href="josephine.jnlp">
    
  <information>
    <title>Josephine</title>  
    <vendor>CEPAC Morava</vendor>
    <homepage href="http://www.cepac.cz"; /> 
    <description>Výukový software pro deskriptivu</description> 
    <icon kind="splash" href="splash.jpg"/>
  </information>
 
  <security>
    <all-permissions/>
  </security>
 
  <application-desc main-class="org.eclipse.core.launcher.WebStartMain">
    <argument>-nosplash</argument>
  </application-desc>
 
  <resources>
    <jar href="startup.jar"/>
 
    <extension 
        name="cz.upol.jo_feature"
        href="features/cz.upol.jo_feature_1.0.0.jnlp"/>
 
    <!-- Information usually specified in the config.ini -->
    <property 
        name="eclipse.product" 
        value="cz.upol.jo.product"/>
    <property 
        name="osgi.bundles" 
        value="org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start"/>
    <property 
        name="osgi.bundles.defaultStartLevel" 
        value="4"/>
        
    <property name="osgi.instance.area" value="@user.home/.josephine"/>
    <property name="osgi.configuration.area" value="@user.home/.josephine"/>
  </resources>

  <!-- Indicate on a platform basis which JRE to use --> 
  <resources os="Windows">
    <j2se version="1.5+"/>
  </resources>
  
  <resources os="Linux">
    <j2se version="1.5+"/>
    <property name="osgi.ws" value="gtk"/>
  </resources>
</jnlp>

And the feature JNLP is:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="file:///c:\temp\win32.win32.x86">
	<information>
		<title>Jo_feature Feature</title>
		<vendor>Cepac</vendor>
		<offline-allowed/>
	</information>
	<security>
		<all-permissions/>
	</security>
	<component-desc/>
	<resources>
		<j2se version="1.5.0+" />
	</resources>
	<resources>
		<jar href="plugins/com.ibm.icu_3.4.4.1.jar"/>
		<jar href="plugins/cz.upol.jo_1.0.1.jar"/>
		<jar href="plugins/org.eclipse.core.commands_3.2.0.I20060605-1400.jar"/>
		<jar href="plugins/org.eclipse.core.contenttype_3.2.0.v20060603.jar"/>
		<jar href="plugins/org.eclipse.core.expressions_3.2.0.v20060605-1400.jar"/>
		<jar href="plugins/org.eclipse.core.jobs_3.2.0.v20060603.jar"/>
		<jar href="plugins/org.eclipse.core.runtime_3.2.0.v20060603.jar"/>
		<jar href="plugins/org.eclipse.core.runtime.compatibility.auth_3.2.0.v20060601.jar"/>
		<jar href="plugins/org.eclipse.equinox.common_3.2.0.v20060603.jar"/>
		<jar href="plugins/org.eclipse.equinox.preferences_3.2.0.v20060601.jar"/>
		<jar href="plugins/org.eclipse.equinox.registry_3.2.0.v20060601.jar"/>
		<jar href="plugins/org.eclipse.help_3.2.0.v20060602.jar"/>
		<jar href="plugins/org.eclipse.jface_3.2.0.I20060605-1400.jar"/>
		<jar href="plugins/org.eclipse.jface.databinding_1.0.0.I20060605-1400.jar"/>
		<jar href="plugins/org.eclipse.opengl_0.5.0.jar"/>
		<jar href="plugins/org.eclipse.osgi_3.2.0.v20060601.jar"/>
		<jar href="plugins/org.eclipse.rcp_3.2.0.v20060605.jar"/>
		<jar href="plugins/org.eclipse.swt_3.2.0.v3232o.jar"/>
		<jar href="plugins/org.eclipse.ui_3.2.0.I20060605-1400.jar"/>
		<jar href="plugins/org.eclipse.ui.views_3.2.0.I20060605-1400.jar"/>
		<jar href="plugins/org.eclipse.ui.workbench_3.2.0.I20060605-1400.jar"/>
		<jar href="plugins/org.eclipse.update.configurator_3.2.0.v20060605.jar"/>
		<jar href="plugins/org.eclipse.update.core_3.2.0.v20060605.jar"/>
		<jar href="plugins/org.eclipse.update.scheduler_3.2.0.v20060605.jar"/>
		<jar href="plugins/org.eclipse.update.ui_3.2.0.v20060605.jar"/>
		<jar href="plugins/org.eclipse.opengl.selectbuffer_0.5.0.jar"/>
	</resources>
	<resources os="Windows" arch="x86">
		<jar href="plugins/org.eclipse.opengl.selectbuffer.win32.win32.x86_0.5.0.jar"/>
		<jar href="plugins/org.eclipse.opengl.win32.x86_0.5.0.jar"/>
		<jar href="plugins/org.eclipse.swt.win32.win32.x86_3.2.0.v3232m.jar"/>
		<jar href="plugins/org.eclipse.update.core.win32_3.2.0.v20060605.jar"/>
	</resources>
	<resources os="Linux" arch="x86">
		<jar href="plugins/org.eclipse.swt.gtk.linux.x86_3.2.0.v3232m.jar"/>
		<jar href="plugins/org.eclipse.update.core.linux_3.2.0.v20060605.jar"/>
		<jar href="plugins/org.eclipse.opengl.linux.x86_0.5.0.jar"/>
		<jar href="plugins/org.eclipse.opengl.selectbuffer.gtk.linux_0.5.0.jar"/>
	</resources>
	<resources>
		<jar href="plugins/org.eclipse.ui.forms_3.2.0.v20060602.jar"/>
	</resources>
</jnlp>

Anyone? :-(