aspose file tools
The moose likes JNLP and Web Start and the fly likes jdk1.5 found unsigned entry in resource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "jdk1.5 found unsigned entry in resource" Watch "jdk1.5 found unsigned entry in resource" New topic

jdk1.5 found unsigned entry in resource

Ed Ewing

Joined: Aug 30, 2005
Posts: 29
Testing just now with webstart on windows with JDK version 1.5 I came across an error where webstart refused to launch my application claiming "found unsigned entry in resource". In other words, it claimed that my jar file was not properly signed. But the jar file IS properly signed, and worked fine with java 1.4.

A little research on showed that others have had this problem and that the solution is simply to try again. After reloading the jnlp file three times, the problem went away.

I don't like the idea that my customers may have to do this. They would probably assume there was an error in our application, not an error in WebStart, and might not be willing to re-try three times.

Anyone else seen this problem?

Know any work-arounds? Maybe I need to use a jdk1.5 jarsigner rather than the jdk1.4 jarsigner?
Bjørn Børresen

Joined: May 03, 2004
Posts: 8
Hello Ed!

I have this problem as well with 1.5.0. I get the error the first time I try to start the app when it needs to download the jars - when I click the link again, it tries again and downloads it without complaining about anything.

I have yet to find a solution to this. I think it may be a bug that's been there since 1.4.2:

.. but that one is closed, since it's a duplicate of this bug:

.. which is missing.

expressionengine freelancer - standalone registration form for expressionengine
Ed Ewing

Joined: Aug 30, 2005
Posts: 29
Here is another link at the sun site about this bug. It seems to have been around for a long time:
Somaiah Kumbera

Joined: Oct 15, 2009
Posts: 1

I had this problem on 1.6. It happened consistently, even after several tries. Turns out the PC I was on had disabled Java caching.

To fix:

Open Java Control Panel (from the Windows Control Panel)
Under the General tab, click “Settings…” in Temporary Internet Files
Check the “Keep temporary files on my computer” checkbox
Damian Nowak

Joined: Sep 01, 2011
Posts: 1

Somaiah is right. Disabling Java plugin caching is sometimes causing this error. I investigated this deeper and found the reason why it happens. Some antries in META-INF/MANIFEST.MF need to be removed to make the JAR working. Read my blogpost:

It's sad that this bug remains for *years* there...
srihari ravi

Joined: Feb 14, 2006
Posts: 1
Hi Somaiah & Damian, I already have the "Keep temporary files on my computer" option checked and yet face the issue. Any other workaround? My application is slightly different though: it is a JavaFX 2.0 application signed using JavaFX's <fx:signjar> ant target. Any pointers would be highly appreciated!

Also, can we not run a JNLP app without signing it in the first place?

Martin Vajsar

Joined: Aug 22, 2010
Posts: 3611

Hi shrihari, and welcome to the Ranch!

I'm not sure whether Somaiah and Damian still visit this forum, as they both posted only once some time ago.

Other people here might still be able to help you, though. You should probably tell us what your problem is (the exact error message etc.). In any case, you can use
to see whether the file is correctly signed.
Charles Grey

Joined: Jun 28, 2012
Posts: 1
Hi Martin,

I have a similar problem to shrihari. I'm building a JavaFX application with extensive reference to 3rd party libraries. I removed the signatures from all the files and then resigned using the option in Netbeans, under project properties.

I'm getting the security error as mentioned however.

error: Found unsigned entry in resource: file:/C:/NetBeansProjects/Besieged/dist/Besieged.jar
at Source)
at Source)
at Source)
at Source)
at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$ Source)
at Source)

I've checked using jarsigner -verify on the file in question, after I built the project.

The answer I get to that query is:

jar verified.
This jar contains entries whose certificate chain is not validated.
(I also get a 6 month expiry warning, not sure that matters too much).

Also in windows control panel -> java control panel -> settings -> temporary internet files (as per suggestion above), the cache is switched on, eliminating one particular workaround.

Any suggestions would be greatly appreciated.
Michael Markham

Joined: Aug 30, 2012
Posts: 1
I had the same problem while developing a JavaFX application and found that by clearing the "Temporary Internet Files" from the Java Control Panel, everything cleared up.

~~ Michael
Don't get me started about those stupid light bulbs.
subject: jdk1.5 found unsigned entry in resource