play framework 2.0 error : Connection timed out

By | November 15, 2013

Problem:
When trying to launch the play framework you get errors about connection timed out trying to retrieve “ivy.xml”

D:\frameworks\play\play-2.0\todolist>play
[info] Loading project definition from D:\frameworks\play\play-2.0\todolist\project
[error] Server access Error: Connection timed out: connect url=http://repo.typesafe.com/typesafe/ivy-releases/org.hibernate/hibernate-validator/4.2.0.Final/ivys/ivy.xml
[error] Server access Error: Connection timed out: connect url=http://repo.typesafe.com/typesafe/ivy-releases/javax.validation/validation-api/1.0.0.GA/ivys/ivy.xml
[error] Server access Error: Connection timed out: connect url=http://repo.typesafe.com/typesafe/ivy-releases/org.springframework/spring-context/3.0.7.RELEASE/ivys/ivy.xml
[error] Server access Error: Connection timed out: connect url=http://repo.typesafe.com/typesafe/ivy-releases/org.springframework/spring-core/3.0.7.RELEASE/ivys/ivy.xml
...

Solution

  1. Ensure your firewall isn’t blocking the requests
  2. You’re certainly behind a proxy and you need to configure it

Modify the last line of the build.bat file, adding those options to the java command.
Modifying the variables :MyProxyAccount,MyProxyPwd,MyProxyIp,MyProxyPort to suit your needs

-Dhttp.proxyUser=<MyProxyAccount>
-Dhttp.proxyPassword=<MyProxyPwd>
-Dhttp.proxyHost=<MyProxyIp>
-Dhttp.proxyPort=<MyProxyPort>

Leave a Reply

Your email address will not be published. Required fields are marked *