Problem With Solutions

Something Different In Linux

Home » Error and solution » javax.naming.NameNotFoundException

javax.naming.NameNotFoundException

Posted by Rishikesh Vispute Categories: Error and solution, Tomcat

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

12 Responses so far.

  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. Thanks for the best comments

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

  4. 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?

  5. 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?

  6. sex says:

    This blog is excellent. I wish I could find more like this.

  7. You have a wonderful blog here! would you like to make some invite posts on my blog?

  8. cupola says:

    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.

  9. Wow this is a lot more indepth than I thought

  10. 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.


Optimized by SEO Ultimate