Struts1.2.x项目数据源配置在tomcat启动时出错解决方法
java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
......
JNDI Datasource HOW-TO
DBCP uses the Jakarta-Commons Database Connection Pool. It relies on number of Jakarta-Commons components:These libraries are located in a single JAR at
- Jakarta-Commons DBCP
- Jakarta-Commons Collections
- Jakarta-Commons Pool
$CATALINA_HOME/lib/tomcat-dbcp.jar. However, only the classes needed for connection pooling have been included, and the packages have been renamed to avoid interfering with applications.
java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool
at java.lang.Class.getDeclaredConstructors0(Native Method)
......
附件:http://down.51cto.com/data/2349038
本文转自 Icansoft 51CTO博客,原文链接:
http://blog.51cto.com/android/56117