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.
Summary: | Dependent jars are not getting signed while building Java Webstart Application | ||
---|---|---|---|
Product: | projects | Reporter: | shilpa1990 |
Component: | Java Webstart | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | neigor |
Priority: | P1 | ||
Version: | 8.0.2 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Screenshot of the exception I am getting.
Screenshot Screenshot2 |
Both the project main jar and the dependent libraries (dist/lib/*.jar) are signed. In case the jar is unsigned the error shown in the attached screenshot is shown. In my simple test project AnagramGame depending on Lucene-core-3.5.0.jar both jars are signed and the following output is logged: Signing JAR: /Users/tom/Downloads/test/AnagramGame/dist/anagrams.jar to /Users/tom/Downloads/test/AnagramGame/dist/anagrams.jar as ... Signing JAR: /Users/tom/Downloads/test/AnagramGame/dist/lib/lucene-core-3.5.0.jar to /Users/tom/Downloads/test/AnagramGame/dist/lib/lucene-core-3.5.0.jar ... Also looking at the dist/lib/lucene-core-3.5.0.jar the jar contains signing, see screenshot2. The signing is done in jnlp-impl.xml: <sign-jars keystore="${jnlp.signjar.keystore}" storepass="${jnlp.signjar.storepass}" keypass="${jnlp.signjar.keypass}" alias="${jnlp.signjar.alias}" mainjar="${dist.jar}" destdir="dist" codebase="${jnlp.codebase.value}" signedjarsprop="jnlp.signed.jars" componentsprop="jnlp.components"> <fileset dir="dist/lib"> <include name="*.jar"/> </fileset> </sign-jars> Please attach a test project. Created attachment 160011 [details]
Screenshot
Created attachment 160012 [details]
Screenshot2
|
Created attachment 158260 [details] Screenshot of the exception I am getting. I am signing my Web Start application with trusted certificates. However, the 3rd party jars in dist/lib seem to be unsigned. So when I run my application in the debugger, it refuses to start complaining of unsigned jars. ExitException[ 3]com.sun.deploy.net.FailedDownloadException: Unable to load resource file:/C:/Users/me/Desktop/dist/lib/jna-4.0.1.jar I need a urgent soluntion for the issue . Please help me with the same.