When Solr first starts, it'll print the exact path it uses to load jar files, insure your jar is on one of those paths. Look for a line like: "Added ## libs to classloader from paths.....".
Adding "-v" to the start up will show you much more detailed information. You can also add the <lib...../> directive to your solrconfig.xml to place the jar in a specific directory. I usually start with a hard-coded path just to get it to load the firs time, then do it properly with relative paths. Best, Erick On Sat, Feb 17, 2018 at 1:51 AM, ~$alpha` <lavesh.ra...@gmail.com> wrote: > >> I have created a custom query parser for Solr > public class CustomQParserPlugin extends QParserPlugin { > } > >>Then I have imported the jar into Solr lib directory. i.e placed in > server/lib directory > >>I restarted the Solr > >> getting below error > SolrException: Error Instantiating queryParser, > com.site.s.CustomQParserPlugin failed to instantiate > org.apache.solr.search.QParserPlugin > > I am getting the above error which means I am able to include my jar but no > idea why I am getting error > > > > > -- > Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html