This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 150112 - RuntimeException: jarsigner execution failed
Summary: RuntimeException: jarsigner execution failed
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Deployment (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P1 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-14 16:08 UTC by Lark Fitzgerald
Modified: 2008-10-21 10:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lark Fitzgerald 2008-10-14 16:08:02 UTC
Windows Vista, latest and greatest ...

Running samples. Works OK on default configuration. Change config to emulator or applet. Change the configuration back 
and I get this error. Perhaps it is know error and it has a work around.
...
Pack200 & gzip compression of libraries
application Jar packaging
ZoneInfo: C:\Program Files\Java\jdk1.6.0_10\lib\zi\ZoneInfoMappings (The system cannot find the path specified)
ZoneInfo: C:\Program Files\Java\jdk1.6.0_10\lib\zi\ZoneInfoMappings (The system cannot find the path specified)
application Pack200 compression
ZoneInfo: C:\Program Files\Java\jdk1.6.0_10\lib\zi\ZoneInfoMappings (The system cannot find the path specified)
application Pack200 decompression
ZoneInfo: C:\Program Files\Java\jdk1.6.0_10\lib\zi\ZoneInfoMappings (The system cannot find the path specified)
generating temporary keystore for self-signing
executing commandline: [C:\Program Files\Java\jdk1.6.0_10\bin\keytool.exe, -genkey, -keystore, 
C:\Users\octav\Documents\NetBeansProjects\MyBouncyBubbles\build\.keystore, -storepass, password, -alias, key1, -
keypass, password, -dname, CN=octav]
signing Jar: C:\Users\octav\Documents\NetBeansProjects\MyBouncyBubbles\dist\MyBouncyBubbles.jar
executing commandline: [C:\Program Files\Java\jdk1.6.0_10\bin\jarsigner.exe, -keystore, 
C:\Users\octav\Documents\NetBeansProjects\MyBouncyBubbles\build\.keystore, -storepass, password, -keypass, password, 
C:\Users\octav\Documents\NetBeansProjects\MyBouncyBubbles\dist\MyBouncyBubbles.jar, key1]
jarsigner: attempt to rename C:\Users\octav\Documents\NetBeansProjects\MyBouncyBubbles\dist\MyBouncyBubbles.jar to 
C:\Users\octav\Documents\NetBeansProjects\MyBouncyBubbles\dist\MyBouncyBubbles.jar.orig failed
Exception in thread "main" java.lang.RuntimeException: jarsigner execution failed, exit code: 1
       at com.sun.tools.javafx.packager.Main.signJar(Main.java:482)
       at com.sun.tools.javafx.packager.Main.execute(Main.java:834)
       at com.sun.tools.javafx.packager.Main.main(Main.java:149)
can't open C:\Program Files\Java\jdk1.6.0_10\lib\tzmappings.
C:\Users\octav\Documents\NetBeansProjects\MyBouncyBubbles\nbproject\build-impl.xml:124: exec returned: 1
BUILD FAILED (total time: 3 seconds)

----------------------------------
Yes, this happends to me when the jar is still locked by browser on Windows. Unfortunatelly Java plugin keeps all jars 
locked.
Workaround is to close all windows related to the browser runnig the app and check if Java icon in system tray 
disappears.
This should be fixed on Plugin side or we should make a copy of each application for each execution.
Comment 1 Martin Ryzl 2008-10-14 16:31:44 UTC
Adam's comment:
at least I've implemented simple check during the build. It caches the error and prints some reasonable message.

This issue should be better fixed in Java plugin and javafx launcher. There should be no reason to lock everything on
classpath.

Fix on our side (packager or netbeans plugin) would be very complicated. All the JNLPs, HTML, Jar and libraries would
have to be generated to a new location for each execution. It will produce a lot of mess and the application may start
to behave differently (as there is still another instance running in the same browser).
Or we may include some native tool for Windows to force closing of such file handles.
Comment 2 Karthikeyan Rajeswaran 2008-10-18 21:25:24 UTC
From the error message:
   ZoneInfo: C:\Program Files\Java\jdk1.6.0_10\lib\zi\ZoneInfoMappings (The system cannot find the path specified)

In jdk1.6, the directory "zi" is found at <jdkdir>/jre/lib/zi (and not under <jdkdir>/lib/). It looks the
javafx-plugin/ide is looking under the wrong path, which may need to be corrected.
Comment 3 Lark Fitzgerald 2008-10-20 18:08:02 UTC
No longer reproducible 
Tested using Promoted SDK #42/Plugin build #41 Oct 20, 2008 6:57:29 PM
Product: javafx-1.0dev, Platform: windows-i586, Build-Number: 749, Build-ID: 2008-10-17_19-02-42 on:
Product Version: NetBeans IDE 6.5 RC1 (Build 200810171318)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 4 Alexandr Scherbatiy 2008-10-21 10:44:46 UTC
verified