File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes naming.NameNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "naming.NameNotFoundException" Watch "naming.NameNotFoundException" New topic


kwame Iwegbue
Ranch Hand

Joined: Sep 02, 2000
Posts: 197
need help with Error:
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

The complete stack trace is

thrown by this code:

web.xml is

server.xml is

Note: the <Context> element has a <ResourceLink> to access such global resources.
[ June 12, 2006: Message edited by: kwame Iwegbue ]

Who dares, wins! (SAS motto)
kwame Iwegbue
Ranch Hand

Joined: Sep 02, 2000
Posts: 197
Works now!!!

After many hrs of research, i've solved this problem. Seems to be a relatively common problem for users of Tomcat 5.5 trying to use java.sql.DataSource manage database a Connection pool.

good information can be found here
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

Thank you so much for posting the solution! I'm going to move this to our Tomcat forum so people struggling with this in the future are more likely to see your post.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: naming.NameNotFoundException
It's not a secret anymore!