我在Ubuntu 12.04下安装Solr4.3时遇到大问题。首先,我安装了tomcat。我可以通过localhost:8080上的浏览器访问tomcat。在“ Tomcat Web应用程序管理器”中,我尝试通过2solr.war安装Solr 4.3 。该文件已上载部署。但是我无法开始。“失败-无法启动上下文路径/ solr处的应用程序”。
The log file (localhost.log) look like:
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
catalina.....log
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
Can somebody help me and tell me what to do?
As the logs say - Could not find necessary SLF4j logging jars.
Could not find necessary SLF4j logging jars.
You are missing the slf4j jars.
Place the slf4j jars in the $CATALINA_BASE/lib folder. For more information have a look here
slf4j
$CATALINA_BASE/lib