This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Problem on Jar-Signing (URGENT) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Problem on Jar-Signing (URGENT)" Watch "Problem on Jar-Signing (URGENT)" New topic
Author

Problem on Jar-Signing (URGENT)

Saurabh Parihaar
Greenhorn

Joined: Nov 26, 2007
Posts: 2
Hi all.. I am new in Java/J2ee. Please help me to solve my problem.

I have to do jar signing of the Jar file for my application. For this I have written one ant script.
With this I am able to sign the jar file but on verify it is giving �java.util.zip.ZipException: The system cannot find the file specified�

[echo] Inside verification
[exec] jarsigner: java.util.zip.ZipException: The system cannot find the file specified
[exec] Result: 1

Where as on simply running jarsigner -verify dbm.jar (to verify the jar file) on command prompt.
jar verified. Message is coming. (It means my jar file is successfully signed.)

After this deploying the application in server and then login I am getting this exception.

java.lang.SecurityException: class "com.dbm.flow.demo.ProductMapping"'s signer information does not match signer information of other classes in the same package.
Please help me to solve this issue. Its urgent..

Thanks.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2497
    
    8

Can you run Ant in verbose mode? This wil give more detailed logging.

ant -verbose ...

(please do not use urgent in your posts. doesn't help)

Regards, Jan


OCUP UML fundamental and ITIL foundation
youtube channel
 
Don't get me started about those stupid light bulbs.
 
subject: Problem on Jar-Signing (URGENT)