• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat4 cann't find MySQL driver  RSS feed

 
cnranger
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why cann't Tomcat4 find MySQL driver which I put in WEB-INF\classes directory?
my bean words fine as a standalone application(CLASSPATH setting is fine), but when I try to use it in my JSP page, Tomcat just cann't find the Driver class, even thought I put org.git.mm.mysql directory structure under my web applicaiton's WEB-INF\classes directory.
Class.forName("org.gjt.mm.mysql.Driver").newInstance();

Help please!!! I have been working on it for the past 2 days ( without sleep).
 
ernest fakudze
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I obtained and copied the file called 'mm.mysql-2.0.6.jar' to the Tomcat 'lib' directory. Everything that's in that directory gets loaded automatically when you startup the server. To see what I mean, copy the file there and issue the 'startup' command then look at the MSDOS window. It will show it.
Good luck!
[This message has been edited by ernest fakudze (edited September 29, 2001).]
[This message has been edited by ernest fakudze (edited September 29, 2001).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!