{"id":193,"date":"2007-06-29T08:58:23","date_gmt":"2007-06-29T14:58:23","guid":{"rendered":"http:\/\/www.ourada.org\/blog\/archives\/193"},"modified":"2007-06-29T08:58:23","modified_gmt":"2007-06-29T14:58:23","slug":"javacomp-exception-in-tomcat-6","status":"publish","type":"post","link":"https:\/\/www.ourada.org\/blog\/archives\/193","title":{"rendered":"java:comp exception in Tomcat 6"},"content":{"rendered":"<p>I don&#8217;t know if this will do anyone any good (please leave a comment if it helps you!), but I want to get myself into the habit of blogging these sort of things for the potential good of other web searchers out there.<\/p>\n<p>We were having the following problem: when starting an web app in Tomcat 6 that uses JNDI to locate a database connection, we got the exception:<br \/>\n<code>javax.naming.NameNotFoundException: Name java:comp is not bound in this Context<\/code><br \/>\nLots of people point out that this could be a problem with there being a JNDI implementation in the web app&#8217;s lib\/, so that the app doesn&#8217;t get the global one defined by Tomcat, and they recommend removing all naming* JARs from lib\/. But, in our case, it was catalina.jar that was causing the problem; it also includes a JNDI implementation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I don&#8217;t know if this will do anyone any good (please leave a comment if it helps you!), but I want to get myself into the habit of blogging these sort of things for the potential good of other web searchers out there. We were having the following problem: when starting an web app in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[51,58,60],"class_list":["post-193","post","type-post","status-publish","format-standard","hentry","category-general","tag-software","tag-tomcat","tag-user-error","author-admin"],"_links":{"self":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/posts\/193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/comments?post=193"}],"version-history":[{"count":0,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/posts\/193\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/media?parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/categories?post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/tags?post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}