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 adpablos <ad...@molinodeideas.es> on 2011/05/30 15:28:43 UTC

DataImportHandler

Hi,

i've tryed to install DataImportHandler but i've some problems when run up
solr.


GRAVE: org.apache.solr.common.SolrException: Error Instantiating Request
Handler, 
org.apache.solr.handler.dataimport.DataImportHandler is not a
org.apache.solr.request.SolrRequestHandler

This is the log.

I've 

  <requestHandler name="/dataimport"
class="org.apache.solr.handler.dataimport.DataImportHandler">
    <lst name="defaults">
        <str name="config">db-data-config.xml</str>
    </lst>
  </requestHandler>

in my solrconfig.xml

i'm working ina  java project and in my eclipse project, i can write
something like this: SolrRequestHandler srh = new DataImportHandler(); with
out problem. 

Sorry about my english and thank you in advance.

--
View this message in context: http://lucene.472066.n3.nabble.com/DataImportHandler-tp3001957p3001957.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: DataImportHandler

Posted by adpablos <ad...@molinodeideas.es>.
Yes, actually the problem was this.

i'm working with a maven project and i added the dependency 

<dependency>-->



<!--	</dependency>

in my pom.xml. Maven loaded this jar and.... something must be wrong.

I decided to eliminate this dependency and add the jar in the folder I
pointed at solrconfig.xml file.

When i run solr again.... TACHAAAAN!!  everything went correctly.

--
View this message in context: http://lucene.472066.n3.nabble.com/DataImportHandler-tp3001957p3005055.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: DataImportHandler

Posted by Jeffrey Chang <jc...@gmail.com>.
I faced the same problem before, but that's because some parent classloader has loaded the DataImport class instead of using the SolrResourceLoader's delegated classloader.

How are you starting your Solr? Via Eclipse? If you try starting Solr using cmdline, will you encounter the same issue?



On May 30, 2011, at 9:28 PM, adpablos <ad...@molinodeideas.es> wrote:

> Hi,
> 
> i've tryed to install DataImportHandler but i've some problems when run up
> solr.
> 
> 
> GRAVE: org.apache.solr.common.SolrException: Error Instantiating Request
> Handler, 
> org.apache.solr.handler.dataimport.DataImportHandler is not a
> org.apache.solr.request.SolrRequestHandler
> 
> This is the log.
> 
> I've 
> 
>  <requestHandler name="/dataimport"
> class="org.apache.solr.handler.dataimport.DataImportHandler">
>    <lst name="defaults">
>        <str name="config">db-data-config.xml</str>
>    </lst>
>  </requestHandler>
> 
> in my solrconfig.xml
> 
> i'm working ina  java project and in my eclipse project, i can write
> something like this: SolrRequestHandler srh = new DataImportHandler(); with
> out problem. 
> 
> Sorry about my english and thank you in advance.
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/DataImportHandler-tp3001957p3001957.html
> Sent from the Solr - User mailing list archive at Nabble.com.