Tomcat installation Problem resolution

Source: Internet
Author: User

This article describes some of the exception errors that occur during installation. Make sure the environment variables are set correctly.

1: Running Startup.dat or Tomcat7.exe dos window will flash through, and Tomcat7w.exe shows that the specified service is not installed

Workaround:

In the Run window, enter CMD, run DOS, and enter the directory of the bin where Tomcat is located (CD Tomcat directory command), and then enter Service.bat Install on the command line. specific See

2 The problem that continues to occur is the DOS window display

The JAVA_HOME environment variable is not defined correctly

This environment variable are needed to run

Nb:java_home should point to a JDK not a JRE

The actual java_home configuration is correct and occurs because there is a JDK in this path, and there is a JRE

Workaround:

Add the set java_home= path to the Startup.bat file, or add the set java_home= path to the Setclasspath file. See for details

Http://blog.sina.com.cn/s/blog_b25a44270101a7vj.html

3 still cannot open http://localhost:8080/, view logs display port is occupied

Workaround: Enter Netstat-ano in the DOS command to locate port 8080 in the local address and find the corresponding PID. Then open the Task Manager and turn off the PID corresponding process. See for details

Http://jingyan.baidu.com/article/67662997372ecc54d51b8423.html

4 do not close the Tomcat DOS window, after shutting down means that the server is closed, will cause the loacalhost:8080 page cannot be opened.

Tomcat installation Problem resolution

Related Article

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.