Resolve eclipse appears address already in Use:bind

Source: Internet
Author: User

Today the development encountered the following problem, post some of the exception information, as follows:

[WARNING] failed [email protected]0.0.0.0:8080Java.net.BindException:Address already in use:bind at sun.nio.ch.Net.bind0 (Native Method) at Sun.nio.ch.Net.bind (Net.java:444) at Sun.nio.ch.Net.bind (Net.java:436) at Sun.nio.ch.ServerSocketChannelImpl.bind (Serversocketchannelimpl.java:214) at Sun.nio.ch.ServerSocketAdaptor.bind (Serversocketadaptor.java: About) at Org.mortbay.jetty.nio.SelectChannelConnector.open (Selectchannelconnector.java:216) at Org.mortbay.jetty.nio.SelectChannelConnector.doStart (Selectchannelconnector.java:315) at Org.mortbay.component.AbstractLifeCycle.start (Abstractlifecycle.java: -) at Org.mortbay.jetty.Server.doStart (Server.java:233) at Org.mortbay.component.AbstractLifeCycle.start (Abstractlifecycle.java: -) at Org.mortbay.jetty.plugin.Jetty6PluginServer.start (Jetty6pluginserver.java: the) at Org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty (Abstractjettymojo.java:384) at Org.mortbay.jetty.plugin.AbstractJettyMojo.execute (Abstractjettymojo.java: the) at Org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute (Abstractjettyrunmojo.java:205) at Org.mortbay.jetty.plugin.Jetty6RunMojo.execute (Jetty6runmojo.java:184) at Org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (Defaultbuildpluginmanager.java:133) at org.apache.maven.lifecycle.Internal. Mojoexecutor.execute (Mojoexecutor.java:208) at org.apache.maven.lifecycle.Internal. Mojoexecutor.execute (Mojoexecutor.java:153) at org.apache.maven.lifecycle.Internal. Mojoexecutor.execute (Mojoexecutor.java:145) at org.apache.maven.lifecycle.Internal. Lifecyclemodulebuilder.buildproject (Lifecyclemodulebuilder.java:108) at org.apache.maven.lifecycle.Internal. Lifecyclemodulebuilder.buildproject (Lifecyclemodulebuilder.java: the) at org.apache.maven.lifecycle.Internal. Builder.singlethreaded.SingleThreadedBuilder.build (Singlethreadedbuilder.java:Wuyi) at org.apache.maven.lifecycle.Internal. Lifecyclestarter.execute (Lifecyclestarter.java: the) at Org.apache.maven.DefaultMaven.doExecute (Defaultmaven.java:361) at Org.apache.maven.DefaultMaven.execute (Defaultmaven.java:155) at Org.apache.maven.cli.MavenCli.execute (Mavencli.java:584) at Org.apache.maven.cli.MavenCli.doMain (Mavencli.java:213) at Org.apache.maven.cli.MavenCli.main (Mavencli.java:157) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at Sun.reflect.NativeMethodAccessorImpl.invoke (Nativemethodaccessorimpl.java: $) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (Delegatingmethodaccessorimpl.java: +) at Java.lang.reflect.Method.invoke (Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at Org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at Org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at Org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) [WARNING] failed [email protected][info] Shutdown Hook Executing[info] destroying Spring Frameworkservlet'Springmvc' .-Ten- A  the: the: Geneva,237INFO Xmlwebapplicationcontext:1042-Closing Webapplicationcontext for namespace 'Springmvc-servlet': startup Date [Wed Oct A  the: -: $Cst .]; Parent:root Webapplicationcontext .-Ten- A  the: the: Geneva,238INFO defaultlistablebeanfactory:444-Destroying singletonsinch org.s[email protected]551b8762:defining Beans [ Org.springframework.context.annotation.internalConfigurationAnnotationProcessor, Org.springframework.context.annotation.internalAutowiredAnnotationProcessor, Org.springframework.context.annotation.internalRequiredAnnotationProcessor, Org.springframework.context.annotation.internalcommonannotationprocessor,accountao,accountcontroller, Accountbuzlogao,accountbuzlogcontroller,accountamountao,flowao,flowcontroller,accountopenlogao, Accountopenlogcontroller,rechargeao,rechargecontroller,accountrequestlogao,accountrequestlogcontroller, Supplementao,supplementcontroller,acctransferao,acctransfercontroller,advforshopao,advforshopcontroller, Billmanageao,billmanagecontroller,blocklogao,blockcontroller,buyergoodsao,buyergoodscontroller,changeacountao, Changeacountcontroller,admincontroller,compareao,accountcomparecontroller,cyclesettlementao, Cyclesettlementitemao,cyclesettitemcontroller,cyclesettlementcontroller,inputinvoiceaccao,inputinvoiceaccountcOntroller,inputinvoiceacccloseao,inputinvoiceaccountclosecontroller,inputinvoicerecordao, Invoicerecordcontroller,inputinvoiceao,invoicecontroller,/settlementlogao,settlementlogcontroller,malldealao, Malldealcontroller,logisticsao,logisticscontroller,processao,processcontroller,ordersdetailcontroller, Orderdetailcontroller,goodsao,goodscontroller,payao,paycontroller,paycancelao,paycancelcontroller, Permisscontroller,proceedsao,proceedscontroller,rechargerefundao,rechargerefundcontroller,refundlogao, Refundlogcontroller,secondsettlementao,secondsettlementcontroller,servicefeeao,servicefeecontroller, Suplierlogisticao,suplierlogisticcontroller,suplierprocessao,suplierprocesscontroller,accountamtao, Fixinvoiceao,fixpayao,logisticprocesstempao,paydbcompletingao,accountamtcontroller,invoicefixcontroller, Logisticprocesstempcontroller,payfixcontroller,testsellergoodscontroller,testsendmq,withdrawalsao, Withdrawalscontroller,contentnegotiationmanager,org.springframework.web.servlet.view.contentnegotiatingviewresolver# 0, Stringhttpmessageconverter,fastjsonhttpmessageconverter, org.springframework.web.servlet.mvc.method.annotation.requestmappinghandleradapter#0, Mvccontentnegotiationmanager, org.springframework.web.servlet.mvc.method.annotation.requestmappinghandlermapping#0, org.springframework.format.support.formattingconversionservicefactorybean#0, org.springframework.web.servlet.mvc.method.annotation.requestmappinghandleradapter#1, org.springframework.web.servlet.handler.mappedinterceptor#0, org.springframework.web.servlet.mvc.method.annotation.exceptionhandlerexceptionresolver#0, org.springframework.web.servlet.mvc.annotation.responsestatusexceptionresolver#0, org.springframework.web.servlet.mvc.support.defaulthandlerexceptionresolver#0, Org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping, Org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter, Org.springframework.web.servlet.mvc.simplecontrollerhandleradapter,velocityconfig,velocityviewresolver, Exceptionresolver,multipartresolver,localeresolver, Org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; Parent:org.s[email Protected]39ced71b[error] Failed jspjava.lang.NoClassDefFoundError:org/apache/jasper/runtime/Jspapplicationcontextimpl at Org.apache.jasper.servlet.JspServlet.destroy (Jspservlet.java:411) at Org.mortbay.jetty.servlet.ServletHolder.destroyInstance (Servletholder.java:318) at Org.mortbay.jetty.servlet.ServletHolder.doStop (Servletholder.java:289) at Org.mortbay.component.AbstractLifeCycle.stop (Abstractlifecycle.java: +) at Org.mortbay.jetty.servlet.ServletHandler.doStop (Servlethandler.java:171) at Org.mortbay.component.AbstractLifeCycle.stop (Abstractlifecycle.java: +) at Org.mortbay.jetty.handler.HandlerWrapper.doStop (Handlerwrapper.java:142) at Org.mortbay.component.AbstractLifeCycle.stop (Abstractlifecycle.java: +) at Org.mortbay.jetty.handler.HandlerWrapper.doStop (Handlerwrapper.java:142) at Org.mortbay.jetty.servlet.SessionHandler.doStop (Sessionhandler.java:124) at Org.mortbay.component.AbstractLifeCycle.stop (Abstractlifecycle.java: +) at Org.mortbay.jetty.handler.HandlerWrapper.doStop (Handlerwrapper.java:142) at Org.mortbay.jetty.handler.ContextHandler.doStop (Contexthandler.java:591) at Org.mortbay.jetty.webapp.WebAppContext.doStop (Webappcontext.java:498) at Org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStop (Jetty6pluginwebappcontext.java: the) at Org.mortbay.component.AbstractLifeCycle.stop (Abstractlifecycle.java: +) at Org.mortbay.jetty.handler.HandlerCollection.doStop (Handlercollection.java:169) at Org.mortbay.component.AbstractLifeCycle.stop (Abstractlifecycle.java: +) at Org.mortbay.jetty.handler.HandlerCollection.doStop (Handlercollection.java:169) at Org.mortbay.component.AbstractLifeCycle.stop (Abstractlifecycle.java: +) at Org.mortbay.jetty.handler.HandlerWrapper.doStop (Handlerwrapper.java:142) at Org.mortbay.jetty.Server.doStop (Server.java:281) at Org.mortbay.component.AbstractLifeCycle.stop (Abstractlifecycle.java: +) at Org.mortbay.jetty.server$shutdownhookthread.run (Server.java:559) caused By:java.lang.ClassNotFoundException:org.apache.jasper.runtime.JspApplicationContextImpl at Org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (Selffirststrategy.java: -) at Org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (Classrealm.java:259) at Org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (Classrealm.java:235) at Org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (Classrealm.java:227)    ...  -More[error] Failed [email protected]

Just see this abnormal thought is started two jetty, results according to the solution not, restart Eclipse also not, to Task Manager also did not find the process of Occupy port.

Finally find a solution on the Web:

1. Go to command Window and enter command: tasklist

In fact, this shows that the Task Manager service that page content, but more than the task Manager to show content, as I encountered this problem, in fact, there is a PID in the Task Manager is not displayed.

2. Input command: Taskkill/im the name of the process to be killed/F

Prompt to kill success, restart Eclipse, start Project, OK.

Map below:

How to use the Query Taskkill command:

"taskkill/im image name. exe/f" Where, "/im" followed by the image name, "/F" means the end of the force to see more usage of Taskkill, available command "taskkill/?" To view

Resolve eclipse appears address already in Use:bind

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.