Hi Max,
Why not implement org.apache.lucene.analysis.util.ResourceLoaderAware? Existing implementation all load/read text files. Ahmet On Wednesday, March 30, 2016 12:14 AM, Max Bridgewater <max.bridgewa...@gmail.com> wrote: HI, I am facing the exact issue described here: http://stackoverflow.com/questions/25623797/solr-plugin-classloader. Basically I'm writing a solr plugin by extending SearchComponent class. My new class is part of a.jar archive. Also my class depends on a jar b.jar. I placed both jars in my own folder and declared in it solrconfig.xml with: <lib dir="/home/bridge/Workspaces/search-webapp/target/WEB-INF/lib/" regex=".*\.jar" /> I also declared my new component in solrconfig.xml. The component is invoked correctly up to a point where a class ClassFromB from b.jar attempts to load a classpath resource personal-words.txt from classpath. The piece of code in class ClassFromB looks like this: Thread.currentThread().getContextClassLoader().getResources("personal-words.txt") Unfortunately, this returns an empty list. Any recommendation? Thanks, Max.