Java.lang.ClassNotFoundException:org.apache.commons.dbcp.BasicDataSource Workaround
Simply add these three Commons-pool.jar, Commons-dbcp-1.2.2.jar and Commons-collections-3.2.jar packages to Lib to solve them. These three packages in your local tomcat under the LIB, directly buildpath import, but sometimes the guide package does not necessarily work, because the project Lib under the package with Tomcat under the packet repeated, resulting in abnormal errors such as:
Org.apache.jasper.JasperException:java.lang.ClassCastException: Org.apache.catalina.util.DefaultAnnotationProcessor cannot is cast to Org.apache.AnnotationProcessor
This error is reported because Tomcat has a annotationprocessor interface between Catalina.jar and Jasper.jar, so the runtime is wrong.
On Tomcat's confg plus <loader delegate= "true"/> on the line.
Java.lang.ClassNotFoundException:org.apache.commons.dbcp.BasicDataSource Workaround