• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
  • Carey Brown
  • salvin francis
  • Piet Souris

Cannot using Tomcat4.1 connect mysql/sqlserver with JNDI DataSource

Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
javax.naming.NameNotFoundException: Name MySQLDB is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at org.apache.jsp.dbtest_jsp._jspService(dbtest_jsp.java:57)
my server.xml as followin
I try to connect mysql and sqlserver2k with JNDI DataSource, alway alert me "Name MySQLDB is not bound in this Context". Anyone ever succeed done with this situation? Any reply will be highly appreciated!!
-- edited by MC to use code tags
[ March 22, 2003: Message edited by: Mike Curwen ]
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you followed the steps outlined in Tomcat's docs?

JNDI Resourced HOW-TO

Context Configuration

Some of the things in your server.xml look achingly familiar. I've gone through some of my server.xml's here at home, but can't find validationQuery in any of them. So it must have been at work (for a company I don't work for anymore). But I'm sure this can be made to work. I *do* recall that there were quite a few gotchas. eg: putting your driver classes where the Tomcat internal classes AND your webapp can see them (that would be common/lib)
That's my roommate. He's kinda weird, but he always pays his half of the rent. And he gave me this tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic