0

I use an external JDBC Maven project in servlet web app as dependency. It works independently, but when I use service classes in servlet class, I get a notification like this:

No suitable driver found for jdbc:mysql://localhost:3306/dbname

enter image description here

How can I solve it?

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
  • If you can connect to that MySql host from the host on which the webapp is running in normal circumstances with the same credentials, the chance is that you don't have the driver jar in WEB-INF/lib – g00se Apr 12 '22 at 10:17
  • i got it done now, it is due to class.forName required when use it inner together – Uzeyir Husseyn Apr 15 '22 at 14:44

0 Answers0