<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:sans-serif;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
tt
        {font-family:"Courier New";}
span.EmailStyle19
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
/* List Definitions */
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Aha!! Just got this working. There
were actually two problems:</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>(1)<font size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>
</span></font></span></font><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>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.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>(2)<font size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>
</span></font></span></font><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>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.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Many thanks,</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Bart</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Phill_Perryman@Mitel.COM
[mailto:Phill_Perryman@Mitel.COM] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, July 08, 2003 4:47
PM<br>
<b><span style='font-weight:bold'>To:</span></b> Bart Read<br>
<b><span style='font-weight:bold'>Cc:</span></b> jdom-interest@jdom.org;
jdom-interest-admin@jdom.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [jdom-interest] Re:
Signing jdom.jar and xerces.jar</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
</span></font><tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>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</span></font></tt> <br>
<br>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>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</span></font></tt> <br>
<br>
<font size=2 face=sans-serif><span style='font-size:10.0pt;font-family:sans-serif'>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.<br>
<br>
/Phill<br>
IS Dept, Software Engineer.<br>
phill_perryman@mitel.com<br>
http://www.mitel.com<br>
Tel: +44 1291 436023</span></font> <br>
<br>
</p>
<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
style='width:100.0%'>
<tr>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
</td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><b><font size=1 face=sans-serif><span style='font-size:
7.5pt;font-family:sans-serif;font-weight:bold'>"Bart Read" <bart.read@uk.lionbioscience.com></span></font></b>
<br>
<font size=1 face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>Sent
by: jdom-interest-admin@jdom.org</span></font> </p>
<p><font size=1 face=sans-serif><span style='font-size:7.5pt;font-family:
sans-serif'>08/07/2003 15:19</span></font> </p>
</td>
<td valign=top style='padding:.75pt .75pt .75pt .75pt'>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'> </span></font><br>
<font size=1 face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>
To: <jdom-interest@jdom.org></span></font>
<br>
<font size=1 face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>
cc: </span></font> <br>
<font size=1 face=sans-serif><span style='font-size:7.5pt;font-family:sans-serif'>
Subject: [jdom-interest] Re:
Signing jdom.jar and xerces.jar</span></font></p>
</td>
</tr>
</table>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
<br>
<br>
</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:
Arial'>Hi All,</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>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?</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Anybody
got any ideas? I'm using blackdown J2SDK v1.4.1 on Red Hat 7.1.</span></font>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Many
thanks,</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Bart</span></font>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font>
</p>
</div>
</div>
</body>
</html>