I am trying to insert a row in a MySql table in a web based project.The code is working fine in a Java project (row is being inserted) but when i ‘am trying it in a web based project its not finding the JDBC driver and giving error :
” java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver”
I am adding the driver in project by adding external jar file in Web-inf/lib folder but its showing the driver in project’s root directory,not in web-inf/lib directory.Whats the exact problem,driver is not copied in right directory or something else?