Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2007

Tip: Looking for answers? Try searching our database.

Ant SignJar task problem in 1.7.0

Thread view: 
NickDG - 18 Oct 2007 12:07 GMT
We used to have Ant 1.6.x with which we signed our JARs for use with
Webstart. Recently we upgraded to Eclipse 3.3.0 and that comes with
Ant 1.7.0.

Now we discovered that our JARs aren't signed correctly any more.

In the output there now appears a request for the pass phrase for each
JAR:

[...]
[signjar] Signing JAR: C:\projects\nokeos\nokeos.war\client\lib\client
\commons-validator__V1.3.0.jar to C:\projects\nokeos\nokeos.war\client
\lib\client\c
ommons-validator__V1.3.0.jar as OurAlias
 [signjar] Warning: The signer certificate will expire within six
months.
 [signjar] Enter Passphrase for keystore:
 [signjar] Signing JAR: C:\projects\nokeos\nokeos.war\client\lib
\client\jakarta-oro__V2.0.8.jar to C:\projects\nokeos\nokeos.war\client
\lib\client\jakarta
-oro__V2.0.8.jar as OurAlias
 [signjar] Warning: The signer certificate will expire within six
months.
 [signjar] Enter Passphrase for keystore:
[...]

These are the targets that work with 1.6.5:

<target name="sign_jars" depends="generate_keystore">
       <signjar keystore="keystore" alias="OurAlias" storepass="xyz"
verbose="no" lazy="yes">
           <fileset refid="fileset.web.client" />
       </signjar>
   </target>

   <target name="generate_keystore" depends="check_keystore"
unless="keystore_exists">
       <genkey alias="OurAlias" storepass="xyz" keystore="keystore">
               <param name="CN" value="OurCommonName" />
           </dname>
       </genkey>
   </target>

What's wrong?
Andrew Thompson - 18 Oct 2007 13:23 GMT
...
> What's wrong?

Dunno.  Been signing Jar's all evening using Ant 1.7.
No problem whatsoever.

You got an SSCCE that replicates this behaviour you
observe?

Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.