For Jest Client Implementation[How to add sslcontext class patch to the httclient-osgi jar


(balaji) #1

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)
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?

Thanks and regards
Balaji


(Jiayanju) #2

I also encountered the same problem. In my side It's caused by the jar conflict. There is no org/apache/http/ssl/SSLContexts in lower version http client. So I suggest you checking the jar conflict in your project.


(system) #3