zoukankan      html  css  js  c++  java
  • idea使用maven中的tomcat插件开启服务出现java.net.BindException: Address already in use: JVM_Bind :8080错误原因

    [INFO] create webapp with contextPath: /maven_web
    五月 11, 2019 6:05:26 下午 org.apache.coyote.AbstractProtocol init
    信息: Initializing ProtocolHandler ["http-bio-8080"]
    五月 11, 2019 6:05:26 下午 org.apache.coyote.AbstractProtocol init
    严重: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"]
    java.net.BindException: Address already in use: JVM_Bind <null>:8080
    	at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:407)
    	at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:623)
    	at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
    	at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
    	at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
    	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    	at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
    	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    	at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)
    	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    	at org.apache.catalina.startup.Tomcat.start(Tomcat.java:341)
    	at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.startContainer(AbstractRunMojo.java:1238)
    	at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.execute(AbstractRunMojo.java:592)
    	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
    	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
    	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
    	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    	at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
    	at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
    Caused by: java.net.BindException: Address already in use: JVM_Bind
    	at java.net.DualStackPlainSocketImpl.bind0(Native Method)
    	at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
    	at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
    	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
    	at java.net.ServerSocket.bind(ServerSocket.java:375)
    	at java.net.ServerSocket.<init>(ServerSocket.java:237)
    	at java.net.ServerSocket.<init>(ServerSocket.java:181)
    	at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
    	at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:394)
    	... 36 more
    
    五月 11, 2019 6:05:26 下午 org.apache.catalina.core.StandardService initInternal
    严重: Failed to initialize connector [Connector[HTTP/1.1-8080]]
    org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8080]]
    	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
    	at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
    	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    	at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)
    	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    	at org.apache.catalina.startup.Tomcat.start(Tomcat.java:341)
    	at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.startContainer(AbstractRunMojo.java:1238)
    	at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.execute(AbstractRunMojo.java:592)
    	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
    	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
    	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
    	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    	at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
    	at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
    Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
    	at org.apache.catalina.connector.Connector.initInternal(Connector.java:983)
    	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    	... 31 more
    Caused by: java.net.BindException: Address already in use: JVM_Bind <null>:8080
    	at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:407)
    	at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:623)
    	at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
    	at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
    	at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
    	... 32 more
    Caused by: java.net.BindException: Address already in use: JVM_Bind
    	at java.net.DualStackPlainSocketImpl.bind0(Native Method)
    	at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
    	at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
    	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
    	at java.net.ServerSocket.bind(ServerSocket.java:375)
    	at java.net.ServerSocket.<init>(ServerSocket.java:237)
    	at java.net.ServerSocket.<init>(ServerSocket.java:181)
    	at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
    	at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:394)
    	... 36 more
    
    

    原因:
    之前项目开启的tomcat服务器没关闭,导致8080端口被占用。
    解决办法:
    查看具体哪个tomcat服务器没关,将其关掉就好了

  • 相关阅读:
    约数个数 和 约数之和
    二分模板
    新生赛补题
    codefores刷题心得3 思维+dp(特别好玩)
    二叉树的遍历及例题
    团队作业七——团队作业分配
    WarPlane——游戏设计文档
    团队作业(五)
    团队作业(四)
    团队项目方案分析
  • 原文地址:https://www.cnblogs.com/wf614/p/11673814.html
Copyright © 2011-2022 走看看