Org/apache/commons/pool/impl/genericobjectpool

Source: Internet
Author: User
Tags log4j

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.