A NullPointerException at this location implies that the org.eclipse.osgi 
bundle was not found.
It was looked for in the in the results returned from 
Enumeration resources = WebStartMain.class
.getClassLoader().getResources(JarFile.MANIFEST_NAME);

-Andrew



"Swanson, Dennis" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
11/29/2007 02:31 PM
Please respond to
Equinox development mailing list <equinox-dev@eclipse.org>


To
"'Equinox development mailing list'" <equinox-dev@eclipse.org>
cc

Subject
RE: [equinox-dev] Could not find main-class org.eclipse.core.laun 
cher.WebStartMain






My bad Alex... Apparently I can't read.  The following did work afterall.
 
  <application-desc 
main-class="org.eclipse.equinox.launcher.WebStartMain"> 
    <argument>-nosplash</argument> 
  </application-desc>
 
Now we're getting a null pointer exception.  But at least we've gotten 
past that part.  Here's the NPE that we're getting if anyone has a 
suggestion on that.
 
java.lang.NullPointerException
      at java.util.Hashtable.put(Unknown Source)
      at 
org.eclipse.equinox.launcher.WebStartMain.basicRun(WebStartMain.java:77)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
      at 
org.eclipse.equinox.launcher.WebStartMain.main(WebStartMain.java:56)
      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)
 
Dennis
 
 

From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Swanson, Dennis
Sent: Thursday, November 29, 2007 9:47 AM
To: 'Equinox development mailing list'
Subject: RE: [equinox-dev] Could not find main-class org.eclipse.core.laun 
cher.WebStartMain
 
Not sure if this helps, but I did some more searching and it appears that 
we're having the same problems that Tejah had back in August. 
http://www.eclipsepowered.org/forums/thread.jspa?messageID=92168477&#92168477
 
The link suggests that culprit may be that the 
org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar could be referenced 
from the wrong jnlp.  I verified our jnlp and it looks right to me.  So 
there's something else funky going on.
 
Anybody have any more ideas?
 

From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Swanson, Dennis
Sent: Wednesday, November 28, 2007 5:51 PM
To: 'Equinox development mailing list'
Subject: RE: [equinox-dev] Could not find main-class org.eclipse.core.laun 
cher.WebStartMain. class
 
If only It was that easy.  =)  I made the change as you suggested, but got 
the same error:  "Could not find main-class 
org.eclipse.core.launcher.WebStartMain in 
http://localhost:18080/AgileCourtWebStart/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
"
 

From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Andrew Niefer
Sent: Wednesday, November 28, 2007 5:40 PM
To: Equinox development mailing list
Subject: Re: [equinox-dev] Could not find main-class 
org.eclipse.core.launcher.WebStartMain. class
 

In 3.3 the Webstart main class is 
org.eclipse.equinox.launcher.WebStartMain. 

We left a stub org.eclipse.core.launcher.Main, but it looks like we forgot 
to put a stub for the old WebStartMain. 

I expect you simply need to change 

  <application-desc 
main-class="org.eclipse.equinox.launcher.WebStartMain.class"> 
    <argument>-nosplash</argument> 
  </application-desc> 

-Andrew 

"Swanson, Dennis" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED] 
11/28/2007 05:29 PM 


Please respond to
Equinox development mailing list <equinox-dev@eclipse.org>



To
"'equinox-dev@eclipse.org'" <equinox-dev@eclipse.org> 
cc
 
Subject
[equinox-dev] Could not find main-class 
org.eclipse.core.launcher.WebStartMain. class
 


 
 




We are trying to migrate our RCP application from Eclipse 3.2 to 3.3.1.1. 
When we deploy the application, we get the following error:  #### Could 
not find main-class org.eclipse.core.launcher.WebStartMain.class in 
http://localhost:18080/AgileCourtWebStart/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
 

  
Below is the full exception with the JNLP file included.  Does anyone have 
any suggestions? 
  
Thanks, 
Dennis 
  
