Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1113159 - Failing to install rhevm-sdk-java with JBoss 6.3.0
Failing to install rhevm-sdk-java with JBoss 6.3.0
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-sdk-java (Show other bugs)
3.5.0
x86_64 Linux
low Severity low
: ovirt-3.6.0-rc
: 3.6.0
Assigned To: Juan Hernández
Gonza
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-25 10:12 EDT by Alexander Braverman
Modified: 2016-03-09 14:55 EST (History)
7 users (show)

See Also:
Fixed In Version: ovirt-engine-sdk-java-3.6.0.0-0.2
Doc Type: Release Note
Doc Text:
The HTTP components packages required by the Red Hat Enterprise Virtualization Manager Java SDK package have been changed to match release 6.3 of JBoss Enterprise Application Platform. The location of the JAR files provided by the new required packages is different to the previous location, so users with scripts that depend on these locations must update those scripts accordingly. For example, if you have a script such as the following: java -classpath \ myapp.jar:\ /usr/share/java/rhevm-sdk-java/rhevm-sdk-java.jar:\ /usr/share/java/httpcore.jar:\ /usr/share/java/httpclient.jar \ my.app.Main The script must be updated to the following: java -classpath \ myapp.jar:\ /usr/share/java/rhevm-sdk-java/rhevm-sdk-java.jar:\ /usr/share/java/httpcomponents-eap6/httpcore.jar:\ /usr/share/java/httpcomponents-eap6/httpclient.jar \ my.app.Main Note that the location of the httpcore.jar and httpclient.jar files has changed from /usr/share/java to /usr/share/java/httpcomponents-eap6.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-03-09 14:55:29 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Infra
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Proposed patch (1.78 KB, patch)
2014-07-07 17:13 EDT, Juan Hernández
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:0405 normal SHIPPED_LIVE rhevm-sdk-java bug fix and enhancement update 2016-03-09 19:04:42 EST

  None (edit)
Description Alexander Braverman 2014-06-25 10:12:30 EDT
Description of problem:
Package 'rhevm-sdk-java' requires the following packages:
httpcomponents-httpclient
httpcomponents-httpcore
However in JBoss 6.3.0 they where renamed to:
httpcomponents-client
httpcomponents-core

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


How reproducible:

Using the following repositories :
[1] http://download.devel.redhat.com/devel/candidates/JBEAP/composing/JBEAP-6.3.0-RHEL-6-20140612.0/compose/Server/x86_64/os/
[2] http://bob.eng.lab.tlv.redhat.com/builds/av9.4/el6

Steps to Reproduce:
1. yum install rhevm-sdk-java

Actual results:
Error: Package: rhevm-sdk-java-3.4.1.0-2.el6ev.noarch (rhevm)
           Requires: httpcomponents-httpclient >= 4.2.1
Error: Package: rhevm-sdk-java-3.4.1.0-2.el6ev.noarch (rhevm)
           Requires: httpcomponents-httpcore >= 4.2.1

Expected results:
Complete!

Additional info:
In JBoss 6.1.0 the packages where provided by 'httpclient' and 'httpcore'.
Comment 1 Juan Hernández 2014-06-25 10:24:02 EDT
Users will use RHN, where the old packages will still be available, so this isn't a problem for them. However, the EAP team has recommended to update the dependencies, as the old packages won't get fixes. We will do this once EAP 6.3 is released.
Comment 2 Juan Hernández 2014-07-07 17:13:12 EDT
Created attachment 916194 [details]
Proposed patch
Comment 3 Juan Hernández 2014-07-07 17:15:37 EDT
I believe that the proposed patch will fix this issue. However I'm not 100% sure which will be the names of the packages, as I see many related packages in the temporary repositories that we use for testing, some of them empty.

I will delay merging/building the fix till EAP 6.3.0 is released and I can check which are actually the packages available in RHN.
Comment 4 Juan Hernández 2014-08-20 14:30:18 EDT
JBoss EAP 6.3 has been released and is now available in RHN. I verified that the new httpclient-eap6 and httpcore-eap6 packages are available. So are the old httpcomponents-httpclient and httpcomponents-httpcore packages, which confirms that the change isn't needed.

Location of the .jar files provided by the packages are different, as expected. If we do the change this won't cause a problem to build or install the rhevm-sdk-java package, but it will cause problems for users that have scripts that use the path names. For example, if a user has a script containing something like this:

  java -classpath -classpath \
  myapp.jar:\
  /usr/share/java/rhevm-sdk-java/rhevm-sdk-java.jar:\
  /usr/share/java/httpclient.jar \
  $CLASSPATH my.app.Main

It will fail, as the location of the httpclient.jar provided by the new httpclient-eap6 package is /usr/share/java/httpcomponents-eap6/httpclient.jar (note that directory is different).

All in all, if we change we can break existing user scripts, if we don't change we don't benefit from the updates (the old EAP packages won't be udpated).

What do we want to do?
Comment 5 Barak 2014-09-01 09:27:14 EDT
I would go with the change and add release note.
Comment 6 Gonza 2015-09-08 08:15:42 EDT
Verified using the following repositories:
Using the following repositories :
[1] http://download.devel.redhat.com/devel/candidates/JBEAP/composing/latest-JBEAP-6.4-RHEL-6/compose/Server/x86_64/os/
[2] http://bob.eng.lab.tlv.redhat.com/builds/av9.4/el6

Successfully installed:
rhevm-sdk-java-3.4.1.0-2.el6ev.noarch
httpcomponents-project-6-7.redhat_1.ep6.el6.noarch
httpcomponents-core-4.2.1-7.redhat_1.ep6.el6.noarch
httpcomponents-client-4.2.1-7.redhat_1.ep6.el6.noarch
Comment 8 errata-xmlrpc 2016-03-09 14:55:29 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0405.html

Note You need to log in before you can comment on or make changes to this bug.