首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Exception >

Eclipse Jetty JettyLauncher java.net.SocketException: Unrecognized Windows Socke

2014-01-26 
Eclipse Jetty JettyLauncher java.net.SocketException: Unrecognized Windows Sockets error: 10106: cre

Eclipse Jetty JettyLauncher java.net.SocketException: Unrecognized Windows Sockets error: 10106: create
 
  刚开始还好好的,突然间出然这个错误,于启动不了了。
  XP SP2、Eclipse 3.1.2、Jetty-5.1.11RC0、JettyLauncher 1.3.0
  XP SP2、Eclipse 3.2.0、Jetty-5.1.11RC0、JettyLauncher 1.4.1
  都不行。
  谷歌与摆渡后,看到应当与此无关,而是与网络协议有关的问题,但是没有看到方便的解决办法,怪事,难道真的得重装系统?
 
  launching Jetty webapp: /xxx on address: 127.0.0.1:8088 using dir: [F:\JavaProject\xxx]
  10:27:28.640 INFO [main] org.mortbay.log.LogImpl.add(LogImpl.java:109) >16> added org.mortbay.log.OutputStreamLogSink@120a47e
  10:27:28.625 INFO [main] org.mortbay.log.LogImpl.reset(LogImpl.java:228) >11> reset
  10:27:28.640 INFO [main] org.mortbay.log.LogImpl.add(LogImpl.java:109) >11> added org.mortbay.log.OutputStreamLogSink@789144
  org.mortbay.util.MultiException[java.net.SocketException: Unrecognized Windows Sockets error: 10106: create]
  at org.mortbay.http.HttpServer.doStart(HttpServer.java:686)
  at org.mortbay.util.Container.start(Container.java:72)
  at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
  at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
  at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)
  java.net.SocketException: Unrecognized Windows Sockets error: 10106: create
  at java.net.ServerSocket.createImpl(ServerSocket.java:254)
  at java.net.ServerSocket.getImpl(ServerSocket.java:205)
  at java.net.ServerSocket.bind(ServerSocket.java:318)
  at java.net.ServerSocket.<init>(ServerSocket.java:185)
  at org.mortbay.util.ThreadedServer.newServerSocket(ThreadedServer.java:391)
  at org.mortbay.util.ThreadedServer.open(ThreadedServer.java:477)
  at org.mortbay.util.ThreadedServer.start(ThreadedServer.java:503)
  at org.mortbay.http.SocketListener.start(SocketListener.java:204)
  at org.mortbay.http.HttpServer.doStart(HttpServer.java:716)
  at org.mortbay.util.Container.start(Container.java:72)
  at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
  at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
  at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)
  java.net.SocketException: Unrecognized Windows Sockets error: 10106: create
  at java.net.ServerSocket.createImpl(ServerSocket.java:254)
  at java.net.ServerSocket.getImpl(ServerSocket.java:205)
  at java.net.ServerSocket.bind(ServerSocket.java:318)
  at java.net.ServerSocket.<init>(ServerSocket.java:185)
  at org.mortbay.util.ThreadedServer.newServerSocket(ThreadedServer.java:391)
  at org.mortbay.util.ThreadedServer.open(ThreadedServer.java:477)
  at org.mortbay.util.ThreadedServer.start(ThreadedServer.java:503)
  at org.mortbay.http.SocketListener.start(SocketListener.java:204)
  at org.mortbay.http.HttpServer.doStart(HttpServer.java:716)
  at org.mortbay.util.Container.start(Container.java:72)
  at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
  at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
  at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)

------解决方法--------------------------------------------------------
有没有可能是端口被占用?
------解决方法--------------------------------------------------------
netstat 看看端口使用情况,我也怀疑是端口被占用
------解决方法--------------------------------------------------------
1.如果有装vmware或其他虚拟机软件,建议屏蔽掉相关网卡。         

热点排行