When Tomcat is started in Linux, Addressalreadyinuse <null... is reported.

Source: Internet
Author: User
When Tomcat is started in Linux, Addressalreadyinuse & lt; null... the problem is that the port is occupied, but the first start is successful. after the restart is disabled, an error is reported. The error code is as follows: 012010-10-2418: 12: 23org. apache. catalin...
Address already in use is reported when Tomcat is started in Linux. 808006 at org.apache.tomcat.util.net. JIoEndpoint. init (JIoEndpoint. java: 502) 07 at org. apache. coyote. http11.Http11Protocol. init (Http11Protocol. java: 176) 08 at org. apache. catalina. connector. connector. initialize (Connector. java: 1058) 09 at org. apache. catalina. core. standardService. initialize (StandardService. java: 677) 10 at org. apache. catalina. core. standardServer. initialize (StandardServer. java: 795) 11 at org. apache. catalina. startup. catalina. load (Catalina. java: 530) 12 at org. apache. catalina. startup. catalina. load (Catalina. java: 550) 13 at sun. reflect. nativeMethodAccessorImpl. invoke0 (Native Method) 14 at sun. reflect. nativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 39) 15 at sun. reflect. delegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 25) 16 at java. lang. reflect. method. invoke (Method. java: 585) 17 at org. apache. catalina. startup. bootstrap. load (Bootstrap. java: 260) 18 at org. apache. catalina. startup. bootstrap. main (Bootstrap. java: 412) 192010-10-24 18:12:23 org. apache. catalina. startup. catalina load20Fatal: Catalina. start21LifecycleException: Protocol handler initialization failed: java.net. bindException: Address already in use 808022 at org. apache. catalina. connector. connector. initialize (Connector. java: 1060) 23 at org. apache. catalina. core. standardService. initialize (StandardService. java: 677) 24 at org. apache. catalina. core. standardServer. initialize (StandardServer. java: 795) 25 at org. apache. catalina. startup. catalina. load (Catalina. java: 530) 26 at org. apache. catalina. startup. catalina. load (Catalina. java: 550) 27 at sun. reflect. nativ EMethodAccessorImpl. invoke0 (Native Method) 28 at sun. reflect. nativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 39) 29 at sun. reflect. delegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 25) 30 at java. lang. reflect. method. invoke (Method. java: 585) 31 at org. apache. catalina. startup. bootstrap. load (Bootstrap. java: 260) 32 at org. apache. catalina. startup. bootstrap. main (Bootstrap. jav A: 412) 33 www.2cto.com 18:12:23 org. apache. catalina. startup. catalina load34Message: Initialization processed in 574 ms. That's because your tomcat has started the closed script that comes with tomcat. sometimes it seems to have been successfully closed, but it hasn't actually been closed. You can run the following command to view the process list: 1 ps-ef | grep java if the java process is still running, use the following command to manually close all of them, and then start tomcat. 1 kill-9 pid where the PID must be replaced with the process number. In addition, you can use the command ps-ef | grep java to view five or six processes at the same time. you need to disable them one by one, then restart tomcat and the above error will not be reported. Author: Bairrfhoinn

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.