On 2/11/2015 6:20 AM, sumitj25 wrote: > I have compiled analytics component using 'ant clean dist' in > contrib/analytics/, which puts the jar in > dist/solr-analytics-5.0.0-SNAPSHOT.jar. I have also copied this jar to > server/solr-we solr.log > <http://lucene.472066.n3.nabble.com/file/n4185683/solr.log> > bapp/webapp/WEB-INF/lib/solr-analytics-5.0.0-SNAPSHOT.jar. But I am not > getting anything in the logs as well as the response. Can the startup logs > tell if the component is loaded? > > solr.log <http://lucene.472066.n3.nabble.com/file/n4185683/solr.log>
Yes, if the jar is being loaded, you will usually see a log entry if the log if your detail is at least INFO. An excerpt from my log: INFO - 2015-02-06 16:09:00.685; org.apache.solr.core.SolrResourceLoader; using system property solr.solr.home: /index/solr4 INFO - 2015-02-06 16:09:00.686; org.apache.solr.core.SolrResourceLoader; new SolrResourceLoader for directory: '/index/solr4/' INFO - 2015-02-06 16:09:00.687; org.apache.solr.core.SolrResourceLoader; Adding 'file:/index/solr4/lib/solrupdate.jar' to classloader INFO - 2015-02-06 16:09:00.687; org.apache.solr.core.SolrResourceLoader; Adding 'file:/index/solr4/lib/mysql-connector-java-5.1.33-bin.jar' to classloader INFO - 2015-02-06 16:09:00.687; org.apache.solr.core.SolrResourceLoader; Adding 'file:/index/solr4/lib/icu4j-53.1.jar' to classloader INFO - 2015-02-06 16:09:00.688; org.apache.solr.core.SolrResourceLoader; Adding 'file:/index/solr4/lib/pixolutionForApacheSolr4.9.0_v1.6.2.jar' to classloader INFO - 2015-02-06 16:09:00.688; org.apache.solr.core.SolrResourceLoader; Adding 'file:/index/solr4/lib/lucene-analyzers-icu-4.9.1.jar' to classloader INFO - 2015-02-06 16:09:00.688; org.apache.solr.core.SolrResourceLoader; Adding 'file:/index/solr4/lib/solr-dataimporthandler-4.9.1.jar' to classloader INFO - 2015-02-06 16:09:00.689; org.apache.solr.core.SolrResourceLoader; Adding 'file:/index/solr4/lib/CJKFoldingFilter.jar' to classloader By far the easiest way to handle extra jars in Solr is to create a "lib" directory inside your solr home and put all extra jars for Solr there. No <lib> directives are needed in solrconfig.xml, and in 4.3 and later, that directory will be automatically searched with zero config. The jars will only be loaded once and will be available to all cores. If you use <lib> directives, the jars will be loaded again for every core, even if they have already been loaded. It's not a good idea in most cases to mess with WEB-INF, unless you are unpacking the war, adding jars, and then repacking it. If you use this method, then you will not see a loading message for those jars. Thanks, Shawn