spring2.0的问题
为什么我用Eclipse5.5加入spring2.0和hibernate测试一个小程序时,抱这样的错误:
Exceptioninthread"main"org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'baseSource'definedinclasspathresource[applicationContext.xml]:Instantiationofbeanfailed;nestedexceptionisjava.lang.NoClassDefFoundError:org/apache/commons/pool/impl/GenericObjectPool
Causedby:java.lang.NoClassDefFoundError:org/apache/commons/pool/impl/GenericObjectPool
atjava.lang.Class.getDeclaredConstructors0(NativeMethod)
atjava.lang.Class.privateGetDeclaredConstructors(UnknownSource)
atjava.lang.Class.getConstructor0(UnknownSource)
atjava.lang.Class.getDeclaredConstructor(UnknownSource)~~~~~
但是我把有关用spring1.2写程序用导的有关(commons-dbcp),等包导进来来就没有问题了,是什么原因,那位高手能帮助一下。