Skip to content

Instantly share code, notes, and snippets.

@balubollam
balubollam / gist:d8d11cdf0cd15a51eb85
Created November 30, 2015 09:40
How to add org.apache.http.ssl.SSLContexts patch to the httpcontext-osji jar??
HI Everyone
I am implementing Jest client for Amazon client client connection.But iam getting this following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/ssl/SSLContexts
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.getSocketFactory(SSLConnectionSocketFactory.java:172)
at io.searchbox.client.config.HttpClientConfig$Builder.build(HttpClientConfig.java:247)
at com.ktree.amazon.esclient.ConnectToAmazon.main(ConnectToAmazon.java:14)
Caused by: java.lang.ClassNotFoundException: org.apache.http.ssl.SSLContexts
But when i R&D on this i had come to know that