I found the following in the build.xml file: <invoke-javadoc destdir="${build.javadoc}"> <sources> <packageset dir="${src}/common" /> <packageset dir="${src}/solrj" /> <packageset dir="${src}/java" /> <packageset dir="${src}/webapp/src" /> <packageset dir="contrib/dataimporthandler/src/main/java" /> <packageset dir="contrib/clustering/src/main/java" /> <packageset dir="contrib/extraction/src/main/java" /> <packageset dir="contrib/uima/src/main/java" /> <packageset dir="contrib/analysis-extras/src/java" /> <group title="Core" packages="org.apache.*" /> <group title="Common" packages="org.apache.solr.common.*" /> <group title="SolrJ" packages="org.apache.solr.client.solrj*" /> <group title="contrib: DataImportHandler" packages="org.apache.solr.handler.dataimport*" /> <group title="contrib: Clustering" packages="org.apache.solr.handler.clustering*" /> <group title="contrib: Solr Cell" packages="org.apache.solr.handler.extraction*" /> <group title="contrib: Solr UIMA" packages="org.apache.solr.uima*" /> </sources> </invoke-javadoc>
It looks like the dataimport handler path is correct in there so I don't understand why it's not being compile. I ran ant example again today but I'm still getting the same error. Thanks, Brian Lamb On Tue, Mar 22, 2011 at 11:28 AM, Brian Lamb <brian.l...@journalexperts.com>wrote: > Thanks everyone for the advice. I checked out a recent version from SVN and > ran: > > ant clean example > > This worked just fine. However when I went to start the solr server, I get > this error message: > > SEVERE: org.apache.solr.common.SolrException: Error loading class > 'org.apache.solr.handler.dataimport.DataImportHandler' > > It looks like those files are there: > > contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/ > > But for some reason, they aren't able to be found. Where would I update > this setting and what would I update it to? > > Thanks, > > Brian Lamb > > On Mon, Mar 21, 2011 at 10:15 AM, Erick Erickson > <erickerick...@gmail.com>wrote: > >> OK, I think you're jumping ahead and trying to do >> too many things at once. >> >> What did you download? Source? The distro? The error >> you posted usually happens for me when I haven't >> compiled the "example" target from source. So I'd guess >> you don't have the proper targets built. This assumes you >> downloaded the source via SVN. >> >> If you downloaded a distro, I'd start by NOT copying anything >> anywhere, just go to the example code and start Solr. Make >> sure you have what you think you have. >> >> I've seen "interesting" things get cured by removing the entire >> directory where your servlet container unpacks war files, but >> that's usually in development environments. >> >> When I get in these situations, I usually find it's best to back >> up, do one thing at a time and verify that I get the expected >> results at each step. It's tedious, but.... >> >> Best >> Erick >> >> >> On Fri, Mar 18, 2011 at 4:18 PM, Ahmet Arslan <iori...@yahoo.com> wrote: >> >> downloaded a recent version and >> >> > > there were the following files/folders: >> >> > > >> >> > > build.xml >> >> > > dev-tools >> >> > > LICENSE.txt >> >> > > lucene >> >> > > NOTICE.txt >> >> > > README.txt >> >> > > solr >> >> > > >> >> > > So I did cp -r solr/* /path/to/solr/stuff/ and >> >> started solr. I didn't get >> >> > > any error message but I only got the following >> >> messages: >> > >> > How do you start solr? using java -jar start.jar? Did you run 'ant clean >> example' in the solr folder? >> > >> > >> > >> > >> > >