javax.naming.NameNotFoundException

Error: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
Solution :
When I have access  site in browser then catalina.out logs show the above error and the database is not connected , I have tried all of the possibilities but  this issue is sorted  with following solution.
I have moved the mysql-connector-java-*.jar file from my own lib directory to tomcat/common/endorsed/ directory.
For example :
mv  /home/username/public_html/WEB-INF/lib/mysql-connector-java-5.1.7-bin.jar  /usr/local/jakarta/tomcat/common/endorsed/
and restart the tomcat service on the server and the issue has been solved and I am able to access site without any problem.
Done

4 Thoughts to “javax.naming.NameNotFoundException”

  1. Terrific work! This is the type of information that should be shared around the web. Shame on the search engines for not positioning this post higher!

  2. Great information! I’ve been looking for something like this for a while now. Thanks!

  3. Thanks for some quality points there. I am kind of new to online , so I printed this off to put in my file, any better way to go about keeping track of it then printing?

Leave a Comment