Ok, so the good news are that I was able to use Keyczar 0.5b on GAE/J
without any problem (so no specific instructions are necessary).
But something is wrong with my local dev environment. I'm using a mac
with java 1.5 (32 bit), maven and eclipse for a GWT + GAE/J
application.
My Keyczar unit tests run fine on both maven and eclipse.
When I run the GWT + GAE/J application in hosted mode, I get the
following exception:
Caused by: java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at java.security.Provider$Service.newInstance(Provider.java:1130)
at javax.crypto.Mac.a(DashoA12275)
at javax.crypto.Mac.init(DashoA12275)
at org.keyczar.HmacKey$HmacStream.initSign(HmacKey.java:115)
at org.keyczar.Encrypter.encrypt(Encrypter.java:141)
at org.keyczar.Encrypter.encrypt(Encrypter.java:113)
at org.keyczar.Encrypter.encrypt(Encrypter.java:184)
... 30 more
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission loadLibrary.keychain)
at java.security.AccessControlContext.checkPermission
(AccessControlContext.java:264)
at java.security.AccessController.checkPermission
(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
532)
at com.google.appengine.tools.development.DevAppServerFactory
$CustomSecurityManager.checkPermission(DevAppServerFactory.java:122)
at java.lang.SecurityManager.checkLink(SecurityManager.java:818)
at java.lang.Runtime.loadLibrary0(Runtime.java:816)
at java.lang.System.loadLibrary(System.java:993)
at com.apple.crypto.provider.HmacCore.<clinit>(HmacCore.java:26)
... 52 more
what does this mean?
Thanks!