Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-16017

EAP7.2 RPMs does not match with provides from java-11-openjdk package

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.2.1.GA
    • 7.2.0.GA.CR2
    • RPM
    • None
    • Hide
      1. get clean RHEL7.6 installation
      2. install the JDK11 rpm package: yum install java-11-openjdk
      3. configure EAP7.2 repository and install it: yum groupinstall eap7-wildfly
      4. installation will require to install some other java package even though there is JDK11 already present on the system
      Show
      get clean RHEL7.6 installation install the JDK11 rpm package: yum install java-11-openjdk configure EAP7.2 repository and install it: yum groupinstall eap7-wildfly installation will require to install some other java package even though there is JDK11 already present on the system

      Note: this is only RHEL7 specific, as I don't see jdk11 package on RHEL6 at the moment.

      Problem: One cannot use EAP7.2 RPM installation with default RHEL jdk11 package (java-11-openjdk-11.0.1.13-3.el7_6.x86_64) unless there is also some other JDK variant installed on the system or unless it forces yum to ignore package requirements.

      Reason for this seems to be incorrect requirements for the eap7-wildfly package or problematic 'provides' information of jdk11 package:

      jdk8-provides
      # rpm -q --provides java-1.8.0-openjdk
      application()
      application(java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64-policytool.desktop)
      java = 1:1.8.0
      java-1.8.0 = 1:1.8.0.191.b12-1.el7_6
      java-1.8.0-openjdk = 1:1.8.0.191.b12-1.el7_6
      java-1.8.0-openjdk(x86-64) = 1:1.8.0.191.b12-1.el7_6
      java-fonts = 1:1.8.0.191.b12
      java-openjdk = 1:1.8.0.191.b12-1.el7_6
      jre = 1.8.0
      jre-1.8.0 = 1:1.8.0.191.b12-1.el7_6
      jre-1.8.0-openjdk = 1:1.8.0.191.b12-1.el7_6
      jre-openjdk = 1:1.8.0.191.b12-1.el7_6
      libjawt.so()(64bit)
      libjawt.so(SUNWprivate_1.1)(64bit)
      

      notice the java = 1:1.8.0

      jdk11-provides
      # rpm -q --provides java-11-openjdk
      java-11 = 1:11.0.1.13-3.el7_6
      java-11-openjdk = 1:11.0.1.13-3.el7_6
      java-11-openjdk(x86-64) = 1:11.0.1.13-3.el7_6
      jre-11 = 1:11.0.1.13-3.el7_6
      jre-11-openjdk = 1:11.0.1.13-3.el7_6
      libjawt.so()(64bit)
      

      notice the java-11 = 1:11.0.1.13-3.el7_6, no simple java

      eap7-wildfly-requires
      # rpm -q --requires eap7-wildfly
      /bin/sh
      /bin/sh
      /bin/sh
      /bin/sh
      /bin/sh
      config(eap7-wildfly) = 0:7.2.0-25.GA_redhat_00002.2.el7eap
      eap7-runtime
      eap7-runtime
      eap7-wildfly-modules
      java >= 1:1.8
      rpmlib(CompressedFileNames) <= 3.0.4-1
      rpmlib(FileDigests) <= 4.6.0-1
      rpmlib(PayloadFilesHavePrefix) <= 4.0-1
      shadow-utils
      systemd-units
      systemd-units
      systemd-units
      rpmlib(PayloadIsXz) <= 5.2-1
      

      notice the java >= 1:1.8

      Due to this provides/requires discrepancy, EAP7.2 that is installed via RPM packages cannot be installed on system where only JDK11 package is installed (no other java version).

      There is a workaround that user first installs JDK8 to fulfill eap7-wildfly rpm requirements then installs EAP7.2 and JDK11 and ensures that JDK11 is used as a default on the system.

              permaine Permaine Cheung
              jstourac@redhat.com Jan Stourac
              Jan Stourac Jan Stourac
              Jan Stourac Jan Stourac
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: