本文介绍了无法使用Eclipse启动Tomcat:“地址已在使用”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我无法启动我的tomcat服务器。我正在尝试几乎一切。切换位置无助于服务器位置。我在Windows 8. 这里我发布我的控制台错误: org.apache.catalina.core.AprLifecycleListener init INFO:基于APR的Apache Tomcat本地库在生产环境中允许最佳性能在java.library.path中找不到: C:\Program Files\Java\jdk1.7.0_21\bin; C:\Windows\Sun\Java\bin; C:\Windows\system32; C:\Windows; C :/用户/ Krzys /桌面/蚀-JEE-JUNO-SR2-Win32的x86_64的/蚀/ JRE / bin中/服务器; C:/用户/ Krzys /桌面/蚀-JEE-JUNO-SR2-Win32的x86_64的/蚀/ JRE / bin中; C:/用户/ Krzys /桌面/蚀-JEE-JUNO-SR2-Win32的x86_64的/蚀/ JRE / LIB / AMD64 ;; C:\Users\Krzys\Desktop\eclipse- JEE-JUNO-SR2-Win32的x86_64\eclipse ;;。 kwi 23,2013 3:53:21 PM org.apache.tomcat.util.digester.SetPropertiesRule begin 警告:[SetPropertiesRule] {Server / Service / Engine / Host / Context}设置属性源到org.eclipse.jst.jee.server:Lab5没有找到匹配的属性。 kwi 23,2013 3:53:21 PM org.apache.coyote.AbstractProtocol init INFO:初始化ProtocolHandler [http-bio-8080] kwi 23,2013 3:53 :21 PM org.apache.coyote.AbstractProtocol init SEVERE:无法初始化与ProtocolHandler关联的终点[http-bio-8080] java.net.BindException:已使用的地址:JVM_Bind < null>:8080 在org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:406)在org.apache.tomcat.util.net.AbstractEndpoint.init( AbstractEndpoint.java:610)在org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)在org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) 在org.apache.catalina.connector.Connector.initInternal(Connector.java:981)在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)在org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)在org.apac he.catalina.util.LifecycleBase.init(LifecycleBase.java:102)在org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)在org.apache.catalina。 util.LifecycleBase.init(LifecycleBase.java:102)在org.apache.catalina.startup.Catalina.load(Catalina.java:633)在org.apache.catalina.startup.Catalina。 load(Catalina.java:658) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun。 reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)在java.lang.reflect.Method.invoke(Method.java:601)在org.apache.catalina.startup.Bootstrap.load( Bootstrap.java:281)在org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)导致:java.net.BindException:地址已在使用:JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at j ava.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:96)在java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)在java.net.PlainSocketImpl.bind(PlainSocketImpl.java: 175)在java.net.ServerSocket.bind(ServerSocket.java:376)在java.net.ServerSocket。< init>(ServerSocket.java:237)在java。 net.ServerSocket。< init>(ServerSocket.java:181)在org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)在org.apache.tomcat .util.net.JIoEndpoint.bind(JIoEndpoint.java:393) ... 17更多 kwi 23,2013 3:53:21 PM org.apache.catalina.core。 StandardService initInternal SEVERE:无法初始化连接器[Connector [HTTP / 1.1-8080]] org.apache.catalina.LifecycleException:无法初始化组件[Connector [HTTP / 1.1-8080]] 在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)在或g.apache.catalina.core.StandardService.initInternal(StandardService.java:559)在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)在org.apache。 catalina.core.StandardServer.initInternal(StandardServer.java:814)在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)在org.apache.catalina.startup。 Catalina.load(Catalina.java:633)在org.apache.catalina.startup.Catalina.load(Catalina.java:658) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)在java.lang.reflect.Method。调用(Method.java:601)在org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)在org.apache.catalina.startup.Bootstrap.main(Bootstrap。 java:455)导致:org.apache.catalina.LifecycleExcept离子:协议处理程序初始化失败在org.apache.catalina.connector.Connector.initInternal(Connector.java:983)在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java: 102) ... 12更多导致:java.net.BindException:地址已在使用:JVM_Bind< null>:8080 在org.apache.tomcat.util.net .JIoEndpoint.bind(JIoEndpoint.java:406)在org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)在org.apache.coyote.AbstractProtocol.init (AbstractProtocol.java:429)在org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)在org.apache.catalina.connector.Connector.initInternal(Connector.java :981) ... 13更多导致:java.net.BindException:地址已在使用:JVM_Bind 在java.net.DualStackPlainSocketImpl.bind0(本地方法)在java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.jav a:96)在java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)在java.net.PlainSocketImpl.bind(PlainSocketImpl.java:175)在java.net .ServerSocket.bind(ServerSocket.java:376)在java.net.ServerSocket。(ServerSocket.java:237)在java.net.ServerSocket。(ServerSocket.java:181)在org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)在org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) ... 17更多 kwi 23,2013 3:53:21 PM org.apache.coyote.AbstractProtocol init INFO:初始化ProtocolHandler [ajp-bio-8009] kwi 23,2013 3:53:21 PM org.apache.coyote.AbstractProtocol init SEVERE:无法初始化与ProtocolHandler相关联的终点[ajp-bio-8009] java。 net.BindException:已经在使用的地址:JVM_Bind< null>:8009 在org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:4 06)在org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)在org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)在org.apache.catalina.connector.Connector.initInternal(Connector.java:981)在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)在org .apache.catalina.core.StandardService.initInternal(StandardService.java:559)在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)在org.apache.catalina .core.StandardServer.initInternal(StandardServer.java:814)在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)在org.apache.catalina.startup.Catalina .load(Catalina.java:633)在org.apache.catalina.startup.Catalina.load(Catalina.java:658) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at su n.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)在java.lang.reflect.Method.invoke(Method.java:601)在org.apache.catalina.startup.Bootstrap。 load(Bootstrap.java:281)在org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)引起的:java.net.BindException:已经在使用的地址:JVM_Bind 在java.net.DualStackPlainSocketImpl.bind0(本机方法)在java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:96)在java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl。 java:376)在java.net.PlainSocketImpl.bind(PlainSocketImpl.java:175)在java.net.ServerSocket.bind(ServerSocket.java:376)在java.net .ServerSocket。(ServerSocket.java:237)在java.net.ServerSocket。(ServerSocket.java:181)在org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java :49)在org.apache.tomca t.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) ... 16更多 kwi 23,2013 3:53:21 PM org.apache.catalina.core .StandardService initInternal SEVERE:无法初始化连接器[Connector [AJP / 1.3-8009]] org.apache.catalina.LifecycleException:无法初始化组件[Connector [AJP / 1.3-8009]] 在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)在org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)在org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)在org.apache。 catalina.util.LifecycleBase.init(LifecycleBase.java:102)在org.apache.catalina.startup.Catalina.load(Catalina.java:633)在org.apache.catalina.startup。 Catalina.load(Catalina.java:658) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.N ativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)在java.lang.reflect.Method.invoke(Method.java:601) 在org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)在org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)导致:org.apache.catalina.LifecycleException:协议处理程序初始化失败在org.apache.catalina.connector.Connector.initInternal(Connector.java:983)在org.apache.catalina.util .LifecycleBase.init(LifecycleBase.java:102) ... 12更多引起的:java.net.BindException:已经在使用的地址:JVM_Bind< null>:8009 org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:406)在org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)在org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)在org.apache.catalina.connector.Connector.initInternal(Connector.java:981) ... 13更多导致:java.net.BindException:地址已在使用:JVM_Bind java.net.DualStackPlainSocketImpl.bind0(Native Method)在java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:96)在java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376 )在java.net.PlainSocketImpl.bind(PlainSocketImpl.java:175)在java.net.ServerSocket.bind(ServerSocket.java:376)在java.net.ServerSocket。 (ServerSocket.java:237)在java.net.ServerSocket。(ServerSocket.java:181)在org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) 在org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) ... 16更多 kwi 23,2013 3:53: 21 PM org.apache.catalina.startup.Catalina load INFO:初始化处理在1271 ms kwi 23,2013 3:53:21 PM org.apache.catalina.core.StandardService startInternal INFO:启动服务Catalina kwi 23,2013 3:53:21 PM org.apache。 catalina.core.StandardEngine startInternal INFO:启动Servlet引擎:Apache Tomcat / 7.0.39 kwi 23,2013 3:53:23 PM org.apache.catalina.startup.HostConfig deployDirectory 信息:部署Web应用程序目录C:\Users\Krzys\Desktop\eclipse-jee-juno-SR2-win32-x86_64\eclipse\apache-tomcat-7.0.39\webapps\docs kwi 23,2013 3:53:23 PM org.apache.catalina.startup.HostConfig deployDirectory INFO:部署Web应用程序目录C:\Users\Krzys\Desktop\eclipse-jee-juno -SR2-win32-x86_64\eclipse\apache-tomcat-7.0.39\webapps\examples kwi 23,2013 3:53:24 PM org.apache.catalina.core.ApplicationContext log INFO:ContextListener:contextInitialized() kwi 23,2013 3:53:24 PM org.apache.catalina.core.Appli ionContext log INFO:SessionListener:contextInitialized() kwi 23,2013 3:53:24 PM org.apache.catalina.core.ApplicationContext log INFO:ContextListener:attributeAdded('org。 apache.jasper.compiler.TldLocationsCache','org.apache.jasper.compiler.TldLocationsCache@737d54dd') kwi 23,2013 3:53:24 PM org.apache.catalina.startup.HostConfig deployDirectory 信息:部署Web应用程序目录C:\Users\Krzys\Desktop\eclipse-jee-juno-SR2-win32-x86_64\eclipse\apache-tomcat-7.0.39\webapps\host- manager kwi 23,2013 3:53:24 PM org.apache.catalina.startup.HostConfig deployDirectory INFO:部署Web应用程序目录C:\Users\Krzys\Desktop\eclipse- jee-juno-SR2-win32-x86_64\eclipse\apache-tomcat-7.0.39\webapps\manager kwi 23,2013 3:53:24 PM org.apache.catalina.startup.HostConfig deployDirectory INFO:部署Web应用程序目录C:\U sers\Krzys\Desktop\eclipse-jee-juno-SR2-win32-x86_64\eclipse\apache-tomcat-7.0.39\webapps\ROOT kwi 23,2013 3:53: 24 PM org.apache.catalina.startup.Catalina start INFO:服务器启动在3028 ms kwi 23,2013 3:53:24 PM org.apache.catalina.core.StandardServer await SEVERE:StandardServer.await:create [localhost:8080]: java.net.BindException:地址已在使用:JVM_Bind 在java.net.DualStackPlainSocketImpl.bind0(本地方法)在java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:96)在java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)在java.net.PlainSocketImpl.bind(PlainSocketImpl.java :175)在java.net.ServerSocket.bind(ServerSocket.java:376)在java.net.ServerSocket。< init>(ServerSocket.java:237)在org .apache.catalina.core.StandardServer.await(StandardServer.java:427)在org.apache.catalina.startu p.Catalina.await(Catalina.java:766)在org.apache.catalina.startup.Catalina.start(Catalina.java:712) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method ) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)在java.lang.reflect。 Method.invoke(Method.java:601)在org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)在org.apache.catalina.startup.Bootstrap.main( Bootstrap.java:456) kwi 23,2013 3:53:24 PM org.apache.coyote.AbstractProtocol pause 信息:暂停ProtocolHandler [http-bio-8080] kwi 23,2013 3:53:24 PM org.apache.coyote.AbstractProtocol pause 信息:暂停ProtocolHandler [ajp-bio-8009] kwi 23,2013 3:53: 24 PM org.apache.catalina.core.StandardService stopInternal INFO:停止服务Catalina kwi 23,2013 3:53:24 PM org.apache。 catalina.core.ApplicationContext log INFO:SessionListener:contextDestroyed() kwi 23,2013 3:53:24 PM org.apache.catalina.core.ApplicationContext log INFO:ContextListener:contextDestroyed () kwi 23,2013 3:53:24 PM org.apache.coyote.AbstractProtocol stop INFO:Stopping ProtocolHandler [http-bio-8080] kwi 23,2013 3 :53:24 PM org.apache.coyote.AbstractProtocol destroy 信息:销毁ProtocolHandler [http-bio-8080] kwi 23,2013 3:53:24 PM org.apache.coyote。摘要协议停止 INFO:停止ProtocolHandler [ajp-bio-8009] kwi 23,2013 3:53:24 PM org.apache.coyote.AbstractProtocol destroy INFO:Destroying ProtocolHandler [ ajp-bio-8009] 在Tomcat停止之后,我得到了控制台中的错误: kwi 23,2013 4:27:38 PM org.apache.catalina.startup.Catalina stopServer SEVERE:Catalina.stop: java.net.ConnectException:connect:Addres s在本地机器上无效,或端口在远程计算机上无效在java.net.DualStackPlainSocketImpl.connect0(本机方法)在java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:69) 在java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)在java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)在java.net.AbstractPlainSocketImpl.connect (AbstractPlainSocketImpl.java:182)在java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)在java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391) at java.net.Socket.connect(Socket.java:579)在java.net.Socket.connect(Socket.java:528)在java.net.Socket。< init>(Socket .java:425)在java.net.Socket。< init>(Socket.java:208)在org.apache.catalina.startup.Catalina.stopServer(Catalina.java:499) at sun.reflect.NativeMethodAccessorImpl.invoke0( Native方法) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)在java.lang。 reflect.Method.invoke(Method.java:601)在org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:371)在org.apache.catalina.startup.Bootstrap。 main(Bootstrap.java:458) 解决方案默认情况下,Tomcat配置为启动端口 8080 但是你有东西已经绑定到该端口。它可能是Tomcat Web服务器的另一个实例。 地址已在使用:JVM_Bind:8080 in日志意味着您的计算机已经有一个服务侦听端口 8080 。通过 netstat (命令行工具)或 TCP View (图形工具),关闭它,然后重新启动Tomcat。它应该超过这个错误。 或者,通过双击 Tomcat vx.x服务器,在Eclipse中配置Tomcat以在另一个端口上启动在服务器选项卡中的localhost 行中,更改所有窗口右侧显示的端口出现不同的端口。 p> I can't start my tomcat server. I was trying almost everything. Switching location doesn't help, as a server location. I'm on Windows 8.Here I post my console errors: org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_21\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Users/Krzys/Desktop/eclipse-jee-juno-SR2-win32-x86_64/eclipse/jre/bin/server;C:/Users/Krzys/Desktop/eclipse-jee-juno-SR2-win32-x86_64/eclipse/jre/bin;C:/Users/Krzys/Desktop/eclipse-jee-juno-SR2-win32-x86_64/eclipse/jre/lib/amd64;;C:\Users\Krzys\Desktop\eclipse-jee-juno-SR2-win32-x86_64\eclipse;;. kwi 23, 2013 3:53:21 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Lab5' did not find a matching property. kwi 23, 2013 3:53:21 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] kwi 23, 2013 3:53:21 PM org.apache.coyote.AbstractProtocol init SEVERE: 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:406) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) 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.startup.Catalina.load(Catalina.java:633) at org.apache.catalina.startup.Catalina.load(Catalina.java:658) 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:601) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)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:96) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:175) at java.net.ServerSocket.bind(ServerSocket.java:376) 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:393) ... 17 more kwi 23, 2013 3:53:21 PM org.apache.catalina.core.StandardService initInternal SEVERE: 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.startup.Catalina.load(Catalina.java:633) at org.apache.catalina.startup.Catalina.load(Catalina.java:658) 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:601) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455) 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) ... 12 moreCaused by: java.net.BindException: Address already in use: JVM_Bind <null>:8080 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:406) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) ... 13 moreCaused by: java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:96) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:175) at java.net.ServerSocket.bind(ServerSocket.java:376) at java.net.ServerSocket.(ServerSocket.java:237) at java.net.ServerSocket.(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) ... 17 more kwi 23, 2013 3:53:21 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] kwi 23, 2013 3:53:21 PM org.apache.coyote.AbstractProtocol init SEVERE: Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8009"] java.net.BindException: Address already in use: JVM_Bind <null>:8009 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:406) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) 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.startup.Catalina.load(Catalina.java:633) at org.apache.catalina.startup.Catalina.load(Catalina.java:658) 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:601) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455) 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:96) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:175) at java.net.ServerSocket.bind(ServerSocket.java:376) at java.net.ServerSocket.(ServerSocket.java:237) at java.net.ServerSocket.(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) ... 16 more kwi 23, 2013 3:53:21 PM org.apache.catalina.core.StandardService initInternal SEVERE: 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: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.startup.Catalina.load(Catalina.java:633) at org.apache.catalina.startup.Catalina.load(Catalina.java:658) 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:601) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455) 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) ... 12 moreCaused by: java.net.BindException: Address already in use: JVM_Bind <null>:8009 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:406) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) ... 13 moreCaused by: java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:96) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:175) at java.net.ServerSocket.bind(ServerSocket.java:376) at java.net.ServerSocket.(ServerSocket.java:237) at java.net.ServerSocket.(ServerSocket.java:181) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) ... 16 more kwi 23, 2013 3:53:21 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1271 ms kwi 23, 2013 3:53:21 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina kwi 23, 2013 3:53:21 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.39 kwi 23, 2013 3:53:23 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Users\Krzys\Desktop\eclipse-jee-juno-SR2-win32-x86_64\eclipse\apache-tomcat-7.0.39\webapps\docs kwi 23, 2013 3:53:23 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Users\Krzys\Desktop\eclipse-jee-juno-SR2-win32-x86_64\eclipse\apache-tomcat-7.0.39\webapps\examples kwi 23, 2013 3:53:24 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() kwi 23, 2013 3:53:24 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() kwi 23, 2013 3:53:24 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@737d54dd') kwi 23, 2013 3:53:24 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Users\Krzys\Desktop\eclipse-jee-juno-SR2-win32-x86_64\eclipse\apache-tomcat-7.0.39\webapps\host-manager kwi 23, 2013 3:53:24 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Users\Krzys\Desktop\eclipse-jee-juno-SR2-win32-x86_64\eclipse\apache-tomcat-7.0.39\webapps\manager kwi 23, 2013 3:53:24 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Users\Krzys\Desktop\eclipse-jee-juno-SR2-win32-x86_64\eclipse\apache-tomcat-7.0.39\webapps\ROOT kwi 23, 2013 3:53:24 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 3028 ms kwi 23, 2013 3:53:24 PM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[localhost:8080]: java.net.BindException: Address already in use: JVM_Bind at java.net.DualStackPlainSocketImpl.bind0(Native Method) at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:96) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:175) at java.net.ServerSocket.bind(ServerSocket.java:376) at java.net.ServerSocket.<init>(ServerSocket.java:237) at org.apache.catalina.core.StandardServer.await(StandardServer.java:427) at org.apache.catalina.startup.Catalina.await(Catalina.java:766) at org.apache.catalina.startup.Catalina.start(Catalina.java:712) 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:601) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456) kwi 23, 2013 3:53:24 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["http-bio-8080"] kwi 23, 2013 3:53:24 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler ["ajp-bio-8009"] kwi 23, 2013 3:53:24 PM org.apache.catalina.core.StandardService stopInternal INFO: Stopping service Catalina kwi 23, 2013 3:53:24 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() kwi 23, 2013 3:53:24 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() kwi 23, 2013 3:53:24 PM org.apache.coyote.AbstractProtocol stop INFO: Stopping ProtocolHandler ["http-bio-8080"] kwi 23, 2013 3:53:24 PM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler ["http-bio-8080"] kwi 23, 2013 3:53:24 PM org.apache.coyote.AbstractProtocol stop INFO: Stopping ProtocolHandler ["ajp-bio-8009"] kwi 23, 2013 3:53:24 PM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler ["ajp-bio-8009"]After hit on stop of Tomcat I get this error in the console: kwi 23, 2013 4:27:38 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:69) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at java.net.Socket.<init>(Socket.java:425) at java.net.Socket.<init>(Socket.java:208) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:499) 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:601) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:371) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:458) 解决方案 By default, Tomcat is configured to start on port 8080 but you have something already bound to that port. It is likely to be another instance of the Tomcat web server.Address already in use: JVM_Bind :8080 in the log means that your machine already has a service listening on port 8080. Find it, either with netstat (command line tool) or TCP View (graphical tool), shut it down, then restart Tomcat. It should get past that error.Alternatively, configure Tomcat in Eclipse to start on a different port by double clicking on the Tomcat vx.x Server at localhost line in the Servers tab and changing all the ports shown on the right hand side of the window that appears to something different. 这篇关于无法使用Eclipse启动Tomcat:“地址已在使用”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-07 00:47