: <lib dir="../../dist/" regex="apache-solr-dataimporthandler-\d.*\.jar" />
: 
: And I have all the dist jar files in dist folder. I restarted the tomcat,
: why I am still getting this error:
: 
: java.lang.ClassNotFoundException:
: org.apache.solr.handler.dataimport.DataImportHandler

is the path "../../dist/" correct relative to the instanceDir for your 
solr core?

you should see log messages when the SolrCore is loaded listing every 
plugin jar being added, what do those look like?

For example, when running the DIH example from 4.0...

hossman@frisbee:~/lucene/branch_4_0/solr/example$ java 
-Dsolr.solr.home=example-DIH/solr/ -jar start.jar 
...
Oct 17, 2012 6:05:42 PM org.apache.solr.core.CoreContainer create
INFO: Creating SolrCore 'db' using instanceDir: example-DIH/solr/db
Oct 17, 2012 6:05:42 PM org.apache.solr.core.SolrResourceLoader <init>
INFO: new SolrResourceLoader for directory: 'example-DIH/solr/db/'
Oct 17, 2012 6:05:42 PM org.apache.solr.core.SolrResourceLoader 
replaceClassLoader
INFO: Adding 
'file:/home/hossman/lucene/branch_4_0/solr/example/example-DIH/solr/db/lib/.svn/'
 to classloader
Oct 17, 2012 6:05:42 PM org.apache.solr.core.SolrResourceLoader 
replaceClassLoader
INFO: Adding 
'file:/home/hossman/lucene/branch_4_0/solr/example/example-DIH/solr/db/lib/hsqldb-1.8.0.10.jar'
 to classloader
Oct 17, 2012 6:05:42 PM org.apache.solr.core.SolrConfig initLibs
INFO: Adding specified lib dirs to ClassLoader
Oct 17, 2012 6:05:42 PM org.apache.solr.core.SolrResourceLoader 
replaceClassLoader
INFO: Adding 
'file:/home/hossman/lucene/branch_4_0/solr/dist/apache-solr-dataimporthandler-extras-4.0-SNAPSHOT.jar'
 to classloader
Oct 17, 2012 6:05:42 PM org.apache.solr.core.SolrResourceLoader 
replaceClassLoader
INFO: Adding 
'file:/home/hossman/lucene/branch_4_0/solr/dist/apache-solr-dataimporthandler-4.0-SNAPSHOT.jar'
 to classloader
Oct 17, 2012 6:05:42 PM org.apache.solr.core.SolrConfig <init>
INFO: Using Lucene MatchVersion: LUCENE_40









-Hoss

Reply via email to