Common problems and troubleshooting in installation
There are multiple issues which may arise during the installation of Tomcat 7. Let's discuss these issues:
Error: Permission denied for the Java binary
Scenario 1: The Java installation is not working, while executing the Java binary.
[root@localhost opt]# ./jdk-6u24-linux-i586.bin
-bash: ./jdk-6u24-linux-i586.bin: Permission denied
Issue: The Java binary doesn't have execute permissions with a specific user.
Fix: Change the permission to 0755 for ./jdk-6u24-linux-i586.bin
using the following command:
chmod 0755 jdk-6u24-linux-i586.bin
Note
The chmod 0755 file
is equivalent to u=rwx (4+2+1),go=rx (4+1 & 4+1)
. The 0
specifies no special modes.
Error: Tomcat is not able to find JAVA_HOME
Scenario ...
Get Apache Tomcat 7 Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.