I happen to find the problem. The problem seems to come from the html file that shows DIH function page. I use Maxthon browser, it has a function that can switch between IE mode and non-IE mode (actually the Webkit engine). I happen to switch back to non-IE mode and the error message is gone and everything is ok now! TOO WEIRD!
scott.chu,scott....@udngroup.com 2016/5/24 (週二) ----- Original Message ----- From: kostali hassan To: solr-user ; scott(自己) CC: Date: 2016/5/24 (週二) 16:55 Subject: Re: trying DIH but get 'Sorry, no dataimport-handler defined!' if you have in this path server/solr/configsets/testdih/conf you shoud right this in your line commande: 'bin\solr>solr create -c your_core -d testdih -p 8983 to create a core with an exemple config testdih. 2016-05-24 9:35 GMT+01:00 scott.chu <scott....@udngroup.com>: > > I do following things: > > * I create folder : D:\solr-6.0.0\myconfigsets\testdih. > * Copy D:\portable_sw\solr-6.0.0\example\example-DIH\solr\db\conf to > D:\solr-6.0.0\myconfigsets\testdih. > * Go into D:\solr-6.0.0\myconfigsets\testdih\conf and edit > db-data-config.xml as follows (I am pretty sure mysql environment is ok): > > <dataConfig> > <dataSource type="JdbcDataSource" driver="com.mysql.jdbc.Driver" > url="jdbc:mysql://localhost:3306/test" user="hello" password="hellothere" /> > <document name="testdih"> > <entity name="testdih_data" query="select * from doctest"> > <field column="docid" name="id" /> > <field column="docdate" name="adate" /> > <field column="doctitle" name="atitle" /> > <field column="docbody" name="acontents" /> > </entity> > </document> > </dataConfig> > > * Then I copy mysql-connector-java-5.0.8-bin.jar to > D:\portable_sw\solr-6.0.0\server\solr-webapp\webapp\WEB-INF\lib. > * I check solrconfig.xml and see these relevant lines: > > <lib dir="${solr.install.dir:../../../..}/dist/" > regex="solr-dataimporthandler-.*\.jar" /> > ... > ... > <requestHandler name="/dataimport" class="solr.DataImportHandler"> > <lst name="defaults"> > <str name="config">db-data-config.xml</str> > </lst> > </requestHandler> > > * cd to D:solr-6.0.0, issue 'bin\solr start', it starts ok. > * Issue 'bin\solr create_core -c testdih -d myconfigsets\testdih\conf' to > create a core. It's ok, too. > > * The solr.log has these log messages: > > 2016-05-24 15:59:24,781 INFO (coreLoadExecutor-6-thread-1) [ ] > o.a.s.c.SolrResourceLoader Adding > 'file:/D:/portable_sw/solr-6.0.0/dist/solr-dataimporthandler-6.0.0.jar' to > classloader > 2016-05-24 15:59:24,781 INFO (coreLoadExecutor-6-thread-1) [ ] > o.a.s.c.SolrResourceLoader Adding > 'file:/D:/portable_sw/solr-6.0.0/dist/solr-dataimporthandler-extras-6.0.0.jar' > > to classloader > > * So I think dih jars are loaded ok. > > I go to localhost:893 in browser and select core 'testdih', then click > 'DataImport' item but rightpane shows "Sorry, no dataimport-handler > defined!". > > What do I miss? > > > scott.chu,scott....@udngroup.com > 2016/5/24 (週二) > ----- 未在此訊息中找到病毒。 已透過 AVG 檢查 - www.avg.com 版本: 2015.0.6201 / 病毒庫: 4568/12285 - 發佈日期: 05/23/16