您的位置:首页 > 编程语言 > Java开发

Ant Plugin: java.net.SocketTimeoutException: Accept timed out Solution

2010-08-31 11:51 836 查看
Issue:

When you are running build.xml ant script in Eclipse, you may find it doesn’t work. It seems like ant script is not running at all. And you can find following exception from your workspace/.metadata.

1 !ENTRY org.eclipse.ant.ui 4 120 2010-08-31 11:39:33.125
2 !MESSAGE Error logged from Ant UI:
3 !STACK 0
4 java.net.SocketTimeoutException: Accept timed out
5 at java.net.PlainSocketImpl.socketAccept(Native Method)
6 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
7 at java.net.ServerSocket.implAccept(ServerSocket.java:453)
8 at java.net.ServerSocket.accept(ServerSocket.java:421)
9 at org.eclipse.ant.internal.ui.launchConfigurations.RemoteAntBuildListener$ServerConnection.run(RemoteAntBuildListener.java:95)
Reason:

The reason is that may be you installed a new plugin (e.g. Axis2_service_Archiver_1.3.0) to your eclipse. But this plugin changed your ant_home path setting. So, eclipse cannot find correct ant.bat to execute ant script.

Solution:

From Eclipse ->window->preferences->Ant->Runtime->Classpath,click “Ant home”

redefine Ant Home path.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: