So the specific answer is:
Firstly, there is an error in the database URL, it should be db.default.url="jdbc:postgresql://localhost:5432/playdb" as specified by chabeee . This is the only correct format for db.default.url (therefore no jdbc:postgresql://username:pasword:localhost/dbname or similar, as I saw elsewhere).
Secondly, it is more complicated that there is an error in the driver, as Salem pointed out , and the workaround adds db.default.hikaricp.connectionTestQuery = "SELECT 1" to application.conf .
However, this bug has been fixed (well, this workaround is implemented) in versions later than 9.1-903 . The trick after version 9.1-901 postgresql has changed its groupID in repositories and now references org.postgresql . A better solution than a workaround would be to update the dependencies on "org.postgresql" % "postgresql" % "9.4-1206-jdbc4" ( current version , MVNrepository ). Add the appropriate jdbc version to the latest PostgreSQL driver ( 4 for Java 6, 41 for Java 7, 42 for Java 8).
My last application.conf :
db.default.driver="org.postgresql.Driver" db.default.url="jdbc:postgresql://localhost/playdb" #the port is optional db.default.username="luka" db.default.password="test"
And libraryDependencies in build.sbt :
libraryDependencies ++= Seq( jdbc, "org.postgresql" % "postgresql" % "9.4-1206-jdbc42", cache, javaWs )
UPDATE 2017: I just noticed that shortly after writing this answer, they changed the version control scheme and removed the -jdbc [code] snippet, replacing it with .jre6, .jre7 or nothing, which apparently meant for the latest version of Java (I havenβt found anything supporting this statement, but it works). Back in February 2017, they again changed the version scheme and switched from the main version from 9 to 42, making the current version (as of July 17, 2017), denoted by "org.postgresql" % "postgresql" % "42.1.3" (or, respectively, "org.postgresql" % "postgresql" % "42.1.3.jre7" / "org.postgresql" % "postgresql" % "42.1.3.jre6" )