JNLPException[category: Launch File Error : Exception: null : LaunchDesc: 
<jnlp spec="1.0+" codebase="http://localhost:18080/AgileCourtWebStart/";> 
  <information> 
    <title>AgileCourt Rich Client 1.0</title> 
    <vendor>(c) 2007 ACS</vendor> 
    <homepage href="
http://localhost:18080/AgileCourtWebStart/www.acs-inc.com"/> 
    <description>AgileCourt Rich Client 1.0</description> 
  </information> 
  <security> 
    <all-permissions/> 
  </security> 
  <resources> 
    <j2se initial-heap-size="134217728" max-heap-size="134217728" 
version="1.5+"/> 
    <extension href="http://localhost:18080/RcpWebStart/RcpWebStart.jnlp"; 
name="RCP Framework"/> 
    <jar href="
http://localhost:18080/AgileCourtWebStart/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
" download="eager" main="false"/> 
    <jar href="
http://localhost:18080/AgileCourtWebStart/acs.ui.AgileCourt_0.1.73321606.jar
" download="eager" main="false"/> 
    <property name="osgi.configuration.area" 
value="@user.home/AgileCourt/configuration"/> 
    <property name="osgi.instance.area" 
value="@user.home/AgileCourt/workspace"/> 
    <property name="osgi.bundles" 
value="[EMAIL PROTECTED]:start,[EMAIL PROTECTED]:start,[EMAIL PROTECTED], 

 
com.ibm.icu,flute,itext,javax.servlet,js,org.apache.batik.bridge,org.apache.batik.css,org.apache.batik.dom.svg,org.apache.batik.dom,
 

 
org.apache.batik.ext.awt,org.apache.batik.parser,org.apache.batik.svggen,org.apache.batik.transcoder,org.apache.batik.util.gui,
 

 
org.apache.batik.util,org.apache.batik.xml,org.apache.commons.codec,org.apache.xerces,org.apache.xml.resolver,
 

 
org.eclipse.ant.core,org.eclipse.birt.chart.engine.extension,org.eclipse.birt.chart.engine,org.eclipse.birt.chart.reportitem,
 

 
org.eclipse.birt.core,org.eclipse.birt.data,org.eclipse.birt.report.data.adapter,org.eclipse.birt.report.engine.emitter.html,
 

 
org.eclipse.birt.report.engine.emitter.pdf,org.eclipse.birt.report.engine.emitter.postscript,org.eclipse.birt.report.engine.emitter.ppt,
 

 
org.eclipse.birt.report.engine.emitter.prototype.excel,org.eclipse.birt.report.engine.emitter.wpml,org.eclipse.birt.report.engine,
 

 
org.eclipse.birt.report.model,org.eclipse.core.commands,org.eclipse.core.contenttype,org.eclipse.core.databinding,
 

              org.eclipse.core.expressions, 
 
org.eclipse.core.filesystem.win32.x86,org.eclipse.core.filesystem,org.eclipse.core.jobs,org.eclipse.core.resources.compatibility,
 

 
org.eclipse.core.resources.win32,org.eclipse.core.resources,org.eclipse.core.runtime.compatibility.auth,
 

 
org.eclipse.core.runtime.compatibility,org.eclipse.core.runtime,org.eclipse.core.variables,
 

 
org.eclipse.datatools.connectivity.oda.consumer,org.eclipse.datatools.connectivity.oda.profile,org.eclipse.datatools.connectivity.oda,
 

 
org.eclipse.datatools.connectivity,org.eclipse.datatools.enablement.oda.xml, 

 
org.eclipse.draw2d,org.eclipse.emf.common,org.eclipse.emf.ecore.xmi,org.eclipse.emf.ecore,
 

 
org.eclipse.equinox.app,org.eclipse.equinox.common,org.eclipse.equinox.preferences,org.eclipse.equinox.launcher,org.eclipse.equinox.registry,
 

 org.eclipse.help,org.eclipse.jface.databinding,org.eclipse.jface, 
 
org.eclipse.osgi.services,org.eclipse.osgi,org.eclipse.swt.win32.win32.x86,org.eclipse.swt,org.eclipse.ui.forms,org.eclipse.ui.workbench,
 

 
org.eclipse.ui,org.eclipse.update.configurator,org.w3c.css.sac,org.w3c.dom.smil,org.w3c.dom.svg"/>
 

    <property name="eclipse.product" value="acs.ui.AgileCourt.Client"/> 
  </resources> 
  <application-desc 
main-class="org.eclipse.core.launcher.WebStartMain.class"> 
    <argument>-nosplash</argument> 
  </application-desc> 
</jnlp> ] 
      at com.sun.javaws.LaunchDownload.getMainClassName(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) 
  
 _______________________________________________
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev

_______________________________________________
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to