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/<database_name>" }},
    "db" : { "default" : { "username" : <username> }},
    "db" : { "default" : { "password" : <password> }}.
    "db" : { "default" : { "jndiName" : DefaultDS }},

Comments

Popular posts from this blog

Oracle - duplicate fields in RECORD,TABLE or argument list are not permitted

Oracle - ORA-29282: invalid file ID, ORA-06512: at "SYS.UTL_FILE"