Environment
openSUSE 10.2
Tomcat 5.5
Setting up information
Add the following command to the/etc/init.d/boot.local:
/opt/tomcat/bin/startup.sh
Error description
After openSUSE started, Tomcat never started.
Analysis
1. After the system has started, the manual start Tomcat can be successful, stating that it is not a permission issue.
2. Find the System log (/VAR/LOG/BOOT.MSG) and find the following information:
Neither the Java_home nor the JRE_HOME environment variable is defined
At least one of these environment variable are needed to run this program
Failed<notice>killproc:kill (864,3)
Explains that when you start Tomcat in/etc/init.d/boot.local, environment variables such as Java_home are not available because openSUSE 10.2 automatically installs JDK 1.5 and we use the system's own JDK. The java_home for Tomcat was not manually specified.
Solving method
Edit/opt/tomcat/bin/catalina.sh, specify Java_home, such as: Java_home=/usr/lib/jvm/jre
Reboot the server, and everything will be OK.