Something Different In Linux

Home » Error and solution » 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.


4 Responses so far.

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

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

  3. Thanks for the best comments

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

Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...