Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-3148

java alternative links are broken in jws57-openjdk11-openshift-rhel8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • 5.7.7.GA, 5.7.7.CR1
    • None
    • openshift
    • None
    • False
    • None
    • False

      Version: jboss-webserver-5/jws57-openjdk11-openshift-rhel8:5.7.6-4

      Issue:
      Due to some problem during container build, there appears to be set alternative to java tools that was only available up to JDK8, even though it is a JDK11-based image. Also, alternative for jcmd is broken.

      Steps to reproduce:

      # Actual
      podman pull registry.redhat.io/jboss-webserver-5/jws57-openjdk11-openshift-rhel8:5.7.6-4
      podman run -it --name jws-latest --rm -it registry.redhat.io/jboss-webserver-5/jws57-openjdk11-openshift-rhel8:5.7.6-4 /bin/bash
      
      # I'm not sure why, but there is a mix of alternative for java8, as orbd, policytool whish are removed from OpenJDK11
      [jboss@afebbdcc00ef ~]$ alternatives --display java | grep null
       slave orbd: (null)
       slave policytool: (null)
       slave servertool: (null)
       slave tnameserv: (null)
       slave orbd.1.gz: (null)
       slave policytool.1.gz: (null)
       slave servertool.1.gz: (null)
       slave tnameserv.1.gz: (null)
      
      # jcmd is not found in alternative
      [jboss@afebbdcc00ef ~]$ jcmd
      bash: jcmd: command not found
      [jboss@afebbdcc00ef ~]$ ls -lh /etc/alternatives | grep jcmd
      [jboss@afebbdcc00ef ~]$ 
      
      # expected: null is not shown
      alternatives --display java | grep null
      

              szappis@redhat.com Sokratis Zappis
              rhn-support-nagetsum Norito Agetsuma
              Stanislav Koshchienko Stanislav Koshchienko
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: