Bug 570451 - java.lang.NoClassDefFoundError: org/apache/http/conn/ssl/DefaultHostnameVerifier
Summary: java.lang.NoClassDefFoundError: org/apache/http/conn/ssl/DefaultHostnameVerifier
Status: VERIFIED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 5.10   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 5.11   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 570147 571637 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-01-18 10:02 EST by Thomas Wolf CLA
Modified: 2021-03-03 03:53 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wolf CLA 2021-01-18 10:02:27 EST
See bug 570147 and [1] in the forum.

Looks like when JGit gets installed in an OSGi environment that has an Apache httpclient 4.3.x, the newer httpclient 4.4.x bundled in the p2 repository doesn't get installed. But JGit makes use of features that exist only in 4.4, yet org.eclipse.jgit.http.apache/META-INF/MANIFEST.MF specifies a lower bound of 4.3.0 throughout.

[1] https://www.eclipse.org/forums/index.php/t/1106621/
Comment 1 Eclipse Genie CLA 2021-01-18 10:19:51 EST
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/174999
Comment 2 Thomas Wolf CLA 2021-01-18 10:51:53 EST
(In reply to Thomas Wolf from comment #0)
> ... the newer httpclient 4.4.x 

s/4.4.x/4.5.x
Comment 4 Thomas Wolf CLA 2021-01-18 13:43:02 EST
Verified with a Neon.3 and EGit 5.10.0 (shows the problem) and EGit nightly (EGit 5.11.0.202101181758 and JGit 5.11.0.202101181723, works).
Comment 5 Thomas Wolf CLA 2021-01-18 16:11:14 EST
*** Bug 570147 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Wolf CLA 2021-03-03 03:53:24 EST
*** Bug 571637 has been marked as a duplicate of this bug. ***