04-30-2013 03:07 AM - edited 04-30-2013 03:08 AM
I'm trying to sign my app but I always get the same error: Signing Failed.
I've tried using the method from console and from the Ripple Emulator, in both cases get the same error, here is the log:
[INFO] Parsing command line options [INFO] Parsing bbwp.properties [INFO] Validating WebWorks archive [INFO] Parsing config.xml [INFO] Populating application source [INFO] Compiling WebWorks application [INFO] Packaging the bar file [INFO] Bar packaging complete [INFO] Starting signing tool Exception in thread "main" java.lang.ExceptionInInitializerError at javax.crypto.SecretKeyFactory.nextSpi(SecretKeyFac
tory.java:294) at javax.crypto.SecretKeyFactory.<init>(SecretKeyFact ory.java:120) at javax.crypto.SecretKeyFactory.getInstance(SecretKe yFactory.java:159) at sun.security.pkcs12.PKCS12KeyStore.getPBEKey(Unkno wn Source) at sun.security.pkcs12.PKCS12KeyStore.engineLoad(Unkn own Source) at java.security.KeyStore.load(Unknown Source) at net.rim.device.codesigning.barsigner.BarSigner.a(U nknown Source) at net.rim.device.codesigning.barsigner.BarSigner.a(U nknown Source) at net.rim.device.codesigning.barsigner.BarSigner.mai n(Unknown Source) Caused by: java.lang.SecurityException: Can not initialize cryptographic mechani sm at javax.crypto.JceSecurity.<clinit>(JceSecurity.java :86) ... 9 more Caused by: java.lang.SecurityException: The jurisdiction policy files are not si gned by a trusted signer! at javax.crypto.JarVerifier.verifyPolicySigned(JarVer ifier.java:289) at javax.crypto.JceSecurity.loadPolicies(JceSecurity. java:316) at javax.crypto.JceSecurity.setupJurisdictionPolicies (JceSecurity.java:2 61) at javax.crypto.JceSecurity.access$000(JceSecurity.ja va:48) at javax.crypto.JceSecurity$1.run(JceSecurity.java:78 ) at java.security.AccessController.doPrivileged(Native Method) at javax.crypto.JceSecurity.<clinit>(JceSecurity.java :76) ... 9 more [ERROR] Signing failed
In the Ripple Emulator works very well "Package" and "Package and Install" but not "Package and sign"
Given what I've read here in the forum tried returning to Java JDK version 1.6, however it did not work.
I tried many ways and I definitely have not gotten to make it work so I write here, I really appreciate your help.
04-30-2013 04:23 AM
Well, if nothing else works, you can always create VM, make clean installation of Windows and required software inside it. This will remove all interference that may be caused by other software installed. I realize that it is a hard way but that should work.
Please click the Thumbs Up icon if this comment has helped you! If your issue is resolved, please click the solution button on the resolution!
04-30-2013 03:30 PM
Hi there, on top of JDK 1.6, you must ensure that it is the 32-bit version, not 64-bit. Can you please double-check in bbwp.properties where the <java> element is point? Example:
<java>C:\Program Files (x86)\Java\jdk1.6.0_31</java>
Beyond that, can you please confirm which WebWorks SDK you are using to package, as well as the full command being executed? (It didn't show up in the original text posted.)
If you can also provide a list of folders installed at the following two locations, it will help verify if any potential conflicts exist:
C:\Program File (x86)\Java
04-30-2013 06:19 PM
05-01-2013 02:29 PM