You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Yavar Husain <ya...@gmail.com> on 2014/07/25 09:06:07 UTC

Data Import Handler - resource not found - Jetty - Windows 7

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)

Few Notes:
My solrconfig.xml has dataimport configured and i have used:

  <lib dir="C:/solr-4.7.0/example/solr/collection1/lib"
regex="solr-dataimporthandler-4.7.0.jar" />
  <lib dir="C:/solr-4.7.0/example/solr/collection1/lib"
regex="solr-dataimporthandler-extras-4.7.0.jar" />
  <lib dir="C:/solr-4.7.0/example/solr/collection1/lib"
regex="mysql-connector-java-5.1.18-bin.jar" />

Also my jars are present on those paths.

On my core admin UI I can see correct datadir which is
C:\solr-4.7.0\example\solr\collection1\data\

Any help would be appreciated.

Thanks,
Yavar

   -

Re: Data Import Handler - resource not found - Jetty - Windows 7

Posted by Shawn Heisey <so...@elyograg.org>.
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