Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Play framework configuration issue

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my web application that runs using the Play framework, I have a separate config file called d-prod.config and I include this file in the application.conf file as well. When I run my web app, I get the following error:



Here is my simple config file (db-prod.config)



I'm terribly confused as to why this should happen for such a simple scenario where I'm just reading a set of Strings. Any ideas? The Play documentation seems not to explain this!
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This looks terribly strange. I modified my config entries to look like the following to make it work.



However, if I change the entries like below:



It fails with the exception:



Looks to me like anything prefixed with db is going to go through Play framework's check for certain standard keys and if they are not present, it fails!
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic