The startup scripts for tomcat5 on Plesk 9.2.x for Linux is broken on both 32-bit and 64-bit platforms, at very least for CentOS 5.
The fix is trivial.
Set the JAVA_HOME variable in the /etc/tomcat5/tomcat5.conf file as well as the /etc/sysconfig/tomcat5 file.
Apply the following fix to the /usr/bin/dtomcat5 script.
Around line 67 of the file it should read:
if [ -z "$CATALINA_HOME" ]; then
TOMCAT_CFG=”/etc/tomcat5/tomcat5.conf”
fi
Change the above code, by adding one line, so it reads as follows:
if [ -z "$CATALINA_HOME" ]; then
TOMCAT_CFG=”/etc/tomcat5/tomcat5.conf”
. “${TOMCAT_CFG}”
fi
Testing the change can be achieved by running the following command:
tomcat5 version
It should produce output similar to the information below:
Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
Server version: Apache Tomcat/5.5.23
Server built: Jul 27 2009 05:24:08
Server number: 5.5.23.0
OS Name: Linux
OS Version: 2.6.18-128.7.1.el5
Architecture: amd64
JVM Version: 1.6.0-b09
JVM Vendor: Sun Microsystems Inc.