Re: cayenne.jar signing problem

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Mar 09 2006 - 11:31:00 EST

  • Next message: Andrus Adamchik: "Re: Support: J2ME"

    Trying...

    jar tvf cayenne.jar |grep types
       ...
       2244 Mon Feb 13 13:19:30 MSK 2006 org/objectstyle/cayenne/dba/db2/
    types.xml
       2429 Mon Feb 13 13:19:30 MSK 2006 org/objectstyle/cayenne/dba/
    derby/types.xml
       1997 Mon Feb 13 13:19:30 MSK 2006 org/objectstyle/cayenne/dba/
    firebird/types.xml
       ...
       2244 Fri Nov 04 05:14:58 MSK 2005 org/objectstyle/cayenne/dba/db2/
    types.xml
       2429 Fri Nov 04 05:16:06 MSK 2005 org/objectstyle/cayenne/dba/
    derby/types.xml
       1997 Fri Nov 04 05:16:12 MSK 2005 org/objectstyle/cayenne/dba/
    firebird/types.xml
       2086 Tue Nov 08 11:24:44 MSK 2005 org/objectstyle/cayenne/dba/
    frontbase/types.xml
       2268 Fri Nov 04 05:16:06 MSK 2005 org/objectstyle/cayenne/dba/
    hsqldb/types.xml
       ...

    Looks like all types.xml files are indeed duplicated in the jar. I'll
    fix the build script. In the meantime you can manually repackage a
    jar file to exclude duplicates.

    Andrus

    On Mar 9, 2006, at 4:42 PM, Tomi NA wrote:

    > I'm building a netbeans platform based app which will use cayenne
    > in one of it modules. I'd like to deploy the app via JNLP but the
    > netbeans inbuilt JNLP app deployment doesn't seem to work. It
    > breaks when it tries to sign cayenne.jar:
    >
    > Signing JAR: /home/tomi/projekti/Acta 1.9.0/build/cluster/modules/ext
    > /cayenne.jar
    > jarsigner: unable to sign jar: java.util.zip.ZipException:
    > duplicate entry: org/objectstyle/cayenne/dba/db2/types.xml
    >
    > /opt/netbeans-5.0/harness/suite.xml:175: The following error
    > occurred while executing this line:
    > /opt/netbeans-5.0/harness/jnlp.xml:179: The following error
    > occurred while executing this line:
    > /opt/netbeans-5.0/harness/common.xml:237: exec returned: 1
    > BUILD FAILED (total time: 31 seconds)
    >
    > Any ideas why? This is v 1.2M10, I believe (certainly 1.2M8+).
    >
    > Tomislav



    This archive was generated by hypermail 2.0.0 : Thu Mar 09 2006 - 11:31:05 EST