This seems to be a common problem, but I could not find a working solution. I\'ve looked through dozens of thread and have been working with my teacher. I am trying to conn
Version Mismatch could cause this error. I myself was stuck in this error for days. Please check the version of jdbc connector. Latest connectors require java 1.8. In my case my tomcat version didn't support the connector version i added so please check for that also.
PS : Tomcat - 8.0.32 ; mysql-connector - 5.1.30 with java 1.7 works (Y)