Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

EJB - Sign message - Keystore access - NoClassDefFoundError

Hi experts,

I have a big issue and need any help as soon as possible! Thanks all !!!

My scenario:

One Webservice, created from an EJB, access the keystore and sign a message using a digital certificate !!!

The problem is:

When I test the webservice a get an error:

NoClassDefFoundError: com/sap/aii/security/api/SecurityContext

Informations:

1) PI 7.0 - Java SP16

2) Code: Keystore access:

SAPSecurityResources res = SAPSecurityResources.getInstance();

KeyStoreManager manager = res.getKeyStoreManager(PermissionMode.SYSTEM_LEVEL);

KeyStore keyStore = manager.getKeyStore(ksView);

I created a servlet put the same logic inside and gave it access to XiSecurityRuntimePermission then every thing works fine! I tried to give the same permition to EJB (jar) without success.

I would appreciate any help !!!

THANKS !!!

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question