I have created a custom SSLSocketFactory class and set it as below
ldapEnv.put(Context.SECURITY_PROTOCOL, \"ssl\");
ldapEnv.put(FACTORY_SOCKET, socketFactory
It's been a very long time since I posted this question. Since this post doesn't have any answers and also seems to be getting some views, I thought I could share what I did then to resolve it finally (I had already posted this in comments section of the question years ago).
I was able to resolve this issue by including that jar file in boot loader class path using -Xbootclasspath/a: option. But I didn't like this solution anyway.