Tomcat startup error (port 8080 is occupied) Handling Method

Source: Internet
Author: User

Error description:
15:40:35 org. Apache. Coyote. http11.http11baseprotocol start
Severe: Error starting endpoint
Java.net. bindexception: address already in use: jvm_bind: 8080
At org.apache.tomcat.util.net. pooltcpendpoint. initendpoint (pooltcpendpoint. Java: 298)
At org.apache.tomcat.util.net. pooltcpendpoint. startendpoint (pooltcpendpoint. Java: 313)
At org. Apache. Coyote. http11.http11baseprotocol. Start (http11baseprotocol. Java: 151)
At org. Apache. Coyote. http11.http11protocol. Start (http11protocol. Java: 76)
At org. Apache. Catalina. connector. connector. Start (connector. Java: 1090)
At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 457)
At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 700)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 552)
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (nativemethodaccessorimpl. Java: 39)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (delegatingmethodaccessorimpl. Java: 25)
At java. Lang. Reflect. method. Invoke (method. Java: 585)
At org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 295)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 433)
2009-7-12 15:40:35 org. Apache. Catalina. startup. Catalina start
Severe: Catalina. Start:
Lifecycleexception: Service. getname (): "Catalina"; protocol handler start failed: java.net. bindexception: address already in use: jvm_binding: 8080
At org. Apache. Catalina. connector. connector. Start (connector. Java: 1097)
At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 457)
At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 700)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 552)
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (nativemethodaccessorimpl. Java: 39)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (delegatingmethodaccessorimpl. Java: 25)
At java. Lang. Reflect. method. Invoke (method. Java: 585)
At org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 295)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 433)
2009-7-12 15:40:35 org. Apache. Catalina. startup. Catalina start
Information: server startup in 9860 MS
Key Information:
Java.net. bindexception: address already in use: jvm_bind: 8080
Error cause:
Port 8080 is occupied by other applications!
Solution:
Step 1: run the command: netstat-ano
Active connections
PROTO local address foreign address State PID
TCP 0.0.0.0: 8080 0.0.0.0: 0 listening 656
TCP 0.0.0.0: 8080 0.0.0.0: 0 listening 656
It can be seen that the PID of the Process occupying port 8080 is 656
Step 2: run the command prompt Symbol: tasklist
Image name PID session name session # memory usage
========================================================== ======================================
Tnslsnr.exe 656 console 0 8,992 K
Listen, the 80 port is occupied by tnslsnr.exe
Step 3: Use the task manager to stop tnslsnr.exe
Step 4: restart tomcat to start properly

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.