January 06, 2005

DBCP and InvocationTargetException

This isn't properly a Linux problem, but in seeking the reason why a DBCP/JOCL test didn't work, and wanted to make another pointer to the solution.
I've been getting an InvocationTargetException while parsing my jocl file, but the error message never contains where the real problem occurs.

1) The commons-pool package uses the commons-collections, but does not document that requirement in any of its documentation.
Other reasons given explain why the error is misleading. But for the moment, make sure that the commons-collections JAR file is in the path as well.

I encountered this running junit from an ant build, trying to get around a LinkageError problem by selectively adding JAR files to the classpath for testing. Turns out my version of ant might have been hosed, too, in some way, but that's another issue. Posted by ronlusk at January 6, 2005 11:17 AM