Friday, June 26, 2015

javax.naming.NameNotFoundException after configuring the JDBC pools

ERROR:    [Date & Time] 0 FATAL DataSourcePool initialize Can't create a new connection for Nkdi1r_POOL on java:comp/env/jdbc/Nkdi1r exception: javax.naming.NameNotFoundException: Name Nkdi1r is not bound in this Context ^?java.lang.Throwable^?

Solution: This error will be seen when the datasource value defined in the pools.xml property doesn't match with the Resource details in server.xml

                <datasource>                       
                        <prod value="java:comp/env/jdbc/Nkdilr" />   ---pools.xml---
                </datasource>

Hence check the Nkdilr is defined correctly in both pools.xml and the server.xml, This is case sensitive.

pools.xml path: /jvm/webapps/appname/WEB-INF/classes
server.xml path: /jvm/conf/server.xml

0 comments:

Post a Comment