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

Tomcat-vault cannot resolve JBOSS_HOME

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • JWS 3.1.0 CR1
    • JWS 3.1.0 ER3
    • rpm, tomcat-vault
    • None
    • User Experience

      Issue:
      Tomcat-vault installed from RPM has problem to calculate path to JAR file when run under sudo. One needs to manually set variable JBOSS_HOME to /usr/share/java.
      Reproduce:

      1. Install tomcat-vault from rpm
      2. run command
        sudo tomcat-vault.sh

        Expected: tomcat-vault.sh starts
        Now: tomcat-vault crashes with

        Error: Unable to access jarfile //modules/system/layers/base/tomcat-vault/main/tomcat-vault.jar

        Verbose:
        sudo uses path defined in visudo

        Defaults    secure_path = /sbin:/bin:/usr/sbin:/usr/bin

        /bin is symbolic link to the usr/bin where tomcat-vault.sh is located (/bin -> usr/bin)
        tomcat-vault is using dirname on script path ($0)
        When run with sudo path ($0) is /bin/tomcat-vault.sh
        When run with no sudo path ($0) is /usr/share/tomcat-vault.sh
        Example of repair that is working on RHEL but it will break solaris
        https://github.com/S4n60w3n/tomcat-vault/commit/846018c17f2c15a778ec68f5ec74b6c83ee4a984

              rhn-support-csutherl Coty Sutherland
              bsikora Bogdan Sikora (Inactive)
              Bogdan Sikora Bogdan Sikora (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified