Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dbplugin=disabled
- db {
- default {
- dataSourceClassName=org.postgresql.ds.PGSimpleDataSource
- dataSource {
- user="postgres"
- password="postgres"
- databaseName="timeseries"
- serverName="localhost"
- }
- hikaricp {
- connectionTestQuery = "SELECT 1"
- }
- }
- }
- lazy val root = (project in file(".")).enablePlugins(PlayJava)
- scalaVersion := "2.11.6"
- libraryDependencies ++= Seq(
- javaJdbc
- , cache
- , javaWs
- , "org.postgresql" % "postgresql" % "9.4.1207.jre7"
- )
- [error] - application -
- [info]
- [info] ! @6ookeg34l - Internal server error, for (GET) [/] ->
- [info]
- [info] play.api.UnexpectedException: Unexpected exception[CreationException: Unable to create injector, see the following errors:
- [info]
- [info] 1) Error in custom provider, Configuration error: Configuration error[Cannot connect to database [default]]
- [info] while locating play.api.db.DBApiProvider
- [info] while locating play.api.db.DBApi
- [info] for parameter 0 at play.db.DefaultDBApi.<init>(DefaultDBApi.java:28)
- [info] at play.db.DefaultDBApi.class(DefaultDBApi.java:28)
- [info] while locating play.db.DefaultDBApi
- [info] while locating play.db.DBApi
- [info] for field at play.db.DBModule$NamedDatabaseProvider.dbApi(DBModule.java:61)
- [info] while locating play.db.DBModule$NamedDatabaseProvider
- [info] at com.google.inject.util.Providers$GuicifiedProviderWithDependencies.initialize(Providers.java:149)
- [info] at play.db.DBModule.bindings(DBModule.java:40):
- [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)
- [info] Caused by: Configuration error: Configuration error[Cannot connect to database [default]]
- dataSourceClassName=org.postgresql.ds.PGSimpleDataSource
- dataSource.user=postgres
- dataSource.password=sdfsdfasd
- dataSource.databaseName=timeseries
- dataSource.serverName=localhost
- hikaricp .connectionTestQuery = "SELECT 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement