Skip to content

Instantly share code, notes, and snippets.

@balubollam
Created November 30, 2015 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balubollam/d8d11cdf0cd15a51eb85 to your computer and use it in GitHub Desktop.
Save balubollam/d8d11cdf0cd15a51eb85 to your computer and use it in GitHub Desktop.
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
*I need to add patch to the httpcontext-osji using dependencies i.e adding pom.xml
Can Any one Please help me out how to add this patch or How to solve this error?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment