I. Description of the exception
1. Launch Tomcat in Eclipse, the app has started successfully, but Tomcat is still in starting reload
Second, the reasons for analysis
1. Replace the 8080 port with 9080 and start Tomcat to fully boot. Proven to be a 8080 port problem;
2. But port 8080 is not occupied;
3. Search the Internet for possible reasons, possibly because the agent was opened, causing the port to be occupied;
Http://www.cnblogs.com/winkey4986/p/3303412.html
http://zhangzhaoaaa.iteye.com/blog/2113072
4. According to the analysis of the reasons on the Internet, I analyze the possible reasons for this machine.
(1) I use Natapp to do the domain name to the native mapping, that is, a two-level domain name mapping to the machine, easy to do debugging;
(2) The domain name is mapped to the 80 port of this machine by default, I use Mac OSX.
Mac OS X requires root privileges to bind port 80, but if you start eclipse or Tomcat with root, the various files created by the startup are root and cannot be deleted by ordinary users.
(3) Due to the need for root permissions, more cumbersome, so I set up 80 port requests forwarded to 8080 port.
sudo vim/etc/pf.conf
RDR on Lo0 inet Proto TCP from all to 127.0.0.1 port, 127.0.0.1 port 8080
sudo pfctl -d
sudo pfctl-f/etc/pf.conf
sudo pfctl-e
4. When you use Tomcat to start port 8080, an exception occurs
5. Cause conclusion, Port is occupied
Eclipse 53997 Yeahwell 215u IPv6 0x2058db610a8d8d5f 0t0 TCP localhost:56644->localhost:9080 (syn_sent )
Third, the solution
1.
The project in Eclipse has started, but Tomcat has been shown in the boot