今天开发遇到下面问题,贴出部分异常信息,如下:

[WARNING] failed SelectChannelConnector@0.0.0.0:
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:)
at sun.nio.ch.Net.bind(Net.java:)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:)
at org.mortbay.jetty.Server.doStart(Server.java:)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:)
at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:)
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:)
at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:)
at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:)
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:)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:)
[WARNING] failed Server@3bca1fe2 [INFO] Shutdown hook executing
[INFO] Destroying Spring FrameworkServlet 'springmvc'
-- ::, INFO XmlWebApplicationContext: - Closing WebApplicationContext for namespace 'springmvc-servlet': startup date [Wed Oct :: CST ]; parent: Root WebApplicationContext
-- ::, INFO DefaultListableBeanFactory: - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@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#,stringHttpMessageConverter,fastJsonHttpMessageConverter,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#,mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#,org.springframework.format.support.FormattingConversionServiceFactoryBean#,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#,org.springframework.web.servlet.handler.MappedInterceptor#,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#,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.springframework.beans.factory.support.DefaultListableBeanFactory@39ced71b
[ERROR] failed jsp
java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspApplicationContextImpl
at org.apache.jasper.servlet.JspServlet.destroy(JspServlet.java:)
at org.mortbay.jetty.servlet.ServletHolder.destroyInstance(ServletHolder.java:)
at org.mortbay.jetty.servlet.ServletHolder.doStop(ServletHolder.java:)
at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:)
at org.mortbay.jetty.servlet.ServletHandler.doStop(ServletHandler.java:)
at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:)
at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:)
at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:)
at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:)
at org.mortbay.jetty.servlet.SessionHandler.doStop(SessionHandler.java:)
at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:)
at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:)
at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:)
at org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:)
at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStop(Jetty6PluginWebAppContext.java:)
at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:)
at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:)
at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:)
at org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:)
at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:)
at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:)
at org.mortbay.jetty.Server.doStop(Server.java:)
at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:)
at org.mortbay.jetty.Server$ShutdownHookThread.run(Server.java:)
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:)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:)
... more
[ERROR] failed ServletHandler@19d31463

刚看到这个异常以为是启动了两个jetty,结果按照解决办法不行,重启eclipse也不行,到任务管理器里也没有发现占用端口的进程。

最终网上找到解决办法:

1、进入命令窗口,输入命令 :tasklist

其实这显示的就是任务管理器里服务那个页面内容,但是要比任务管理器里展示内容更多,就如我遇到的这个问题,其实是有个pid在任务管理器中是没有显示的。

2、输入命令:taskkill /im 要杀死的进程名称 /f

提示杀死成功,重启eclipse,启动项目,ok。

下面贴图 :

查询taskkill命令的使用方法:

“taskkill /im 映像名称.exe /f” 其中,“/im”后面接映像名称,“/f”的意思的强制结束如想看taskkill的更多用法,可用命令“taskkill /?”进行查看

