Zhaoxinl1234 2019-03-20 17:33 采纳率: 0%
浏览 813

osx eclipse 启动tomcat时报错:严重: Socket accept failed java.net.SocketException: Socket closed

如题,使用mac版eclipse启动
已经关闭ipv6,eclipse连接Oracle可以连通。
控制台信息如下:

Init datasource error [design] can not get connection,please check the DBSet
三月 20, 2019 3:53:23 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-127.0.0.1-8099"]
三月 20, 2019 3:53:24 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service bright
三月 20, 2019 3:53:24 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: UAP Server
三月 20, 2019 3:53:25 下午 org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
信息: No global web.xml found
ESA Server starting
NTBService6.3 started.~~~~~~
ESA Server started: 51965
三月 20, 2019 3:54:37 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-127.0.0.1-8099"]
三月 20, 2019 3:54:38 下午 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run
严重: Socket accept failed
java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60)
at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:216)
at java.lang.Thread.run(Thread.java:745)

三月 20, 2019 3:54:38 下午 org.apache.tomcat.granite.BrightTomcat start
信息: Server startup in 76169 ms
三月 20, 2019 3:54:38 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["http-bio-127.0.0.1-8099"]
三月 20, 2019 3:54:38 下午 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run
严重: Socket accept failed
java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60)
at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:216)
at java.lang.Thread.run(Thread.java:745)

三月 20, 2019 3:54:38 下午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service bright
ESA Server stopping
ESA Server stopped
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [check-offline-msg-valid] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-6] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-7] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-8] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-10] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-9] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-11] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-12] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-13] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-15] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-16] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-17] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-18] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-20] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-21] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-22] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-23] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-24] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-25] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-26] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-27] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-28] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-29] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-30] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-31] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-32] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-33] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-34] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-35] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-36] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-37] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-38] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-39] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-40] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [transport-check-msg-repeat-thread] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [antesearch-1-thread] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [antesearch-2-thread] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [antesearch-3-thread] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [antesearch-4-thread] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [antesearch-5-thread] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-42] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-44] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-45] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-46] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-47] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-48] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-49] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-50] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [Thread-51] but has failed to stop it. This is very likely to create a memory leak.
三月 20, 2019 3:54:39 下午 org.apache.coyote.AbstractProtocol stop
信息: Stopping ProtocolHandler ["http-bio-127.0.0.1-8099"]
三月 20, 2019 3:54:39 下午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["http-bio-127.0.0.1-8099"]

  • 写回答

1条回答 默认 最新

  • raymond27 2023-09-14 08:55
    关注

    这个错误通常表示Tomcat试图监听一个已经被其他程序或者操作占用的端口。如果你的操作系统上的其他应用正在使用相同的端口,那么就会出现这种问题。

    以下是一些可能的解决步骤:

    1.检查是否有其他应用正在使用Tomcat的端口:你可以使用lsof -i :[port]命令(其中[port]是Tomcat应该监听的端口号)来查看哪些进程正在使用该端口。在终端中执行这个命令,如果返回任何结果,那就说明有其他应用正在使用这个端口。你可以尝试关闭这些应用,或者更改它们的端口设置。
    2.更改Tomcat使用的端口:在你的Tomcat配置文件(通常是server.xml)中,你可以更改Tomcat监听的端口。这个文件通常位于Tomcat安装目录的conf文件夹中。找到<Connector port="8080" protocol="HTTP/1.1"这一行(或者你当前使用的其他端口),然后将port属性的值更改为其他未被占用的端口。
    3.确认防火墙规则:确保你的防火墙没有阻止Tomcat监听特定的端口。在OS X上,你可以使用sudo ufw status命令查看当前的防火墙规则。如果防火墙已经开启,你可能需要添加一个规则来允许Tomcat通过。
    4.重新启动Tomcat:更改完配置后,记得重新启动Tomcat以使更改生效。你可以在Eclipse的配置中完成这个操作,或者直接在命令行中使用Tomcat的启动脚本。

    如果还不能接解决, 可以试试下面的思路:

    1.端口冲突:这可能是由于Tomcat试图在已经被其他应用或者服务占用的端口上监听。你可以通过查看server.xml中的配置,更改Tomcat使用的端口。
    2.网络问题:这可能是因为网络不稳定或者网络配置不正确。确保你的网络连接稳定,并且防火墙或者其他安全设置没有阻止Tomcat的连接。
    3.程序错误:可能是Tomcat或者你的应用程序中的代码错误导致的问题。如果可能的话,尝试更新你的Tomcat版本或者应用程序,看看问题是否仍然存在。
    4.服务未正常启动:有时可能是由于服务没有正常启动导致的。尝试停止Tomcat服务然后重新启动,看看问题是否仍然存在。

    注意:以上只是一些可能的原因和解决方案,并不一定适用于所有情况。

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器