tomcat启动报错Socket accept failed
tomcat启动时,报错如下:
?
2011-8-11 21:09:31 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run严重: Socket accept failedjava.net.SocketException: select failedat java.net.PlainSocketImpl.socketAccept(Native Method)at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)at java.net.ServerSocket.implAccept(ServerSocket.java:453)at java.net.ServerSocket.accept(ServerSocket.java:421)at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:61)at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:310)at java.lang.Thread.run(Thread.java:619)?
?
解决:
在启动参数中添加
-Djava.net.preferIPv4Stack=true