Bug 1360814

Summary: JavaSDK fails on java.lang.NoClassDefFoundError, when running jar build with HttpClent45 support, but using HttpClent42
Product: [oVirt] ovirt-engine-sdk-java Reporter: Ondra Machacek <omachace>
Component: CoreAssignee: Ondra Machacek <omachace>
Status: CLOSED CURRENTRELEASE QA Contact: movciari
Severity: high Docs Contact:
Priority: high    
Version: 4.0.0.alpha13CC: bugs, juan.hernandez, mgoldboi
Target Milestone: ovirt-4.0.4Flags: rule-engine: ovirt-4.0.z+
mgoldboi: planning_ack+
omachace: devel_ack+
pstehlik: testing_ack+
Target Release: 4.0.0.alpha15   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-26 12:37:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1347215    

Description Ondra Machacek 2016-07-27 14:32:25 UTC
Description of problem:
JavaSDK fails on java.lang.NoClassDefFoundError, when running jar build with HttpClent45 support, but using HttpClent42

Version-Release number of selected component (if applicable):
4.0.0.alpha13

How reproducible:
always

Steps to Reproduce:
1. Use jar with classes compiled for apache httclient 45
2. use apache httclient 42 as your library

Actual results:
java.lang.NoClassDefFoundError: org/apache/http/conn/socket/LayeredConnectionSocketFactory at org.ovirt.engine.sdk4.ConnectionBuilder.connection(ConnectionBuilder.java:67)

Expected results:
We should ship both 42 and 45 classes in jar file. So such use case succed.

Additional info:

Comment 1 Red Hat Bugzilla Rules Engine 2016-07-28 14:23:08 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.