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

Hibernate - HibernateException: createQuery is not valid without active transaction