Advertisement

07.17.2008 at 10:34AM PDT, ID: 23574142
[x]
Attachment Details

How do I add new files to a signed jar without getting the error: JAR resources in JNLP file are not signed by same certificate

Asked by mooresn in Java Programming Language, BEA WebLogic Application Server, ANT

Tags: Java web start, jar jarsigner

I have a web start application which consists of several jar files (packaged into a war file).
I have the certificate that was used to originally sign the jars.

I want to add a new file to one of the jars and repackage. After adding the file to the jar and then signing the jar and repackaging, I get the following error upon launching java web start:
JAR resources in JNLP file are not signed by same certificate

I am sure the certificate is the same. Do I need to go through each and every jar and sign them all again, or is there something else wrong here?

If the only solution is to re-sign all the jars, then does anyone have an ant script already that they can share?

Some notes:
When I add the new file and sign the jar, I am not modifying the contents of the META-INF directory at all. I read somewhere else that you could try removing part of the MANIFEST and/or the .SF and .RSA files - I cant find official documentation from sun that says doing this is valid, so did not try this.

Because of the pre-packaged nature of the application the jnlp file must not be changed if it can be avoided.

Thanks.Start Free Trial
[+][-]07.17.2008 at 10:36AM PDT, ID: 22027878

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Programming Language, BEA WebLogic Application Server, ANT
Tags: Java web start, jar jarsigner
Sign Up Now!
Solution Provided By: CEHJ
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.21.2008 at 06:15AM PDT, ID: 22279089

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08.27.2008 at 03:10PM PDT, ID: 22329797

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628