• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

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!!
Kelvin
-- 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)
 
There is no "i" in denial. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic