ClassNotFoundException when using custom SSLSocketFactory

前端 未结 2 1928
死守一世寂寞
死守一世寂寞 2021-01-04 05:41

I have created a custom SSLSocketFactory class and set it as below

ldapEnv.put(Context.SECURITY_PROTOCOL, \"ssl\");
ldapEnv.put(FACTORY_SOCKET, socketFactory         


        
2条回答
  •  无人及你
    2021-01-04 06:29

    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.

提交回复
热议问题