Closed seanleblancicdtech closed 1 year ago
Following up. Turns out the jar already has the shared object, and I guess it's a security-related issue for /tmp, so I remounted /tmp with the right options, and it now works.
sudo mount /tmp -o remount,exec
Thank you for the update! I'll close this out, please re-open if there are further issues.
I have the similar issue about provider initialisation for JCE sdk 5 ? any clue? thanks
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.amazonaws.cloudhsm.examples.AESGCMEncryptDecryptRunner.main(AESGCMEncryptDecryptRunner.java:45)
Caused by: com.amazonaws.cloudhsm.jce.jni.exception.InternalException: Failed to load cloudhsm_jce native library. Error: java.lang.UnsatisfiedLinkError: /tmp/CloudHsmNativeLibraryTemporaryDir8118521319059094837/libcloudhsm_jce.so: /tmp/CloudHsmNativeLibraryTemporaryDir8118521319059094837/libcloudhsm_jce.so: failed to map segment from shared object
at com.amazonaws.cloudhsm.jce.provider.CloudHsmProvider.
This is on RHEL 7. I've installed cloudhsm JCE 5.6.0:
I also ran the configure-jce step:
Is there something else to install to get the shared libraries for SDK 5?
When I try to run the fat jar built with Maven from the Github repo (on sdk5 branch), I get this: