Tika in ColdFusion's SOLR 抛出 NoClassDefFoundError



我们使用的是ColdFusion 10(3.4)附带的SOLR版本。我有

<entity 
name="attachment" 
dataSource="dastream"
processor="TikaEntityProcessor"
url="contentdatafile"
dataField="items.CONTENTDATAFILE"
format="text">

在我的data-config.xml中。当我尝试运行它时,我会得到以下错误日志:完全导入失败:java.lang.NoClassDefFoundError:org/apache/tika/parser/AutoDetectParser

有人知道怎么解决这个问题吗?SOLR 3.4没有Tika吗?

完整跟踪:

 Feb 06, 2015 11:04:45 AM org.apache.solr.common.SolrException log
SEVERE: Full Import failed:java.lang.NoClassDefFoundError: org/apache/tika/parser/AutoDetectParser
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:266)
    at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:383)
    at org.apache.solr.handler.dataimport.DocBuilder.loadClass(DocBuilder.java:1009)
    at org.apache.solr.handler.dataimport.DocBuilder.getEntityProcessor(DocBuilder.java:823)
    at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:552)
    at org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:268)
    at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:187)
    at org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:359)
    at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:427)
    at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:408)
Caused by: java.lang.ClassNotFoundException: org.apache.tika.parser.AutoDetectParser
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:401)
    at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:363)
    ... 11 more
Feb 06, 2015 11:04:45 AM org.apache.solr.update.DirectUpdateHandler2 rollback
INFO: start rollback
Feb 06, 2015 11:04:45 AM org.apache.solr.update.DirectUpdateHandler2 rollback
INFO: end_rollback
Feb 06, 2015 11:04:45 AM org.apache.solr.core.SolrCore execute
INFO: [jimspdf] webapp=/solr path=/select params={command=status&clean=false&qt=/dataimport&commit=true} status=0 QTime=0 

当我将Tika与ColdFusion一起使用时,我还使用了javaloader。参见项目https://github.com/cfjedimaster/getallthetexts,这对我很有帮助。

相关内容

  • 没有找到相关文章

最新更新