cancel
Showing results for 
Search instead for 
Did you mean: 

KeystoreManager error

Former Member
0 Kudos

Hi Experts,

I have a scenario where I have to Digitally sign the XML content. I am following the below URL to implement the scenario.

http://help.sap.com/saphelp_nw04/helpdata/en/a4/d0201854fb6a4cb9545892b49d4851/frameset.htm

I have added keystore_api.jar , tc_sec_ssf.jar to my application but still I am facing errors during runtime when Context object is assigned to KeyStore Manager.

Code Snippet :

InitialContext ctx = ctx = new InitialContext();

Object ctxObj = (Object) ctx.lookup("keystore");

KeystoreManager manager = (KeystoreManager) ctxObj;

Error:

java.lang.ClassCastException.

I have checked the validation for ctxObj , it is not null and able to find the lookup.

Could you please help me how to resolve ClassCastException error.

Thanks,

Madhan

Accepted Solutions (1)

Accepted Solutions (1)

Bernhard_SAP
Employee
Employee
0 Kudos

moved this thread to the appropriate forum.....

Former Member
0 Kudos

Madhan, have you resolved this issue?

Thanks!

Answers (1)

Answers (1)

siddharth_jain
Active Contributor
0 Kudos

Hi Madhan,

Make sure that your J2EE key store service is running .

Check the following threads:

Go to page no 210 of the below mentioned PDF for Key store service:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/fdb09490-0201-0010-e09e-a7638864...

Regards,

Siddharth