The DIH is no longer supplied embedded in the Solr war file. You need to get it on the classpath somehow. You could add another <lib... statement to solrconfig.xml to resolve this.
~ David Smiley Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/ On Feb 23, 2011, at 4:11 PM, Alexandre Rocco wrote: > Hi guys, > > I'm having some issues when trying to use the DataImportHandler on Solr 4.0. > > I've downloaded the latest nightly build of Solr 4.0 and configured normally > (on the example folder) solrconfig.xml file like this: > > <requestHandler name="/dataimport" > class="org.apache.solr.handler.dataimport.DataImportHandler"> > <lst name="defaults"> > <str name="config">data-config.xml</str> > </lst> > </requestHandler> > > At this point I noticed that the DIH jar was not being loaded correctly > causing exceptions like: > Error loading class 'org.apache.solr.handler.dataimport.DataImportHandler' > and > java.lang.ClassNotFoundException: > org.apache.solr.handler.dataimport.DataImportHandler > > Do I need to build to get DIH running on Solr 4.0? > > Thanks! > Alexandre