Project Environment:
Eclipse 3.6.2 (J2EE)
Tomcat 7.0
I 've been using it all the time. Today, when I started the server, I couldn't start it. By the way, let's see how eclipse started the Tomcat server.
If you do not need to install it, select the tomcat version for a new server in the project.
Fill in the server name and Host Name (the default localhost is quite good)
Select the server running environment:
Click Add next to select the tomcat installation path.
Click Next and select the web application to be deployed on the server (you can click Finish directly)
Then try to start the server. I have encountered two errors.
1: Port 8005, 8080, 8009, and other ports are occupied. Generally, it is occupied by Tomcat's own server. If it is stopped, it will be occupied ...... Find this process to kill it !!
cmd:
netstat-aaon | findstr "8080" displayed
TCP 0.0.0.0: 8080 0.0.0.0: 0 listening 4344
TCP [:]: 8080 [:]: 0 listening 4344
the last one is the process id
continue command:> tasklist | findstr "4344"
see javaw.exe 4344 console 0 58,028
it turns out to be you !! Open the task manager! Restart okay restart
2: xxcontext. xml load error. In this case, I directly click here to delete the server and recreate it (in fact, I guess the context under the directory. there should be a problem with XML, but who made her disobedient! !)