Java.lang.noclassdeffounderror:org/apache/commons/pool/impl/genericobjectpool
question: Log4j:warn No Appenders could to found for logger (org.springframework.context.support.FileSystemXmlApplicationContext ). Log4j:warn Please initialize the log4j system properly. Exception in thread "main" Org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' DataSource ' defined in file [D:/mycomapp/workspace/myspringtran/src/applicationcontext.xml]: Instantiation of Bean Failed Nested exception is Java.lang.noclassdeffounderror:org/apache/commons/pool/impl/genericobjectpool caused By:java.lang.noclassdeffounderror:org/apache/commons/pool/impl/genericobjectpool At Java.lang.Class.getDeclaredConstructors0 (Native method) At Java.lang.Class.privateGetDeclaredConstructors (Unknown Source) At Java.lang.Class.getConstructor0 (Unknown Source) At Java.lang.Class.getDeclaredConstructor (Unknown Source) At Org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate ( SIMPLEINSTANTIATIONSTRATEGY.JAVA:54) At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean ( abstractautowirecapablebeanfactory.java:759) At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance ( abstractautowirecapablebeanfactory.java:724) At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:387) At Org.springframework.beans.factory.support.abstractbeanfactory$1.getobject (abstractbeanfactory.java:251) At Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:156) At Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:248) At Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:160) At Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:287) At Org.springframework.context.support.AbstractApplicationContext.refresh (abstractapplicationcontext.java:352) At Org.springframework.context.support.filesystemxmlapplicationcontext.<init> ( filesystemxmlapplicationcontext.java:93) At Org.springframework.context.support.filesystemxmlapplicationcontext.<init> ( filesystemxmlapplicationcontext.java:77) At Org.springframework.context.support.filesystemxmlapplicationcontext.<init> ( FILESYSTEMXMLAPPLICATIONCONTEXT.JAVA:67) At Com.lusm.hiberate.vo.TransactionTest.main (transactiontest.java:20)
Reason: I can't find caused by:java.lang.noclassdeffounderror:org/apache/commons/pool/impl/genericobjectpool. The basic object pool provided by Apache.
Solve: Here http://commons.apache.org/downloads/download_pool.cgi download package, then, the inside of the Commons-pool-x.jar copy to the MyEclipse referenced Libraries under. |