Is there any chance of upgrading this requirement?
According to Apache: http://hc.apache.org/httpclient-3.x/
The Commons HttpClient project is now end of life, and is no longer being developed. It has been replaced by the Apache HttpComponents project in its HttpClient and HttpCore modules, which offer better performance and more flexibility.
We have written some custom server-side code to connect as a client over TLSv1.2, and want to use the new HttpClient libraries and are running into a conflict with isomorphics requirements.
[WARN] Server class 'org.apache.http.conn.socket.LayeredConnectionSock etFactory' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/***/lib/httpclient-4.3.2.jar' to the web app classpath for this session
[WARN] Server class 'org.apache.http.util.Args' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/***/lib/httpcore-4.3.1.jar' to the web app classpath for this session
Exception in thread "Timer-1" java.lang.NoSuchFieldError: INSTANCE
at org.apache.http.impl.io.DefaultHttpRequestWriterFa ctory.<init>(DefaultHttpRequestWriterFactory.java: 52)
at org.apache.http.impl.io.DefaultHttpRequestWriterFa ctory.<init>(DefaultHttpRequestWriterFactory.java: 56)
at org.apache.http.impl.io.DefaultHttpRequestWriterFa ctory.<clinit>(DefaultHttpRequestWriterFactory.jav a:46)
at org.apache.http.impl.conn.ManagedHttpClientConnect ionFactory.<init>(ManagedHttpClientConnectionFacto ry.java:72)
at org.apache.http.impl.conn.ManagedHttpClientConnect ionFactory.<init>(ManagedHttpClientConnectionFacto ry.java:84)
at org.apache.http.impl.conn.ManagedHttpClientConnect ionFactory.<clinit>(ManagedHttpClientConnectionFac tory.java:59)
at org.apache.http.impl.conn.PoolingHttpClientConnect ionManager$InternalConnectionFactory.<init>(Poolin gHttpClientConnectionManager.java:487)
at org.apache.http.impl.conn.PoolingHttpClientConnect ionManager.<init>(PoolingHttpClientConnectionManag er.java:147)
at org.apache.http.impl.conn.PoolingHttpClientConnect ionManager.<init>(PoolingHttpClientConnectionManag er.java:136)
at org.apache.http.impl.conn.PoolingHttpClientConnect ionManager.<init>(PoolingHttpClientConnectionManag er.java:112)
at org.apache.http.impl.client.HttpClientBuilder.buil d(HttpClientBuilder.java:726)
at ***(***)
at ***(***)
at ***(***)
at ***$1.run(***)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
According to Apache: http://hc.apache.org/httpclient-3.x/
The Commons HttpClient project is now end of life, and is no longer being developed. It has been replaced by the Apache HttpComponents project in its HttpClient and HttpCore modules, which offer better performance and more flexibility.
We have written some custom server-side code to connect as a client over TLSv1.2, and want to use the new HttpClient libraries and are running into a conflict with isomorphics requirements.
[WARN] Server class 'org.apache.http.conn.socket.LayeredConnectionSock etFactory' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/***/lib/httpclient-4.3.2.jar' to the web app classpath for this session
[WARN] Server class 'org.apache.http.util.Args' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/***/lib/httpcore-4.3.1.jar' to the web app classpath for this session
Exception in thread "Timer-1" java.lang.NoSuchFieldError: INSTANCE
at org.apache.http.impl.io.DefaultHttpRequestWriterFa ctory.<init>(DefaultHttpRequestWriterFactory.java: 52)
at org.apache.http.impl.io.DefaultHttpRequestWriterFa ctory.<init>(DefaultHttpRequestWriterFactory.java: 56)
at org.apache.http.impl.io.DefaultHttpRequestWriterFa ctory.<clinit>(DefaultHttpRequestWriterFactory.jav a:46)
at org.apache.http.impl.conn.ManagedHttpClientConnect ionFactory.<init>(ManagedHttpClientConnectionFacto ry.java:72)
at org.apache.http.impl.conn.ManagedHttpClientConnect ionFactory.<init>(ManagedHttpClientConnectionFacto ry.java:84)
at org.apache.http.impl.conn.ManagedHttpClientConnect ionFactory.<clinit>(ManagedHttpClientConnectionFac tory.java:59)
at org.apache.http.impl.conn.PoolingHttpClientConnect ionManager$InternalConnectionFactory.<init>(Poolin gHttpClientConnectionManager.java:487)
at org.apache.http.impl.conn.PoolingHttpClientConnect ionManager.<init>(PoolingHttpClientConnectionManag er.java:147)
at org.apache.http.impl.conn.PoolingHttpClientConnect ionManager.<init>(PoolingHttpClientConnectionManag er.java:136)
at org.apache.http.impl.conn.PoolingHttpClientConnect ionManager.<init>(PoolingHttpClientConnectionManag er.java:112)
at org.apache.http.impl.client.HttpClientBuilder.buil d(HttpClientBuilder.java:726)
at ***(***)
at ***(***)
at ***(***)
at ***$1.run(***)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)