Topic RSS10:23, EET
February 2, 2015
OfflineHi,
I am building my application on Jenkins. When I add the jar files required for OPC UA implementation, I get the following exception when trying to run the application:
Exception in thread “main” java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
at sun.security.util.SignatureFileVerifier.processImpl(Unknown Source)
at sun.security.util.SignatureFileVerifier.process(Unknown Source)
at java.util.jar.JarVerifier.processEntry(Unknown Source)
at java.util.jar.JarVerifier.update(Unknown Source)
at java.util.jar.JarFile.initializeVerifier(Unknown Source)
at java.util.jar.JarFile.getInputStream(Unknown Source)
at sun.misc.URLClassPath$JarLoader$2.getInputStream(Unknown Source)
at sun.misc.Resource.cachedInputStream(Unknown Source)
at sun.misc.Resource.getByteBuffer(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Can you tell me if there is anything I need to do extra for the build please?
10:58, EET
April 3, 2012
OfflineDo you merge all the jars together? Because the bouncy castle jars are signed and therefore cannot be merged without breaking the signature, i.e. it wont work. So I suggest you create a lib folder for the application next to the main jar and set classpath attributes to take bouncy castle jars from the lib folder.
11:14, EET
February 2, 2015
OfflineYes, jars are merged then we build an .exe.
As you say, it is caused by BouncyCastle. It looks like I can exclude the .SF files from the manifest (see http://stackoverflow.com/quest…..-run-a-jar) and this seems to work.
1 Guest(s)

Log In
Register