Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

naming.NameNotFoundException

 
kwame Iwegbue
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
kwame Iwegbue
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Posts: 34839
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kwame,
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic