Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4423304

jarsigner failes to sign a jar file with a specific class file

    XMLWordPrintable

Details

    • 05
    • x86
    • windows_nt

    Description



      Name: boT120536 Date: 03/08/2001


      on winnt 4.0
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      on linux :
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
      Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)


      When trying to sign a jar file which contains a specific class file, the
      signing completes without any message, but when i do a jarsigner -verify
      it fails with the following message :
      d:/jdk/jdk1.3/bin/jarsigner -verify d:/slegge/dev/signedjars/alftest.jar
      jarsigner: java.io.IOException: invalid manifest format

      I've tried the same thing on both windows nt 4.0 and linux redhat 6.2, and it's
      the same problem.

      I sign using a certificate from Verisign. The certificate is of type pkcs12.
      I have also tried with a dummy, self signed certificate made by myself. Same
      problem.

      Since the class name and it's package name is quite long, I suspected that to
      be the problem. But other classes with longer names works fine.

      When compiling the following class (BusinessRules),
      javac -d /classes/ ExtMaterial_sample_property_valueBusinessRules.java
      and making a jar file in the classes directory :
      jar -cvf sign_not_ok.jar com/ , it's NOT possible to sign the jar file.

      When compiling the following class (ConsistencyCheck),
      javac -d /classes/ ExtMaterial_sample_property_valueConsistencyCheck.java
      and making a jar file in the classes directory :
      jar -cvf sign_ok.jar com/ , it's possible to sign the jar file.


      The source code for the class which it's impossible to sign
      package com.pgs.dm.slegge.server.dataaccess.special.rca.material_sample_property_value;
      public class ExtMaterial_sample_property_valueBusinessRules
      {
      }

      The source code for the class which it's possible to sign
      package com.pgs.dm.slegge.server.dataaccess.special.rca.material_sample_property_value;
      public class ExtMaterial_sample_property_valueConsistencyCheck
      {
      }
      (Review ID: 117672)
      ======================================================================

      Attachments

        Activity

          People

            mullan Sean Mullan
            bonealsunw Bret O'neal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: