Skip to Content
Former Member
Oct 13, 2008 at 08:42 PM

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


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 !!!