problem: Port is occupied when publishing service to Tomcat
Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are. The server may already is running in another process, or a system process may is using the port. To start this server you'll need to stop the other process or change the port number (s).
Google translation (https://translate.google.cn): Several ports (8005,8080,8009) required for a Tomcat V7.0 server on a local host have been put into use. The server may already be running in another process, or a port that the system process can use. To start the server, you will need to stop other processes or change the port number.
Solution steps: Scenario One: stop Tomcat, and then reboot, that is, to stop Tomcat from the occupied port and restart your service Tomcat scheme two: find the server.xml below Tomcat
<server port= "8005" shutdown= "shutdown" > read
<server port= "8015" shutdown= "Shutdown" >
<connector connectiontimeout= "20000" port= "8080" protocol= "http/1.1" redirectport= "8443"/> to read
<connector connectiontimeout= "20000" port= "8081" protocol= "http/1.1" redirectport= "8443"/>
<connector port= "8009" protocol= "ajp/1.3" redirectport= "8443"/> instead
<connector port= "8019" protocol= "ajp/1.3" redirectport= "8443"/>
And then restart Tomcat