Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem on Jar-Signing (URGENT)

 
Saurabh Parihaar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2584
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic