I am testing my servlet locally on Tomcat with Netbeans as my IDE. I am trying to connect to Azure Database for MySQL through the servlet after getting the user's email and password. However, when I run the servlet, it stops executing at this line of code
Connection conn = DriverManager.getConnection(url, user, password);
I have obscured the url, user and password in the screenshot, but I am sure that those credentials are correct during test. I have added the JDBC connector to my project's classpath. My database's firewall is also allowed for all ip address (ik, just ignore about the security for now).
What is the problem here?