[jdom-interest] Re: Signing jdom.jar and xerces.jar
Bart Read
bart.read at uk.lionbioscience.com
Tue Jul 8 09:14:39 PDT 2003
Aha!! Just got this working. There were actually two problems:
(1) I have been using a makefile. It seems that when I invoke
jarsigner from the makefile it wasn't too happy with me using a relative
path name for jdom.jar. I gave it a fully qualified path name, defined
in terms of an environment variable (so it's not tied down to just my
system) and it works fine.
(2) xerces.jar is sealed. So although the jarsigner utility was
reporting no problems signing the jar, web start didn't like it because
it thought the manifest wasn't signed - solution is to remove the
manifest file from the jar, and then run jarsigner which will sign the
jar and create a new manifest in it.
Thanks for the tip about JDOM not needing Xerces: I'm afraid I'm still
used to Java not coming with XML support as standard so I added it out
of habit. Renders (2) rather pointless, but it's worth knowing for
other situations where sealed JAR files are being used.
Many thanks,
Bart
-----Original Message-----
From: Phill_Perryman at Mitel.COM [mailto:Phill_Perryman at Mitel.COM]
Sent: Tuesday, July 08, 2003 4:47 PM
To: Bart Read
Cc: jdom-interest at jdom.org; jdom-interest-admin at jdom.org
Subject: Re: [jdom-interest] Re: Signing jdom.jar and xerces.jar
I use JDOM with webstart (hope you don't have any Microsoft
authenticating proxy servers in the way) and use a signed B9 jar file
c:\was\j2sdk1.4.1_01\bin\jarsigner -keystore
c:\was\workspace\mpt_build\mptKeystore
c:\was\workspace\mpt_build\webstart\mpt\lib\jdom.jar mpt
So it is possible but this is all in a windows environment. If you are
using 1.4.1 you don't actually need xerces as JDOM works fine with the
jdk unless you want a particular version of xerces.
/Phill
IS Dept, Software Engineer.
phill_perryman at mitel.com
http://www.mitel.com
Tel: +44 1291 436023
"Bart Read" <bart.read at uk.lionbioscience.com>
Sent by: jdom-interest-admin at jdom.org
08/07/2003 15:19
To: <jdom-interest at jdom.org>
cc:
Subject: [jdom-interest] Re: Signing jdom.jar and
xerces.jar
Hi All,
I'm using JDOM for some prototyping with an application that runs using
Java Web Start. I've modified my JNLP file and have set everything up
correctly as far as I'm aware. But I now need to sign both jdom.jar and
xerces.jar. The problem is that every time I try to sign jdom.jar I get
an error message saying the JAR cannot be signed. Do I need to build it
from scrach or something?
Anybody got any ideas? I'm using blackdown J2SDK v1.4.1 on Red Hat 7.1.
Many thanks,
Bart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20030708/e6f676cb/attachment.htm
More information about the jdom-interest
mailing list