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 | !ENTRYorg.eclipse.ant.ui41202010-08-3111:39:33.125 |
| 2 | !MESSAGEErrorloggedfromAntUI: |
| 3 | !STACK0 |
| 4 | java.net.SocketTimeoutException:Accepttimedout |
| 5 | atjava.net.PlainSocketImpl.socketAccept(NativeMethod) |
| 6 | atjava.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) |
| 7 | atjava.net.ServerSocket.implAccept(ServerSocket.java:453) |
| 8 | atjava.net.ServerSocket.accept(ServerSocket.java:421) |
| 9 | atorg.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.
本文解决了在 Eclipse 中运行 ant 脚本时出现的 SocketTimeoutException 异常问题,原因是安装新插件导致 ant_home 路径设置被更改。提供了重新配置 Ant Home 路径的方法。
1130

被折叠的 条评论
为什么被折叠?



