POSTS

Java - javax naming NameNotFoundException DefaultDS not found

Problem:

play javax.naming.NameNotFoundException: DefaultDS not found

Solution:

Make sure you include an jndiName to you database configuration, for example:

    “db” : { “default” : { “driver” : com.mysql.jdbc.Driver }},
    “db” : { “default” : { “url” : “jdbc:mysql://xxx.xxx.xxx.xxx:xxxx/” }},
    “db” : { “default” : { “username” : }},
    “db” : { “default” : { “password” : }}.
    “db” : { “default” : { “jndiName” : DefaultDS }},