The project in Eclipse has started, but Tomcat has been shown in the boot

Source: Internet
Author: User

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

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.