Skip to content

Apache HttpComponents 4.3 required at runtime but not listed in migration guide [SPR-11383] #16010

Closed

Description

@spring-projects-issues

jose luis sanchez opened SPR-11383 and commented

There's a missing dependency been upgraded, or at least, changed since spring 3.x.

Spring 4.x now uses commons-httpclient 4.3.x, as previous releases did not include CloseableHttpClient class :

Caused by: java.lang.NoClassDefFoundError: org/apache/http/impl/client/CloseableHttpClient
at org.springframework.http.client.HttpComponentsClientHttpRequestFactory.<init>(HttpComponentsClientHttpRequestFactory.java:85) ~[spring-web-4.0.1.RELEASE.jar:4.0.1.RELEASE


Affects: 4.0 GA, 4.0.1

Reference URL: https://github.com/spring-projects/spring-framework/wiki/Migrating-from-earlier-versions-of-the-spring-framework

Issue Links:

Referenced from: commits d55c22e, f053f60

Activity

  1. spring-projects-issues commented on Feb 3, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    This was half-accidental: We are requiring HttpComponents 4.3 in a few places but didn't mean to require it in all places where we have an optional HttpComponents dependency...

    We need to clarify this for Spring Framework 4.0.2: either formally requiring HttpComponents 4.3 everywhere or lowering the technical dependency to HttpComponents 4.2+ again in applicable places.

    Juergen

  2. spring-projects-issues commented on Feb 3, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    I've documented the state of affairs in the javadoc and in the migration guide on GitHub now: For the org.springframework.http.client package, we do require HttpComponents 4.3 or higher. It's just HttpComponentsHttpInvokerRequestExecutor where we preserve HttpComponents 4.2 compatibility for the moment, to be upgraded in Spring 4.1.

    Juergen

  3. added this to the 4.0.2 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: documentation

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions