After resolving the below mention problem, I start getting the exception given below.
Exception : [ERROR] Exception at line 122, column 68 of oxf:/ops/pfc/xforms-epilogue.xpl (re
ading processor output: name=’document’, id=’xhtml-data’)
java.security.InvalidKeyException: Public key presented not for certificate sign
at org.bouncycastle.jce.provider.X509CertificateObject.verify(Unknown So
at java.security.AccessController.doPrivileged(Native Method)
The resolution to this problem was probably the last nail in the coffin of my problems which I was facing since last 13-14 days. I have found the resolution on this link. Though you can find the steps of resolution of this problem on the link (And infect they are original) I am writing them again (copying infect) in case this link stop working tomorrow.
1. Suppose you are using jdk15. Go to http://java.sun.com/javase/downloads/index_jdk5.jsp
2. Go to the Other Downloads section and click on download link next to “Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 5.0”
3. Download jce_policy-1_5_0.zip and extract it in to a directory.
4. You will find local_policy.jar and US_export_policy.jar files there in the extracted directory. Copy these two files to $JAVA_HOME/jre/lib/security directory. (These files will already be there. you may replace them)
5. Restart WSO2 WSAS and invoke your secured service again. You will not encounter the “invalidkeyException” any more.
I would like to say thanks to Charitha to help me out in resolving this issue in the same way as Yuvi is doing to Kumar Sangakara and M. Jaya to help him in winning a match or two for KIP.