ClassNotFoundException in servlet

I'm trying to connect to a database using driver com.mysql.jdbc.Driver, but I get a ClassNotFoundException when accessing the servlet. I wrote a program and using the same driver I could access the DB. Why can't the servlet find the driver?I'm using Tomcat 6.0
[277 byte] By [SanchoPereza] at [2007-11-27 0:09:00]
# 1
you know that you are on a j2me forum and not a jdbc forum... http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html
suparenoa at 2007-7-11 16:08:41 > top of Java-index,Java Mobility Forums,Java ME Technologies...