Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mysql connectivity problem

 
vinuharan haran
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to query mysql server through servlet.I get an exception.
Exception:com.mysql.jdbc.Driver
I use tomcat.
Here is the Connection part of jdbc code...

Here is the portion of servlet code...


I'm confused...
please help me out...
Thanks,
vinu.
[ July 17, 2006: Message edited by: vinuharan haran ]
 
Paul Clapham
Sheriff
Pie
Posts: 20955
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't get that output from the code you posted. But let's suppose that your real code doesn't have anything commented out. You should change it to something that tells you the actual exception, like this:My prediction is that the full error reporting will tell you that a ClassNotFoundException is being thrown. If that is the case, then make sure that the jar file containing the MySQL driver is in your classpath.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic