我们正在使用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
答案 0 :(得分:0)
当我使用Tika和ColdFusion时,我也使用了javaloader。查看项目https://github.com/cfjedimaster/getallthetexts,它对我有帮助。