Class not found exception "com.mysql.jdbc.Driver" on local deployment to tomcat
Answered
through my application I want to add the username and password to database when a user registers and clicks on "sign up" through "servlet2.java" but on local tomcat deployment instead of adding data to database "class not found exception is thrown" ,I have already added mysql.jar to lib but still no benefit. Here is the downloadable link to my project https://drive.google.com/open?id=1CPSzzJwf5zwvvzcsL2zrQi1KSGD_t0Uv . If anybody can please correct the issue.
Please sign in to leave a comment.
Answered here https://stackoverflow.com/a/56253512/2000323
I have added all the 4 war files to tomcat /lib but and marked the scope as provided and tried by both marking and unmarking the export option but still facing the issue,i have added the stack trace as well. I have also tried making by changing the scope to compile and tried it by both marking and unmarking the export option as well. But still the issue is not resolved. And I have added the stack trace as well in stack overflow.
Do you have this library jar file in /WEB-INF/lib/ folder in the artifact that you deploy?
Also check it with the 1.8 JDK set as a project JDK.