问题描述
助:今天早晨起来我的tomcat进不了http://loacalhost:8080;tomcat启动正常,而且昨天还能用; catalina日志文件: 2011-1-6 8:19:55 org.apache.catalina.core.AprLifecycleListener init信息: Loaded APR based Apache Tomcat Native library 1.1.20.2011-1-6 8:19:55 org.apache.catalina.core.AprLifecycleListener init信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].2011-1-6 8:19:56 org.apache.coyote.http11.Http11AprProtocol init严重: Error initializing endpointjava.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:647)at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107)at org.apache.catalina.connector.Connector.initialize(Connector.java:1014)at org.apache.catalina.core.StandardService.initialize(StandardService.java:680)at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)at org.apache.catalina.startup.Catalina.load(Catalina.java:524)at org.apache.catalina.startup.Catalina.load(Catalina.java:548)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-1-6 8:19:56 org.apache.catalina.startup.Catalina load严重: Catalina.startLifecycleException: Protocol handler initialization failed: java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??at org.apache.catalina.connector.Connector.initialize(Connector.java:1016)at org.apache.catalina.core.StandardService.initialize(StandardService.java:680)at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)at org.apache.catalina.startup.Catalina.load(Catalina.java:524)at org.apache.catalina.startup.Catalina.load(Catalina.java:548)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-1-6 8:19:56 org.apache.catalina.startup.Catalina load信息: Initialization processed in 1539 ms2011-1-6 8:19:56 org.apache.catalina.core.StandardService start信息: Starting service Catalina2011-1-6 8:19:56 org.apache.catalina.core.StandardEngine start信息: Starting Servlet Engine: Apache Tomcat/6.0.292011-1-6 8:19:56 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory docs2011-1-6 8:19:56 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory examples2011-1-6 8:19:57 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory host-manager2011-1-6 8:19:57 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory manager2011-1-6 8:19:57 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory ROOT2011-1-6 8:19:57 org.apache.coyote.http11.Http11AprProtocol start严重: Error starting endpointjava.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:647)at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:754)at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:137)at org.apache.catalina.connector.Connector.start(Connector.java:1087)at org.apache.catalina.core.StandardService.start(StandardService.java:534)at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)at org.apache.catalina.startup.Catalina.start(Catalina.java:581)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2011-1-6 8:19:57 org.apache.catalina.startup.Catalina start严重: Catalina.start: LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??at org.apache.catalina.connector.Connector.start(Connector.java:1094)at org.apache.catalina.core.StandardService.start(StandardService.java:534)at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)at org.apache.catalina.startup.Catalina.start(Catalina.java:581)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2011-1-6 8:19:57 org.apache.catalina.startup.Catalina start信息: Server startup in 1138 ms2011-1-6 8:26:58 org.apache.coyote.http11.Http11AprProtocol pause信息: Pausing Coyote HTTP/1.1 on http-80802011-1-6 8:26:58 org.apache.coyote.ajp.AjpAprProtocol pause信息: Pausing Coyote AJP/1.3 on ajp-80092011-1-6 8:26:59 org.apache.catalina.core.StandardService stop信息: Stopping service Catalina2011-1-6 8:26:59 org.apache.catalina.connector.MapperListener destroy警告: Error unregistering MBeanServerDelegatejava.lang.NullPointerExceptionat org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:176)at org.apache.catalina.connector.Connector.stop(Connector.java:1135)at org.apache.catalina.core.StandardService.stop(StandardService.java:596)at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)at org.apache.catalina.startup.Catalina.stop(Catalina.java:648)at org.apache.catalina.startup.Catalina.start(Catalina.java:615)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2011-1-6 8:26:59 org.apache.coyote.http11.Http11AprProtocol destroy信息: Stopping Coyote HTTP/1.1 on http-80802011-1-6 8:26:59 org.apache.catalina.connector.Connector stop严重: Coyote connector has not been started2011-1-6 8:27:03 org.apache.catalina.core.AprLifecycleListener init信息: Loaded APR based Apache Tomcat Native library 1.1.20.2011-1-6 8:27:03 org.apache.catalina.core.AprLifecycleListener init信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].2011-1-6 8:27:03 org.apache.coyote.http11.Http11AprProtocol init严重: Error initializing endpointjava.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:647)at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107)at org.apache.catalina.connector.Connector.initialize(Connector.java:1014)at org.apache.catalina.core.StandardService.initialize(StandardService.java:680)at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)at org.apache.catalina.startup.Catalina.load(Catalina.java:524)at org.apache.catalina.startup.Catalina.load(Catalina.java:548)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-1-6 8:27:03 org.apache.catalina.startup.Catalina load严重: Catalina.startLifecycleException: Protocol handler initialization failed: java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??at org.apache.catalina.connector.Connector.initialize(Connector.java:1016)at org.apache.catalina.core.StandardService.initialize(StandardService.java:680)at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)at org.apache.catalina.startup.Catalina.load(Catalina.java:524)at org.apache.catalina.startup.Catalina.load(Catalina.java:548)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-1-6 8:27:03 org.apache.catalina.startup.Catalina load信息: Initialization processed in 858 ms2011-1-6 8:27:04 org.apache.catalina.core.StandardService start信息: Starting service Catalina2011-1-6 8:27:04 org.apache.catalina.core.StandardEngine start信息: Starting Servlet Engine: Apache Tomcat/6.0.292011-1-6 8:27:04 org.apache.catalina.startup.HostConfig deployDescriptor信息: Deploying configuration descriptor host-manager.xml2011-1-6 8:27:04 org.apache.catalina.startup.HostConfig deployDescriptor信息: Deploying configuration descriptor manager.xml2011-1-6 8:27:04 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory docs2011-1-6 8:27:04 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory examples2011-1-6 8:27:04 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory ROOT2011-1-6 8:27:04 org.apache.coyote.http11.Http11AprProtocol start严重: Error starting endpointjava.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:647)at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:754)at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:137)at org.apache.catalina.connector.Connector.start(Connector.java:1087)at org.apache.catalina.core.StandardService.start(StandardService.java:534)at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)at org.apache.catalina.startup.Catalina.start(Catalina.java:581)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2011-1-6 8:27:04 org.apache.catalina.startup.Catalina start严重: Catalina.start: LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??at org.apache.catalina.connector.Connector.start(Connector.java:1094)at org.apache.catalina.core.StandardService.start(StandardService.java:534)at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)at org.apache.catalina.startup.Catalina.start(Catalina.java:581)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2011-1-6 8:27:04 org.apache.catalina.startup.Catalina start信息: Server startup in 668 ms2011-1-6 8:49:35 org.apache.coyote.http11.Http11AprProtocol pause信息: Pausing Coyote HTTP/1.1 on http-80802011-1-6 8:49:35 org.apache.coyote.ajp.AjpAprProtocol pause信息: Pausing Coyote AJP/1.3 on ajp-80092011-1-6 8:49:36 org.apache.catalina.core.StandardService stop信息: Stopping service Catalina2011-1-6 8:49:37 org.apache.catalina.connector.MapperListener destroy警告: Error unregistering MBeanServerDelegatejava.lang.NullPointerExceptionat org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:176)at org.apache.catalina.connector.Connector.stop(Connector.java:1135)at org.apache.catalina.core.StandardService.stop(StandardService.java:596)at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)at org.apache.catalina.startup.Catalina.stop(Catalina.java:648)at org.apache.catalina.startup.Catalina.start(Catalina.java:615)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2011-1-6 8:49:37 org.apache.coyote.http11.Http11AprProtocol destroy信息: Stopping Coyote HTTP/1.1 on http-80802011-1-6 8:49:37 org.apache.catalina.connector.Connector stop严重: Coyote connector has not been started2011-1-6 8:49:41 org.apache.catalina.core.AprLifecycleListener init信息: Loaded APR based Apache Tomcat Native library 1.1.20.2011-1-6 8:49:41 org.apache.catalina.core.AprLifecycleListener init信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].2011-1-6 8:49:42 org.apache.coyote.http11.Http11AprProtocol init严重: Error initializing endpointjava.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:647)at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107)at org.apache.catalina.connector.Connector.initialize(Connector.java:1014)at org.apache.catalina.core.StandardService.initialize(StandardService.java:680)at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)at org.apache.catalina.startup.Catalina.load(Catalina.java:524)at org.apache.catalina.startup.Catalina.load(Catalina.java:548)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-1-6 8:49:42 org.apache.catalina.startup.Catalina load严重: Catalina.startLifecycleException: Protocol handler initialization failed: java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??at org.apache.catalina.connector.Connector.initialize(Connector.java:1016)at org.apache.catalina.core.StandardService.initialize(StandardService.java:680)at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)at org.apache.catalina.startup.Catalina.load(Catalina.java:524)at org.apache.catalina.startup.Catalina.load(Catalina.java:548)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-1-6 8:49:42 org.apache.catalina.startup.Catalina load信息: Initialization processed in 921 ms2011-1-6 8:49:42 org.apache.catalina.core.StandardService start信息: Starting service Catalina2011-1-6 8:49:42 org.apache.catalina.core.StandardEngine start信息: Starting Servlet Engine: Apache Tomcat/6.0.292011-1-6 8:49:42 org.apache.catalina.startup.HostConfig deployDescriptor信息: Deploying configuration descriptor host-manager.xml2011-1-6 8:49:42 org.apache.catalina.startup.HostConfig deployDescriptor信息: Deploying configuration descriptor manager.xml2011-1-6 8:49:42 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory docs2011-1-6 8:49:42 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory examples2011-1-6 8:49:42 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory ROOT2011-1-6 8:49:43 org.apache.coyote.http11.Http11AprProtocol start严重: Error starting endpointjava.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:647)at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:754)at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:137)at org.apache.catalina.connector.Connector.start(Connector.java:1087)at org.apache.catalina.core.StandardService.start(StandardService.java:534)at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)at org.apache.catalina.startup.Catalina.start(Catalina.java:581)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2011-1-6 8:49:43 org.apache.catalina.startup.Catalina start严重: Catalina.start: LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??at org.apache.catalina.connector.Connector.start(Connector.java:1094)at org.apache.catalina.core.StandardService.start(StandardService.java:534)at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)at org.apache.catalina.startup.Catalina.start(Catalina.java:581)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2011-1-6 8:49:43 org.apache.catalina.startup.Catalina start信息: Server startup in 683 ms 问题补充:beneo 写道
解决方案
可能你是开机时,tomcat自动启动了,你没有把它关掉,在eclipse上,你又启动了tomcat.建议不要开机启动tomcat.
解决方案二:
sqlwriter看上去不是个很重要的东西,如果这个很重要的话,tomcat换一个端口吧tomcat conf下更改server文件下的 <Connector port="8080" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" /> 其中port就是端口值 把8080改成你需要就可以了,别改错了
解决方案三:
端口占用说明有另外一个程序在8080,可能还是你的tomcat打开进程杀掉把