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