Home  >  Forum  >  Spring
Post New Query

Exception org.apache.http.conn.ConnectionKeepAliveStrategy


joined on
August 11,2014
Asked on August 23,2014
Caused by: java.lang.ClassNotFoundException: org.apache.http.conn.ConnectionKeepAliveStrategy
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more


I am running spring 4 application and using AsyncClientHttpRequestFactory, but getting run time error.  Need Solution.
joined on
August 11,2014
Replied on August 23,2014

In my POM, there is jar dependency for httpasyncclient as below
         <dependency>
          <groupId>org.apache.httpcomponents</groupId>
          <artifactId>httpclient</artifactId>
          <version>4.0-alpha4</version>
        </dependency>

joined on
December 28,2013
Replied on August 23,2014

Use version 4.4-alpha1 as below

        <dependency>
          <groupId>org.apache.httpcomponents</groupId>
          <artifactId>httpclient</artifactId>
          <version>4.4-alpha1</version>
        </dependency>

Write Answer








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us