0

I have converted a jar into OSGI bundle by extracting the jar, changing its MANIFEST.MF file and converting it to bundle using command jar cfm new-6.0.1.jar .\META-INF\MANIFEST.MF . But when I am trying to run the code I am getting error java.lang.SecurityException: Invalid signature file digest for Manifest main attributes Please provide your suggestions how to resolve this error.

Johna
  • 85
  • 1
  • 8
  • 1
    the files in the jar are secured . by changing one of them the jar is invalid and therefor you get this error. you must re-sign the jar so the signature is valid again – Henning Luther Jun 04 '18 at 10:09

1 Answers1

0

Does you deployment require signed jars? If not then you can simply remove all signature related attributes from the Manifest.

Christian Schneider
  • 19,420
  • 2
  • 39
  • 64