To get this exception, It must be issue with library files and class path setting.
If you are using Tomcat, check the lib folder and library files in application’s WEB-INF folder.
If lib folder doesn’t exist then create a lib folder under WEB-INF folder and copy the library files.
Visit articles page of the website learningmela.com for more details.