On Wed, May 6, 2015 at 2:16 PM, Greg Allen <
gal...@redhat.com> wrote:
> I still get the ClassNotFoundException. Why would it not be getting loaded?
Well the fact that you are talking about a ClassNotFoundException,
rather than a NoClassDefFoundError (with a ClassNotFoundException as
its root cause), is a red flag. That implies that something—your
code—is loading a class reflectively rather than statically, and
presumably passing the wrong ClassLoader. Perhaps your library makes
the shoddy assumption that
Thread.currentThread().getContextClassLoader() can be used to load its
own classes (which would *not* be true for code loaded in a Jenkins
plugin).