How to get rid of "Configuration not found for database" warning

338 views
Skip to first unread message

JanPaul Bergeson

unread,
Aug 2, 2017, 8:38:01 PM8/2/17
to Play Framework
Hi,

I recently upgraded from Play 2.5 to 2.6.2, and now when I run my tests I get the following "warn" log once per every test I run (so, dozens of times when I run all the tests in my project):

[warn] application - Configuration not found for database: No configuration setting found for key 'db'

I'm not using Play's built-in DB stuff, and previously I didn't have to include anything about the db. This is what my conf/application.conf looks like:

play.http.secret.key="<my secret>"
play.i18n.langs=["en"]
play.http.parser.maxMemoryBuffer=5M
play.application.loader = "CustomConfigLoader"
play.filters.hosts.allowed = ["fakeHost"]

I think I found the lines that are causing this error: line 44 in this file. But it's not apparent from the code how to set my config to "don't use db at all." How can I get rid of this warning?

Any help/suggestions appreciated!

Greg Methvin

unread,
Aug 3, 2017, 3:07:51 AM8/3/17
to play-framework
That module is only loaded if you've added "jdbc" to your dependencies. If you're not using Play's built-in JDBC support you should probably remove that dependency.

--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/88717b5c-db01-4509-9774-856f3b992a6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Greg Methvin
Tech Lead - Play Framework

JanPaul Bergeson

unread,
Aug 3, 2017, 12:06:51 PM8/3/17
to Play Framework
Great--that fixed it! Thank you.


On Thursday, August 3, 2017 at 1:07:51 AM UTC-6, Greg Methvin wrote:
That module is only loaded if you've added "jdbc" to your dependencies. If you're not using Play's built-in JDBC support you should probably remove that dependency.
On Wed, Aug 2, 2017 at 12:23 PM, JanPaul Bergeson <janp...@qualtrics.com> wrote:
Hi,

I recently upgraded from Play 2.5 to 2.6.2, and now when I run my tests I get the following "warn" log once per every test I run (so, dozens of times when I run all the tests in my project):

[warn] application - Configuration not found for database: No configuration setting found for key 'db'

I'm not using Play's built-in DB stuff, and previously I didn't have to include anything about the db. This is what my conf/application.conf looks like:

play.http.secret.key="<my secret>"
play.i18n.langs=["en"]
play.http.parser.maxMemoryBuffer=5M
play.application.loader = "CustomConfigLoader"
play.filters.hosts.allowed = ["fakeHost"]

I think I found the lines that are causing this error: line 44 in this file. But it's not apparent from the code how to set my config to "don't use db at all." How can I get rid of this warning?

Any help/suggestions appreciated!

--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages