Solr / Tika Extract失败NoSuchMethodError,Solr 3.6,Tika 1.0,Jboss 5.0.1

时间:2013-01-31 14:32:49

标签: solr jboss apache-tika

我们在JBOSS内部安装了多核SOLR 3.6,具有TIKA提取功能。这是Windows 2008 R2 VM上的新安装。这种确切的设置已经适用于许多其他部署。当调用“extract”时,HEre是堆栈跟踪:

2013-01-31 08:52:51,908 SEVERE [org.apache.solr.servlet.SolrDispatchFilter] java.lang.NoSuchMethodError:org.apache.tika.config.TikaConfig。(Ljava / lang / ClassLoader;)V     at org.apache.solr.handler.extraction.ExtractingRequestHandler.getDefaultConfig(ExtractingRequestHandler.java:136)     在org.apache.solr.handler.extraction.ExtractingRequestHandler.inform(ExtractingRequestHandler.java:95)     at org.apache.solr.core.RequestHandlers $ LazyRequestHandlerWrapper.getWrappedHandler(RequestHandlers.java:255)     at org.apache.solr.core.RequestHandlers $ LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:242)     在org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)     在org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365)     在org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260)     在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)     在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)     在org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)     在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)     在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)     在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)     在org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)     在org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)     at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)     at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)     在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)     在org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)     在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)     在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)     在org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)     在org.apache.coyote.http11.Http11Protocol $ Http11ConnectionHandler.process(Http11Protocol.java:598)     在org.apache.tomcat.util.net.JIoEndpoint $ Worker.run(JIoEndpoint.java:447)     在java.lang.Thread.run(Thread.java:662)

1 个答案:

答案 0 :(得分:0)

我遇到了类似的问题,得到NoSuchMethodErrors。原来我在我的类路径上有一个旧版本的metadata-extractor.jar,它与tika.jar中的版本冲突。如果您可以找到抛出异常的特定jar,则可能存在版本冲突。