lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Koji Sekiguchi <k...@r.email.ne.jp>
Subject Re: solr 3.1 - TikaEntityProcessor
Date Sat, 30 Apr 2011 23:35:57 GMT
(11/05/01 3:45), firdous_kind86 wrote:
> Hi all,
> i have solr 3.1 with DIH running fine, but i m unable to use
> tikaentityprocessor, i tried with replacing tika-parsers and tika-core jars
> 0.9 (in contrib/extraction/lib) but still no success, may be i m missing
> something, could anyone define the exact steps to start using with
> tikaentityprocessor class, what i want to do is simply this:
>
>
>
>
>
>
>
>
>
>
>
>
>
> everytime i have to see this:
>
> SEVERE: Full Import
> failed:org.apache.solr.handler.dataimport.DataImportHandlerE
> xception: Unable to load EntityProcessor implementation for entity:tika
> Processi
> ng Document # 1
>          at
> org.apache.solr.handler.dataimport.DataImportHandlerException.wrapAnd
> Throw(DataImportHandlerException.java:72)
>          at
> org.apache.solr.handler.dataimport.DocBuilder.getEntityProcessor(DocB
> uilder.java:817)
>          at
> org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilde
> r.java:547)
>          at
> org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilde
> r.java:617)
>          at
> org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.j
> ava:267)
>          at
> org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java
> :186)
>          at
> org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImpo
> rter.java:353)
>          at
> org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.j
> ava:411)
>          at
> org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.ja
> va:392)
> Caused by: java.lang.ClassNotFoundException: Unable to load
> TikaEntityProcessor
> or org.apache.solr.handler.dataimport.TikaEntityProcessor
>          at
> org.apache.solr.handler.dataimport.DocBuilder.loadClass(DocBuilder.ja
> va:1010)
>          at
> org.apache.solr.handler.dataimport.DocBuilder.getEntityProcessor(DocB
> uilder.java:814)
>          ... 7 more
> Caused by: org.apache.solr.common.SolrException: Error loading class
> 'TikaEntity
> Processor'
>          at
> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.
> java:389)
>          at
> org.apache.solr.handler.dataimport.DocBuilder.loadClass(DocBuilder.ja
> va:1000)
>          ... 8 more
> Caused by: java.lang.ClassNotFoundException: TikaEntityProcessor
>          at java.net.URLClassLoader$1.run(Unknown Source)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at java.net.URLClassLoader.findClass(Unknown Source)
>          at java.lang.ClassLoader.loadClass(Unknown Source)
>          at java.net.FactoryURLClassLoader.loadClass(Unknown Source)
>          at java.lang.ClassLoader.loadClass(Unknown Source)
>          at java.lang.Class.forName0(Native Method)
>          at java.lang.Class.forName(Unknown Source)
>          at
> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.
> java:373)
>          ... 9 more
>
> Apr 30, 2011 11:13:19 PM org.apache.solr.update.DirectUpdateHandler2
> rollback
> INFO: start rollback
> Apr 30, 2011 11:13:19 PM org.apache.solr.update.DirectUpdateHandler2
> rollback
> INFO: end_rollback
>
> Thanks,
> Firdous--

Firdous,

You failed to load TikaEntityProcessor. It is included in
apache-solr-dataimporthandler-extras-3.1-SNAPSHOT.jar. You need to show Solr
where the jar is so that Solr can load it. Usually you can set the information
in solrconfig.xml like this:

   <lib dir="../../../../contrib/extraction/lib" />
   <lib dir="../../../../dist/" regex="apache-solr-dataimporthandler-.*\.jar" />

See the sample setting in example/example-DIH/solr/tika/conf/solrconfig.xml.

Koji
-- 
http://www.rondhuit.com/en/

Mime
View raw message