gpt4 book ai didi

tomcat - 如何修复 Solr 异常 : Could not find necessary SLF4j logging jars?

转载 作者:行者123 更新时间:2023-11-28 21:44:29 26 4
gpt4 key购买 nike

我在 Ubuntu 12.04 下安装 Solr 4.3 时遇到了很大的问题。首先我安装了tomcat。我可以在 localhost:8080 上通过浏览器访问 tomcat。在“Tomcat Web 应用程序管理器”中,我尝试通过“2solr.war”文件安装 Solr 4.3。该文件已上传并部署。但我无法启动它。“失败 - 上下文路径/solr 上的应用程序无法启动”。

日志文件 (localhost.log) 如下所示:

07.05.2013 11:05:36 org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application at '/solr'
07.05.2013 11:05:36 org.apache.catalina.core.StandardContext filterStart
SCHWERWIEGEND: Exception starting filter SolrRequestFilter
org.apache.solr.common.SolrException: Could not find necessary SLF4j logging jars. If using Jetty, the SLF4j logging jars need to go in the jetty lib/ext directory. For other containers, the corresponding directory should be used. For more information, see: http://wiki.apache.org/solr/SolrLogging
at org.apache.solr.servlet.SolrDispatchFilter.<init>(SolrDispatchFilter.java:105)
... 33 more
07.05.2013 11:05:36 org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
07.05.2013 11:05:36 org.apache.catalina.core.StandardContext filterStart
SCHWERWIEGEND: Exception starting filter SolrRequestFilter
org.apache.solr.common.SolrException: Could not find necessary SLF4j logging jars. If using Jetty, the SLF4j logging jars need to go in the jetty lib/ext directory. For other containers, the corresponding directory should be used. For more information, see: http://wiki.apache.org/solr/SolrLogging
at org.apache.solr.servlet.SolrDispatchFilter.<init>(SolrDispatchFilter.java:105)
... 21 more

卡特琳娜.....日志

07.05.2013 11:05:36 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error filterStart
07.05.2013 11:05:36 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context [/solr] startup failed due to previous errors
07.05.2013 11:05:36 org.apache.catalina.startup.HostConfig checkResources
INFO: Reloading context [/solr]
07.05.2013 11:05:36 org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/solr] has not been started
07.05.2013 11:05:36 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error filterStart
07.05.2013 11:05:36 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context [/solr] startup failed due to previous errors

有人可以帮助我并告诉我该怎么做吗?

最佳答案

正如日志所说 - 找不到必要的 SLF4j 日志记录 jar。

您缺少 slf4j jar 。

slf4j jar 放在 $CATALINA_BASE/lib 文件夹中。有关更多信息,请查看 here

关于tomcat - 如何修复 Solr 异常 : Could not find necessary SLF4j logging jars?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16415948/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com