0 Replies Latest reply: Oct 31, 2013 8:13 AM by 4f9edec3-f45c-4dba-bb49-6cc05038407c RSS

    JWS deployment problem

    4f9edec3-f45c-4dba-bb49-6cc05038407c

      Hello

       

      I’ve developed a Java application named ‘Ixe’ that reads XML files and converts them into XLS files formatted in a certain manner. The application uses two extra .jar included in a user library in the build path :

      ·         poi-3.2-FINAL.jar

      ·         jdom-2.0.4 .jar

      The application runs fine.

       

      I’ve tried to deploy it with Java Web Start:

      1.       Creating a Dynamic Web application named ‘Wixe’ that contains the Ixe.jar

      2.       Creating a JNLP file like the one below :

      <jnlp spec="1.0+" codebase="http://localhost:8080/Wixe/" href="logiciel.jnlp">

      <information>

      <title>Wixe</title>

      <vendor>David Cohen</vendor>

      <description>Web Interface XML Excel</description>

      <icon kind="shortcut" href="http://localhost:8080/Wixe/images/Ixe.png" width="24" height="24"/>

              </information>

              <security>

      <all-permissions/>

              </security>

              <resources>

      <j2se version="1.7+" href="http://java.sun.com/products/autodl/j2se"/>

      <jar href="http://localhost:8080/Wixe/Ixe.jar"/>

               </resources>

               <application-desc main-class="vue.Visualisation"/>

      </jnlp>

      3.       Signning the file ‘Ixe.jar’

       

       

      I executed the following command to verify the signature :

      C:\Developpement\Java\workspace\Wixe\WebContent>jarsigner -verify -verbose Ixe.jar

       

      Console information : 

       

        s = signature was verified

        m = entry is listed in manifest

        k = at least one certificate was found in keystore

        i = at least one certificate was found in identity scope

       

      jar verified.

       

      C:\Developpement\Java\workspace\Wixe\WebContent>

       

      But at the execution of the application, the following error occurred:

      com.sun.deploy.net.JARSigningException: Détection d'une entrée non signée dans la ressource : http://localhost:8080/Wixe/Ixe.jar

                      at com.sun.javaws.security.SigningInfo.getCommonCodeSignersForJar(Unknown Source)

                      at com.sun.javaws.security.SigningInfo.check(Unknown Source)

                      at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)

                      at com.sun.javaws.security.JNLPSignedResourcesHelper.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.access$000(Unknown Source)

                      at com.sun.javaws.Main$1.run(Unknown Source)

                      at java.lang.Thread.run(Unknown Source)

       

       

      Can you help me?

       

      Thanks

       

      David Cohen