• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

unable to load Mysql DB

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have programs like jsp and beans in JSWDK-1.0.1.and they connect to MySQL. They are working well.
But, after installing the latest version of Tomcat, I run the same program.Error messages are shown.
" Unable to load MySQL DB driver
java.lang.ClassNotFoundException......"
I have tried some simple JSP and beans without connecting to the database. They are working.
Any configuation I am missing ?
Thanks
 
Sophia Choi
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have found the answer.
The Tomcat can't refer the mysql.jar under the directory of jdk/jre/mysql/mysql.jar.
I have copy mysql.jar to tomcat4.1\common\lib\mysql.jar.
After doing that, my program can work.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic