Tomcat catalina.log捕获了许多例外

时间:2014-03-14 15:11:18

标签: java apache java-ee tomcat servlets

我遇到了应用程序缓慢问题,它抛出了java异常并且无法连接到数据库'。 我最初调查过它来自一个catch块,它的try块只是执行数据库连接并运行一些查询。 我仍然不知道问题是什么。我也查看了tomcat的catalina.log文件,我在那里遇到了几个问题。 这些问题可能与应用程序的缓慢无关,但那些问题很多。 我列出了catalina.log中报告的所有问题,以便您可以帮助我。非常感谢提前..

> catalina.log

xxxx-xx-xx xx:49:21,311 ERROR main org.apache.catalina.startup.Catalina - Catalina.start: 
LifecycleException:  Protocol handler start failed: java.net.BindException: Address already in use:xxxx
    at org.apache.catalina.connector.Connector.start(Connector.java:1003)
    at org.apache.catalina.core.StandardService.start(StandardService.java:459)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

xxxx-xx-xx xx:49:21,312 ERROR main org.apache.catalina.core.StandardServer - StandardServer.await: create[19331]: 
java.net.BindException: Address already in use
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
    at java.net.ServerSocket.bind(ServerSocket.java:319)
    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at org.apache.catalina.core.StandardServer.await(StandardServer.java:346)
    at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

xxxx-xx-xx xx:49:21,313 ERROR Thread-1 org.apache.catalina.connector.Connector - Protocol handler pause failed
java.lang.NullPointerException
    at org.apache.jk.server.JkMain.pause(JkMain.java:675)
    at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:209)
    at org.apache.catalina.connector.Connector.pause(Connector.java:943)
    at org.apache.catalina.core.StandardService.stop(StandardService.java:491)
    at org.apache.catalina.core.StandardServer.stop(StandardServer.java:717)
    at org.apache.catalina.startup.Catalina.stop(Catalina.java:586)
    at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:629)

xxxx-xx-xx xx:49:21,571 ERROR main org.apache.coyote.http11.Http11Protocol - Error initializing endpoint
java.net.BindException: Address already in use:xxxx
    at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:297)
    at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:142)
    at org.apache.catalina.connector.Connector.initialize(Connector.java:928)
    at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:490)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:509)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)

xxxx-xx-xx xx:49:22,319 WARN Thread-1 org.apache.catalina.connector.MapperListener - Error unregistering MBeanServerDelegate
java.lang.NullPointerException
    at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:161)
    at org.apache.catalina.connector.Connector.stop(Connector.java:1044)
    at org.apache.catalina.core.StandardService.stop(StandardService.java:521)
    at org.apache.catalina.core.StandardServer.stop(StandardServer.java:717)
    at org.apache.catalina.startup.Catalina.stop(Catalina.java:586)
    at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:629)

1 个答案:

答案 0 :(得分:1)

&#34; ERROR main org.apache.coyote.http11.Http11Protocol - 初始化端点时出错 java.net.BindException:已在使用的地址:xxxx&#34;

您正在尝试在已经使用的端口中启动tomcat。尝试使用netstat查找哪个应用程序正在使用此端口(XXXX)。