-
Bug
-
Resolution: Done
-
Critical
-
JWS 3.1.0 GA
-
None
-
Release Notes
-
-
-
-
-
-
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
- is cloned by
-
JWS-827 /var/lib/tomcat7/webapps needs world execute permissions to run with non-root user
- Closed
- links to