title: Getting java.net.ConnectException while performing Ant build on my application
body: <p>I am performing Ant build on my application and every time I am getting the java.net.ConnectException: Connection timed out: connect
  I tried the answers for the similar questions but no success. :(
  I am attaching the stack-trace of the Ant Build.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>[assemble-jar] java.net.ConnectException: Connection timed out: connect
  [assemble-jar]  at java.net.PlainSocketImpl.socketConnect(Native Method)
  [assemble-jar]  at java.net.PlainSocketImpl.doConnect(Unknown Source)
  [assemble-jar]  at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
  [assemble-jar]  at java.net.PlainSocketImpl.connect(Unknown Source)
  [assemble-jar]  at java.net.SocksSocketImpl.connect(Unknown Source)
  [assemble-jar]  at java.net.Socket.connect(Unknown Source)
  [assemble-jar]  at java.net.Socket.connect(Unknown Source)
  [assemble-jar]  at sun.net.NetworkClient.doConnect(Unknown Source)
  [assemble-jar]  at sun.net.www.http.HttpClient.openServer(Unknown Source)
  [assemble-jar]  at sun.net.www.http.HttpClient.openServer(Unknown Source)
  [assemble-jar]  at sun.net.www.http.HttpClient.&lt;init&gt;(Unknown Source)
  [assemble-jar]  at sun.net.www.http.HttpClient.New(Unknown Source)
  [assemble-jar]  at sun.net.www.http.HttpClient.New(Unknown Source)
  [assemble-jar]  at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
  [assemble-jar]  at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
  [assemble-jar]  at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
  [assemble-jar]  at atg.xml.XMLFileEntityResolver.resolveLocalEntity(XMLFileEntityResolver.java:372)
  [assemble-jar]  at atg.xml.XMLFileEntityResolver.resolveEntity(XMLFileEntityResolver.java:286)
  [assemble-jar]  at atg.dtds.j2ee.J2EEEntityResolver.resolveEntity(J2EEEntityResolver.java:470)
  [assemble-jar]  at atg.dtds.j2ee.J2EEEntityResolver.resolveEntity(J2EEEntityResolver.java:465)
  [assemble-jar]  at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(Unknown Source)
  [assemble-jar]  at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntityAsPerStax(Unknown Source)
  [assemble-jar]  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source)
  [assemble-jar]  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Source)
  [assemble-jar]  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
  [assemble-jar]  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
  [assemble-jar]  at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
  [assemble-jar]  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
  [assemble-jar]  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
  [assemble-jar]  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
  [assemble-jar]  at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
  [assemble-jar]  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
  [assemble-jar]  at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
  [assemble-jar]  at atg.appassembly.util.MetaInfGeneratorImpl.createUnmarshallerHandler(MetaInfGeneratorImpl.java:568)
  [assemble-jar]  at atg.appassembly.util.MetaInfGeneratorImpl.loadApplicationXm5FromStream(MetaInfGeneratorImpl.java:480)
  [assemble-jar]  at atg.appassembly.EarInfoFactory.getJ2EEModulesForEar(EarInfoFactory.java:261)
  [assemble-jar]  at atg.appassembly.EarInfoFactory.processEARModules(EarInfoFactory.java:235)
  [assemble-jar]  at atg.appassembly.EarInfoFactory.createEarInfo(EarInfoFactory.java:143)
  [assemble-jar]  at atg.appassembly.ApplicationAssembler.getEarInfoFromDynModules(ApplicationAssembler.java:273)
  [assemble-jar]  at atg.appassembly.ant.CreateUnpackedEarTask.execute(CreateUnpackedEarTask.java:476)
  [assemble-jar]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
  [assemble-jar]  at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  [assemble-jar]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)</code></pre>
  </div>
  </div>
  </p>
  
  <p>Kindly help me out from this issue.</p>
  
  <p>Regards</p>