Java. Lang. Noclassdeffounderror: Org/Apache/Commons/Httpclient/Protocol/Protocolsocketfactory

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();

As you can see it is referencing ProtocolSocketFactory from commons-httpclient-3.1.jar.

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
Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article