// Next scan the JARs in WEB-INF/lib
List jars = getResources("WEB-INF/lib/");
for (Iterator i = jars.iterator(); i.hasNext();)
{
JarArchive jar = new DefaultJarArchive(
getResource((String) i.next()));
if (jar.containsClass(theClassName))
{
return true;
}
}