title: Java Web Start Jar signing Issue?
body: <p>I'm trying to run this Java application (jar) via Java Web Start and    am having an incredibly difficult time.</p>
  
  <p>Here's my current JNLP source:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; 
  &lt;jnlp spec="1.0+" codebase="http://localhost:8080/" href="Test.jnlp"&gt;
      &lt;information&gt;
          &lt;title&gt;Jnlp Testing&lt;/title&gt;
          &lt;vendor&gt;YONG MOOK KIM&lt;/vendor&gt;
          &lt;homepage href="http://localhost:8080/" /&gt;
          &lt;description&gt;Testing Testing&lt;/description&gt;
      &lt;/information&gt;
      &lt;security&gt;
          &lt;all-permissions/&gt;
      &lt;/security&gt;
      &lt;resources&gt;
          &lt;j2se version="1.6+" /&gt;
          &lt;jar href="TestJnlp.jar" /&gt;
          &lt;jar href="lib/appframework-1.0.3.jar"/&gt;
          &lt;jar href="lib/junit-4.7.jar"/&gt;
          &lt;jar href="lib/org.eclipse.swt.win32.win32.x86_64_3.100.0.v4233d.jar"/&gt;
          &lt;jar href="lib/org-netbeans-modules-java-j2seproject-copylibstask.jar"/&gt;
          &lt;jar href="lib/sqlite-jdbc-3.7.2.jar"/&gt;
          &lt;jar href="lib/swing-worker-1.1.jar"/&gt;
      &lt;/resources&gt;
      &lt;application-desc main-class="proteotypic.ProteotypicQuantificationApp" /&gt;
  &lt;/jnlp&gt;
  </code></pre>
  
  <p>Upon running the JNLP file, I get the following Error:</p>
  
  <pre><code>JNLPException[category: Launch File Error : Exception: null : LaunchDesc:
  
  ---- here the JNLP ----
  
  at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)
  at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source)
  at com.sun.javaws.Launcher.prepareResources(Unknown Source)
  at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
  at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
  at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
  at com.sun.javaws.Launcher.launch(Unknown Source)
  at com.sun.javaws.Main.launchApp(Unknown Source)
  at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
  at com.sun.javaws.Main$1.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>I have signed all the jars except <code>lib/org.eclipse.swt.win32.win32.x86_64_3.100.0.v4233d.jar</code> - if I sign that one too, I get a different exception:</p>
  
  <pre><code>com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://localhost:8080/lib/org.eclipse.swt.win32.win32.x86_64_3.100.0.v4233d.jar
  at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
  at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
  at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
  at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
  at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
  at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
  at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
  at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  
  java.io.IOException: invalid SHA1 signature file digest for org/eclipse/swt/awt/SWT_AWT$4.class
  at com.sun.deploy.cache.CacheEntry$9.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at com.sun.deploy.cache.CacheEntry.writeFileToDisk(Unknown Source)
  at com.sun.deploy.cache.Cache.downloadResourceToTempFile(Unknown Source)
  at com.sun.deploy.cache.Cache.downloadResourceToCache(Unknown Source)
  at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
  at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
  at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
  at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
  at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
  at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
  at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
  at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>After doing "javaws -viewer" and re-running the JNLP, I get:</p>
  
  <p><a href="https://gist.github.com/3183636" rel="nofollow">https://gist.github.com/3183636</a></p>