I've got a strange problem.
- I created a web application on Eclipse Luna;
- Servlet container Tomcat 7 or tomcat 8 (the problem is the same);
- jdbc connector (last version);
With a NON web application, I do a normally connection to my database. When i try the same connection on the Servlet in a web app, it doesn't work, the error is:
java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/webtech
I put the jar library in the lib folder into web-inf folder, I put the jar into the apache-tomcat lib folder, I put the jar into the build path folder, I try to do the "class for name" method, but nothing works for me.
The servet is a simple "hello world" servlet just to test the connection.