The cause analysis and solution of the boot failure of Tomcat under openSUSE _unix Linux

Source: Internet
Author: User
Tags system log tomcat

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.