I am looking for a jar alternative for commons-httpclient-3.1.jar.

It contains a java class called ProtocolSocketFactory.

ProtocolSocketFactory class is not present in httpclient4 or httpclient5.

ProtocolSocketFactory particular class is referenced in opensaml-2.6.6.jar.

DefaultBootstrap.bootstrap();

Opensaml jar decompiled

As you can see it is referencing ProtocolSocketFactory from commons-httpclient-3.1.jar. enter image description here

Any way to fix this issue related to commons-httpclient-3.1.jar whereby, i can remove the jar and still make opensaml work with some alternative to commons-httpclient.

2

Related questions 7 Apache HttpClient throws a NoClassDefFoundError 15 HttpClient NoClassDefFoundError 4 NoClassDefFoundError with simple Apache HttpClient Eclipse project Related questions 7 Apache HttpClient throws a NoClassDefFoundError 15 HttpClient NoClassDefFoundError 4 NoClassDefFoundError with simple Apache HttpClient Eclipse project 1 java.lang.NoClassDefFoundError: org/apache/http/HttpEntity 2 "main" java.lang.NoClassDefFoundError: org/apache/http/HttpEntity 5 java.lang.NoClassDefFoundError: org/apache/http/conn/HttpClientConnectionManager 0 org.apache.http.client-4.3.6: java.lang.NoClassDefFoundError: org.apache.http.impl.conn.PoolingHttpClientConnectionManager 0 org.apache.http.conn.ssl.SSLConnectionSocketFactory not found within HttpClientBuilder.build() 8 Java 9 HttpClient java.lang.NoClassDefFoundError: jdk/incubator/http/HttpClient 4 Error: NoClassDefFoundError: org/apache/commons/logging/LogFactory Load 7 more related questions Show fewer related questions

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.