This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 32815

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!