Is this classloader right? lucene-v4 jar could be stored in a different classloader to lucene-directory jar (in AS7, each would be a different classloader in fact). I think using the classloader associated with the cache or cache manager would be better.