SOLR dataimport 404 Error

I m facing Problem with Dataimport in Solr. if i call this Link

http://localhost:8983/solr/dataimport?command=full-import&clean=false

showing Error

HTTP ERROR 404

Problem accessing /solr/dataimport. Reason:

NOT_FOUND

I have follow Same as per Solr suggestion with this link

http://wiki.apache.org/solr/DataImportHandler

My Configuration Looks like:-

1. in solrconfig.xml

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

2. in data-config.xml (its in same folder of solrconfig.xml)

< dataConfig>
  < dataSource type="JdbcDataSource"
        driver="com.microsoft.sqlserver.jdbc.SQLServerDriver"
        url="jdbc:127.0.0.1;databaseName=testsolr"
        user="testsolr"
        password="12345678"/>
  < document name="Product">
    < entity name="Item_ID" query="select Item_ID from item">      
     < /entity>
  < /document>
< /dataConfig>

3. in Lib folder (donwloaded the Microsoft JDBC SQL Connector)

I have putted "sqljdbc4.jar" file in Lib folder

after that i started the solr but still i m getting Same error.

Any help will be greatly appreciated.

Thanks a lot.

11
задан Ashutosh 16 May 2011 в 13:27
поделиться