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.