Click here to Skip to main content
15,887,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
0


I am implementing playmorphia module 2.7 from this link https://github.com/morellik/play-morphia

I am getting below error

com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'local'
at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:156)
at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:174)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:188)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:193)
at com.typesafe.config.impl.SimpleConfig.getString(SimpleConfig.java:250)
at controllers.mongoConfiguration.MyMongoClientFactory.getDBName(MyMongoClientFactory.java:27)
I have local mongodb instance where this local database is present but from java app it gives this error. Am i missing anything here? thanks.


What I have tried:

I tried Morphia and Jongo drivers. For both I get the above error message. Anything on database side I have to do?
Posted
Comments
Richard MacCutchan 16-Apr-19 4:32am    
Look at the error message: something is missing from your configuration settings. Check the documentation to see what is required.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900