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

/usr/share/tomcat7 needs world execute permissions to function on openshift v2

XMLWordPrintable

    • Release Notes
    • Hide

      Run the following on node host:
      # chmod o+x /usr/share/tomcat7

      Show
      Run the following on node host: # chmod o+x /usr/share/tomcat7

      The /usr/share/tomcat7 directory does not have world execute permissions:

      # ls -l /usr/share/ | grep tomcat7
      drwxr-x---.   3 root  tomcat  4096 Jun  1 18:12 tomcat7
      

      In Openshift 2.2, tomcat7 gears are not able to build and start because the user that the tomcat7 process in the gear is running as is not root or in tomcat7 group.

      This results in the `/usr/share/tomcat7/bin/bootstrap.jar` not being readable and then `Error: Could not find or load main class org.apache.catalina.startup.Bootstrap`

      In previous versions of tomcat7 (like in EWS 2), the /usr/share/tomcat7 directory was executable by everyone and Openshift 2 gears did not have issues:

      # rpm -qa tomcat7
      tomcat7-7.0.54-21_patch_05.ep6.el6.noarch
      # ls -la /usr/share/ | grep tomcat7
      drwxrwxr-x.   3 root  tomcat  4096 Jun  2 08:46 tomcat7
      

      Finally, the /usr/share/tomcat7 is the only directory with the permission issue:

      # namei -l /usr/share/tomcat7/bin/bootstrap.jar 
      f: /usr/share/tomcat7/bin/bootstrap.jar
      dr-xr-xr-x root root   /
      drwxr-xr-x root root   usr
      drwxr-xr-x root root   share
      drwxr-x--- root tomcat tomcat7
      drwxr-xr-x root root   bin
      lrwxrwxrwx root root   bootstrap.jar -> bootstrap-7.0.70.jar
      -rw-r--r-- root root     bootstrap-7.0.70.jar
      

            rhn-support-csutherl Coty Sutherland
            rhn-support-rbost Robert Bost
            Jan Onderka Jan Onderka
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: