JDK-6497360 : Java Web Start is unable to download signed Java resources with a '.ear' extension
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: sparc
  • Submitted: 2006-11-26
  • Updated: 2010-04-04
  • Resolved: 2006-12-04
Related Reports
Duplicate :  
Description
When trying to download a signed Java resource with a '.ear' extension, Java Web Start fails with a JNLPException:

JNLPException[category: Security Error : Exception: null : LaunchDesc:
...
  at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(LaunchDownload.java:1229)
  at com.sun.javaws.LaunchDownload.checkSignedResources(LaunchDownload.java:1075)
  at com.sun.javaws.Launcher.prepareLaunchFile(Launcher.java:620)
  at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:165)
  at com.sun.javaws.Launcher.launch(Launcher.java:95)
  at com.sun.javaws.Main.launchApp(Main.java:299)
  at com.sun.javaws.Main.continueInSecureThread(Main.java:209)
  at com.sun.javaws.Main$1.run(Main.java:106)
  at java.lang.Thread.run(Thread.java:619)

The resource is downloaded without a problem if it is renamed so that the extension is '.jar' (and the .jnlp file changed accordingly).

Also, the unchanged .ear file downloads fine with 1.6.0-b72, so something has changed since then.

Testcase has been uploaded to sunsolve 'cores' ftp site as ibm-20061124.zip

  To reproduce:

1. Extract files from archive.
2. Change launch.jnlp to point to the app.ear file on your machine.
3. Run "javaws launch.jnlp".

Comments
WORK AROUND None (apart from changing the .ear file's extension to .jar).
26-11-2006