Common Tomcat fails to start

Source: Internet
Author: User
Tags tomcat server

Common Tomcat does not start a failure:

1. Ports are occupied (use Fport.exe to see which ports on this machine are used by which programs).

2.tomcat operation requires the support of the JVM, Startup.bat boot, will look at the system is not equipped with Java_home environment variables. If not matched, start the interface will soon automatically shut down, we can open the DOS window, the Startup.bat dragged in, enter the run can see the error message.

Question: If you install a tomcat on another machine and do not allow you to change the environment variable, then how to configure it.
Answer: Set the environment variable in Startup.bat, set java_home=d:\java\jdk1.5.0_08


3.tomcat also needs another important environment variable catalina_home when it starts. This environment variable refers to the directory where the Tomcat server is located, and when the Startup.bat is started, Startup.bat sets up the CATALINA_HOME environment variable, which points to the directory where the Tomcat server resides. Catalina_home to which Tomcat, start which server. If we have catalina_home configured in the system environment variable, whichever tomcat server you start is the one that catalina_home points to, regardless of which tomcat you started.

Bottom line: If the system environment variable is not configured Catalina_home, then double-click which Tomcat in the Startup.bat to start which server, on the contrary, the boot is the system environment variable Catalina_home point to the Tomcat server.

Remember to configure the environment variables after installing the JDK:

Java_home indicates the JDK installation path, which is the path you chose when you just installed D:\java\jdk1.5.0_08, including Lib,bin,jre folders under this path (this variable is best set, since Tomcat,eclipse will need to follow * this variable);

Path enables the system to identify JAVA commands under any path, set to:%java_home%\bin;%java_home%\jre\bin


Classpath is the Java load class (class or Lib) path, and only classes in Classpath can be recognized by Java commands, set to:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar (To Add. Represents the current path), set Classpath to refer to two jar packages, Dt.jar and Tools.jar. %java_home% is a reference to the java_home specified above, with a percent reference;

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.