solution:
把mysql-connector-java-5.1.7-bin.jar拷贝到tomcat下lib目录就可以了