Recently I’ve encountered a rather strange behaviour related to Java Web Start.

If, in your .jnlp file you are referencing some signed jars, sometimes the verification fails miserably with the following stacktrace:

com.sun.deploy.net.JARSigningException: Found unsigned entry in resource: 
	at com.sun.javaws.security.SigningInfo.getCommonCodeSignersForJar(Unknown Source)
	at com.sun.javaws.security.SigningInfo.check(Unknown Source)
	at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
	at com.sun.javaws.LaunchDownload.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)

If you are 100% sure that your jars are correctly signed, check if your JRE setup have “Keep temporary files on my computer” option enabled. That solved the problem for me.

So if you are on Windows: Control Panel -> Java and then:

Hope it helps.

11 thoughts on “How to resolve “com.sun.deploy.net.JARSigningException: Found unsigned entry in resource:”

  1. WebVPN Java Plugins fail to load after upgrade to Java 7 Update 45 with the following General Exception error – ‘com.sun.deploy.net.JARSigningException: Found unsigned entry in resource:

    Conditions: Windows or Mac OSX machines using Java 7 Update 45.

    Workaround: 1) Disable the option ‘Keep temporary files on my computer’ on the Java Control Panel -> General -> Settings. This works for both Mac OSX and Windows.

    or

    2) Downgrade Java to version 7 Update 40 or below

    Reply

Leave a reply

required


five − 1 =

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>