Advertisement
Guest User

Untitled

a guest
Jan 21st, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. dbplugin=disabled
  2. db {
  3. default {
  4. dataSourceClassName=org.postgresql.ds.PGSimpleDataSource
  5. dataSource {
  6. user="postgres"
  7. password="postgres"
  8. databaseName="timeseries"
  9. serverName="localhost"
  10. }
  11. hikaricp {
  12. connectionTestQuery = "SELECT 1"
  13. }
  14. }
  15. }
  16.  
  17. lazy val root = (project in file(".")).enablePlugins(PlayJava)
  18.  
  19. scalaVersion := "2.11.6"
  20.  
  21. libraryDependencies ++= Seq(
  22. javaJdbc
  23. , cache
  24. , javaWs
  25. , "org.postgresql" % "postgresql" % "9.4.1207.jre7"
  26. )
  27.  
  28. [error] - application -
  29. [info]
  30. [info] ! @6ookeg34l - Internal server error, for (GET) [/] ->
  31. [info]
  32. [info] play.api.UnexpectedException: Unexpected exception[CreationException: Unable to create injector, see the following errors:
  33. [info]
  34. [info] 1) Error in custom provider, Configuration error: Configuration error[Cannot connect to database [default]]
  35. [info] while locating play.api.db.DBApiProvider
  36. [info] while locating play.api.db.DBApi
  37. [info] for parameter 0 at play.db.DefaultDBApi.<init>(DefaultDBApi.java:28)
  38. [info] at play.db.DefaultDBApi.class(DefaultDBApi.java:28)
  39. [info] while locating play.db.DefaultDBApi
  40. [info] while locating play.db.DBApi
  41. [info] for field at play.db.DBModule$NamedDatabaseProvider.dbApi(DBModule.java:61)
  42. [info] while locating play.db.DBModule$NamedDatabaseProvider
  43. [info] at com.google.inject.util.Providers$GuicifiedProviderWithDependencies.initialize(Providers.java:149)
  44. [info] at play.db.DBModule.bindings(DBModule.java:40):
  45. [info] Binding(interface play.db.Database qualified with QualifierInstance(@play.db.NamedDatabase(value=default)) to ProviderTarget(play.db.DBModule$NamedDatabaseProvider@3782a5cb)) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1)
  46. [info] Caused by: Configuration error: Configuration error[Cannot connect to database [default]]
  47.  
  48. dataSourceClassName=org.postgresql.ds.PGSimpleDataSource
  49. dataSource.user=postgres
  50. dataSource.password=sdfsdfasd
  51. dataSource.databaseName=timeseries
  52. dataSource.serverName=localhost
  53. hikaricp .connectionTestQuery = "SELECT 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement