On 7/25/2014 1:06 AM, Yavar Husain wrote: > Have most of experience working on Solr with Tomcat. However I recently > started with Jetty. I am using Solr 4.7.0 on Windows 7. I have configured > solr properly and am able to see the admin UI as well as velocity browse. > Dataimporthandler screen is also getting displayed. However when I do a > full import it fails with the following error: > > INFO - 2014-07-25 12:28:35.177; org.apache.solr.core.SolrCore; > [collection1] webapp=/solr path=/dataimport > params={indent=true&command=status&_=1406271515176&wt=json} status=0 > QTime=0 > ERROR - 2014-07-25 12:28:35.179; org.apache.solr.common.SolrException; > java.io.IOException: Can't find resource > 'C:/solr-4.7.0/example/solr/collection1/conf' in classpath or > 'C:\solr-4.7.0\example\solr\collection1\conf' > at > org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:342) > at > org.apache.solr.handler.dataimport.DataImportHandler.handleRequestBody(DataImportHandler.java:134)
In 4.7.0, line 134 of DataImportHandler.java is concerned with locating the config file for the dataimport handler. In the following excerpt from a solrconfig.xml file included with Solr, the config file is db-data-config.xml. What do you have for this in your solrconfig.xml? <requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"> <lst name="defaults"> <str name="config">db-data-config.xml</str> </lst> </requestHandler> Thanks, Shawn