cancel
Showing results for 
Search instead for 
Did you mean: 

Adding IAIKSecurity to the project

0 Kudos

Hello,

I have an application which uses javax.crypto library. I tried adding IAIKSecurity DC to Used DCs according to this thread:

After that the classes I need are imported just fine and the project builds, but when I try to run it, I get the following error: java.lang.IllegalStateException: Cipher not initialized

However, when I just deploy the war to Tomcat, it works fine.

Could anyone tell me how to fix this?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Pavel Korgenevskiy,

I have used this link to my existing project it's working fine.We can able to transport the project via NWDI with out any issue.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60d99678-1a29-2d10-94b4-9d9a67b71...

Please find the blow links also

/people/bala.krishnan2/blog/2006/09/25/bid-adieu-to-bots--using-captchas

/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro

Regards,

Prabha

0 Kudos

Thanks for your reply, Prabha.

The strange thing here is that javax.crypto is a standard library included in jre (or in the case of sap netweaver in IAIKSecurity DC, for some reason). So I don't think the algorithm for including an external jar really applies here.

Anyway, according to this it appears the problem is on server, not in our code:

http://help.sap.com/saphelp_nw04/helpdata/en/8d/cb71b8046e6e469bf3dd283104e65b/content.htm

We'll know whether this solution works or not in a few hours.

0 Kudos

Turns out we do have the nessessary library on our server. So the problem is somewhere else.

Ideas, any one?

0 Kudos

Solved the problem by using a third-party library instead of javax.crypto.