Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mysql-jdbc driver

 
Chandra MR
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
i am using mysql-connecor-3.0.8-stable driver for jdbc in my web application using jsp on linux. But, now, i'm getting jdbc:ClassNotFoundException com.mysql.jdbc.Driver. but the Driver class is in the same path. can anyone help me?
thanks
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are accessing the Driver directly from you JSP page or a Servlet, the driver needs to be in the /WEB-INF/lib/ folder. If you are trying to use connection pooling, you will need to put the driver where the Application Server specifies it to go. For example, Tomcat will require it in the $TOMCAT_HOME/commons/lib/ folder.
So which is it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic