On 3/18/2015 11:00 PM, abhishek tiwari wrote:
> my solrconfig :
> 
> <lib dir="../../../example/lib/" regex="mysql-connector-java-.*\.jar" /> <
> lib dir="../../../dist/" regex="solr-dataimporthandler-.*\.jar" />

The way that I always recommend dealing with extra jars:

In your solr home, create a "lib" directory.  Copy all the extra jars
that you need into this directory, including the DIH jar and your jdbc
driver jar.  Remove all <lib> config elements from solrconfig.xml.

In Solr 4.2, you will also need to make sure that your solr.xml has a
sharedLib attribute on the <solr> tag, set to "lib".  On 4.3 and later,
this step is not required ... it will actually cause the jars to NOT work.

See the comment on this issue dated 12/Nov/13:

https://issues.apache.org/jira/browse/SOLR-4852?focusedCommentId=13820197&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13820197

Thanks,
Shawn

Reply via email to