解决 eclipse出现 Address already in use: bind的更多相关文章

  1. 解决 eclipse出现 Address already in use: bind,以及tomcat端口占用

    在项目开发中,有时候我们发现回报这个错:解决 eclipse出现 Address already in use: bind 产生的原因是端口占用,比如你的8080端口,已经有一个进程在访问使用,但是你 ...

  2. Jenkins启动时报错:java.net.BindException: Address already in use: bind 解决方法

    下载jenkins.war包后,进入Jenkins.war包目录下,运行java -jar jenkins.war时报端口被占用的错误:java.net.BindException: Address ...

  3. 解决springboot 出现异常: java.net.BindException: Address already in use: bind

    解决springboot 出现异常: java.net.BindException: Address already in use: bind 这是引文在启动springboot 的时候,没有关闭端口 ...

  4. 解决 java.net.BindException: Address already in use (Bind failed)

    这是因为tomcat未正确关闭导致的端口占用问题 找到报错中被占用的端口kill掉进程即可,一般是8080,也有下面这种8005的 11-Mar-2019 14:46:12.405 SEVERE [m ...

  5. springboot项目启动时提示Address already in use: bind

    PS:web项目在启动的时候,一般会报Address already in use: bind,常规的处理思路为:删除任务管理器中的javaw.exe进程即可:当删除仍然解决不了时,一般处理思路如下, ...

  6. 【nginx】解决Nginx重启时提示nginx: [emerg] bind() to 0.0.0.0:80错误

    Nginx是一款轻量级的Web服务器,特点是占有内存少,并发能力强,因而使用比较广泛,蜗牛今天在一个VPS上重启Nginx时提示“nginx: [emerg] bind() to 0.0.0.0:80 ...

  7. 解决Nginx重启时提示nginx: [emerg] bind() to 0.0.0.0:80错误

    Nginx是一款轻量级的Web服务器,特点是占有内存少,并发能力强,因而使用比较广泛,蜗牛今天在一个VPS上重启Nginx时提示“nginx: [emerg] bind() to 0.0.0.0:80 ...

  8. 解决eclipse中自带的maven搜索不到非本地第三方包问题

     解决eclipse中自带的maven搜索不到非本地第三方包问题   版权声明:本文为博主原创文章,未经博主允许不得转载. 最近使用eclipse中的maven插件时发现,在pom.xml文件中添加第 ...

  9. 解决Eclipse中文乱码 - 技术博客 - 51CTO技术博客 http://hsj69106.blog.51cto.com/1017401/595598/

    解决Eclipse中文乱码 - 技术博客 - 51CTO技术博客  http://hsj69106.blog.51cto.com/1017401/595598/

随机推荐

  1. 2002-2003 ACM-ICPC Northeastern European Regional Contest (NEERC 02)

    B Bricks 计算几何乱搞 题意: 给你个立方体,问你能不能放进一个管道里面. 题解: 这是一道非常迷的题,其问题在于,你可以不正着放下去,你需要斜着放.此时你需要枚举你旋转的角度,来判断是否可行 ...

  2. HttpClient的Post请求数据

    最近在项目中需要添加Post请求数据,以前的Get请求是使用JDK自带的URLConnection.在项目组人员的推荐下,开始使用HttpClient. HttpClient简介: HttpClien ...

  3. 编译lua

    http://www.lua.org/ 新建一个 static library 工程,把解压得到的目录下的src子目录中的所有.h和.c文件拷贝到新工程目录下. 工程中删除自动生成的 main.c 文 ...

  4. erlang debugger

    http://erlang.org/doc/apps/debugger/debugger_chapter.html

  5. java判断日期与星期

    原文:http://www.open-open.com/code/view/1440592372888 import java.text.SimpleDateFormat; import java.u ...

  6. 词典对象(NSDictionary和NSMutableDictionary)

    词典(dictionary)顾名思义就是同由键-值组成的数据集合.与在词典中查找单词定义一样,可以通过对象的键从词典中获取需要的对象,看到 这里,你是不是想起了java中的map?和NSArray一样 ...

  7. Dubbo简介及实例

    节点角色说明: Ø  Provider: 暴露服务的服务提供方. Ø  Consumer: 调用远程服务的服务消费方. Ø  Registry: 服务注册与发现的注册中心. Ø  Monitor: 统 ...

  8. vue2.0 自定义 生成二维码(QRCode)组件

    1.自定义 生成二维码组件 QRCode.vue <!-- 生成二维码 组件 --> <template> <canvas class="qrcode-canv ...

  9. OS: 读者写者问题(写者优先+LINUX+多线程+互斥量+代码)(转)

    一. 引子 最近想自己写个简单的 WEB SERVER ,为了先练练手,熟悉下在LINUX系统使用基本的进程.线程.互斥等,就拿以前学过的 OS 问题开开刀啦.记得当年学读者写者问题,尤其是写者优先的 ...

  10. vs2010中添加dll文件

    1.更改设置 1.1   project->properties->configuration properties->C/C++->General->Addtional ...