Error noclassdeffounderror:org/apache/commons/pool/keyedobjectpoolfactory with connection pooling when configuring JDBC in Java
Exception in thread "main" java.lang.noclassdeffounderror:org/apache/commons/pool/keyedobjectpoolfactory
At Jdbctools.jdbcutils.<clinit> (jdbcutils.java:13)
At JDBCtools.Test.main (test.java:7)
caused by:java.lang.ClassNotFoundException:org.apache.commons.pool.KeyedObjectPoolFactory
At Java.net.URLClassLoader.findClass (urlclassloader.java:381)
At Java.lang.ClassLoader.loadClass (classloader.java:424)
At Sun.misc.launcher$appclassloader.loadclass (launcher.java:331)
At Java.lang.ClassLoader.loadClass (classloader.java:357)
... 2 more
WORKAROUND: Analyze the above error, which is missing the corresponding class file: You need to download and add a jar package called Common-pool.
This article is from the "8231977" blog, please be sure to keep this source http://8241977.blog.51cto.com/8231977/1885333
Noclassdeffounderror: .... Keyedobjectpoolfactory