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.
Asked
Active
Viewed 698 times
1 Answers
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
-
I tried doing the same but it does not work even after removing the signature file which I did by reomving the .SF and .DSA files. – Johna Jun 05 '18 at 06:21
-
What error do you get if you remove all signature related content from jar and Manifest? – Christian Schneider Jun 05 '18 at 07:06