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








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!
Thanks for the best comments
Great information! I’ve been looking for something like this for a while now. Thanks!
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?
Thank you, I have recently been looking for information about this subject for ages and yours is the greatest I have discovered till now. But, what about the conclusion? Are you sure about the source?
This blog is excellent. I wish I could find more like this.
You have a wonderful blog here! would you like to make some invite posts on my blog?
thanks for Comment and yes sure I have no problem, If you have ready to pay for it.
I like what you guys are up too. Such clever work and exposure! Keep up the good works guys I’ve incorporated you guys to blogroll.
Wow this is a lot more indepth than I thought
whoah this blog is wonderful i love reading your posts. Keep up the great work! You know, many people are searching around for this information, you can aid them greatly.
Thanks for the comment