I have a NetBeans web project on Tomcat 8.0.15, MySql (with Jconnector), I tested(without login) servlet for username/password check against the DB and it works .. Copied mysql-connector-java-5.1.23-bin.jar into C:\Program Files\Apache .