title: jars not signed when lauched in browser, but not in javaws
body: <p>I have a small webstart application on a local webserver, accesable at localhost:5000/games/game.jnlp accessing that through Firefox and Chromium leads to the following error:</p>
  
  <pre><code>net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. 
      at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:778)
      at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:552)
      at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:889)
  Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars. Application requested security permissions, but jars are not signed.
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.setSecurity(JNLPClassLoader.java:312)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.&lt;init&gt;(JNLPClassLoader.java:232)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:357)
      at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:330)
      at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:770)
      ... 2 more
  </code></pre>
  
  <p>which pops up in the Swing style error message.</p>
  
  <p>My JNLP file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;jnlp
      spec="1.0+"
      href="game.jnlp"
      &gt;
  
    &lt;information&gt;
      &lt;title&gt;Space Shapes&lt;/title&gt;
      &lt;vendor&gt;WorldsProject&lt;/vendor&gt;
      &lt;homepage href="http://www.worldsproject.org"/&gt;
      &lt;description&gt;A game where you must shoot shapes in space.&lt;/description&gt;
      &lt;description kind="short"&gt;A game where you must shoot shapes in space.&lt;/description&gt;
    &lt;/information&gt; 
    &lt;security&gt;
      &lt;all-permissions/&gt;
    &lt;/security&gt;   
    &lt;resources&gt;
      &lt;j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+" max-heap-size="512m"/&gt;
      &lt;jar href="game.jar"/&gt;  
      &lt;jar href="resources.jar"/&gt;
      &lt;jar href="slick.jar"/&gt;
      &lt;jar href="jogg-0.0.7.jar"/&gt;    
      &lt;jar href="jorbis-0.0.15.jar"/&gt;
      &lt;jar href="lwjgl.jar"/&gt;
      &lt;nativelib href="lwjgl-libs.jar"/&gt;
    &lt;/resources&gt;
  
    &lt;application-desc main-class="org.worldsproject.fluxware.spaceshapes.SpaceShapesGame"/&gt;
  
  &lt;/jnlp&gt;
  </code></pre>
  
  <p>I've confirmed everything is signed correctly with</p>
  
  <pre><code>jarsigner -verify -certs -verbose
  </code></pre>
  
  <p>I've look at the jnlp with JaNeLA, all green and yellow messages, no errors at all. I've tested other webstarts, all of which work, except mine.</p>
  
  <p>EDIT, a link to all my jars and jnlp file: <a href="https://www.dropbox.com/sh/hzagv1e4t4jr43t/WA-LVXp5tc" rel="nofollow">https://www.dropbox.com/sh/hzagv1e4t4jr43t/WA-LVXp5tc</a></p>