alibabamama 发表于 2015-8-2 13:05:35

Cannot find class [org.apache.commons.dbcp.BasicDataSource

  Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class for bean with name 'datasource' defined in ServletContext resource ; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
解决方案: 去 findjar.com找到commons-dbcp-1.2.2.jar 放到Lib 目录下
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'datasource' defined in ServletContext resource : Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool
少包:解决同上 org/apache/commons/pool
页: [1]
查看完整版本: Cannot find class [org.apache.commons.dbcp.BasicDataSource