Solution
You need to get the commons-pool
library (JAR) on a classpath.
The fact is indicated as commons-pool
being a dependency of commons-dbcp
in project's dependecies list
Explanation
Basically the NoClassDefFoundError
means the Java execution turned out to require a specific class which is not on classpath. This is because classes needs other classes (typically indicated in import
s). In your case (at least) one of the classes from commons-dbcp
declares a dependency to org/apache/commons/pool/KeyedObjectPoolFactory
.
The name of the class is given using /
as separators. If that's a common name (not your own class), you may try to find where to get it from by just typing the full name (e.g. org/apache/commons/pool/KeyedObjectPoolFactory
) in Google.