Tomcat default 8080 port is occupied: Isolate the process that is occupying the port Pid__java

Source: Internet
Author: User

When using MyEclipse to do development and start Tomcat, the console always complains failed to initialize end point associated with Protocolhandler ["http-apr-8080"].


When Tomcat starts, the problem above arises because Tomcat's default 8080 port is occupied, so there should be two ways to solve this problem, one is to give Tomcat a new port number instead of the default 8080; the other is to turn off the port process that is currently being used.

I didn't change the port number, I closed the process that occupied the port directly, as follows:

Step 1: Run-> cmd

Step 2: In the Command window, enter: NETSTAT-ANO|FINDSTR 8080, which can be used to detect the process PID that occupies the port, this is 8808.

Step 3: Use taskkill/f/pid 8808, if the display is terminated successfully, it indicates OK, then to start Tomcat, the problem does not exist.

If you want to solve this problem by changing the Tomcat port number, see the article "How to modify the default 8080 port for Tomcat servers."


Serious: Failed to initialize end point associated with Protocolhandler ["ajp-apr-8009"]
Java.lang.Exception:Socket bind failed: [730048]????????? X??? (э?é/??????? /???)???? Í??
At Org.apache.tomcat.util.net.AprEndpoint.bind (aprendpoint.java:470)
At Org.apache.tomcat.util.net.AbstractEndpoint.init (abstractendpoint.java:650)
At Org.apache.coyote.AbstractProtocol.init (abstractprotocol.java:435)
At Org.apache.catalina.connector.Connector.initInternal (connector.java:978)
At Org.apache.catalina.util.LifecycleBase.init (lifecyclebase.java:102)
At Org.apache.catalina.core.StandardService.initInternal (standardservice.java:560)
At Org.apache.catalina.util.LifecycleBase.init (lifecyclebase.java:102)
At Org.apache.catalina.core.StandardServer.initInternal (standardserver.java:838)
At Org.apache.catalina.util.LifecycleBase.init (lifecyclebase.java:102)
At Org.apache.catalina.startup.Catalina.load (catalina.java:642)
At Org.apache.catalina.startup.Catalina.load (catalina.java:667)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)
At Java.lang.reflect.Method.invoke (method.java:606)
At Org.apache.catalina.startup.Bootstrap.load (bootstrap.java:253)
At Org.apache.catalina.startup.Bootstrap.main (bootstrap.java:427)


November 21, 2016 8:45:07 a.m. Org.apache.catalina.core.StandardService Initinternal
Serious: Failed to initialize connector [connector[ajp/1.3-8009]]
Org.apache.catalina.LifecycleException:Failed to initialize component [connector[ajp/1.3-8009]]
At Org.apache.catalina.util.LifecycleBase.init (lifecyclebase.java:106)
At Org.apache.catalina.core.StandardService.initInternal (standardservice.java:560)
At Org.apache.catalina.util.LifecycleBase.init (lifecyclebase.java:102)
At Org.apache.catalina.core.StandardServer.initInternal (standardserver.java:838)
At Org.apache.catalina.util.LifecycleBase.init (lifecyclebase.java:102)
At Org.apache.catalina.startup.Catalina.load (catalina.java:642)
At Org.apache.catalina.startup.Catalina.load (catalina.java:667)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)
At Java.lang.reflect.Method.invoke (method.java:606)
At Org.apache.catalina.startup.Bootstrap.load (bootstrap.java:253)
At Org.apache.catalina.startup.Bootstrap.main (bootstrap.java:427)
caused By:org.apache.catalina.LifecycleException:Protocol handler initialization failed
At Org.apache.catalina.connector.Connector.initInternal (connector.java:980)
At Org.apache.catalina.util.LifecycleBase.init (lifecyclebase.java:102)
... More
Caused By:java.lang.Exception:Socket bind failed: [730048]????????? X??? (э?é/??????? /???)???? Í??
At Org.apache.tomcat.util.net.AprEndpoint.bind (aprendpoint.java:470)
At Org.apache.tomcat.util.net.AbstractEndpoint.init (abstractendpoint.java:650)
At Org.apache.coyote.AbstractProtocol.init (abstractprotocol.java:435)
At Org.apache.catalina.connector.Connector.initInternal (connector.java:978)
... More

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.