solr框架搭建及错误处理

来源:互联网 发布:自动阅读的软件 编辑:程序博客网 时间:2024/04/29 08:33

1、搭建solr:http://www.luoshengsha.com/frame/solr/page/2

2、

启动tomcat,并访问solr,页面显示404,并在localhost日志中可以看到错误信息

1
2
3
4
5
6
7
8
SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.filterStart Exception starting filter SolrRequestFilter 
java.lang.NoClassDefFoundError: Failed to initialize Apache Solr: 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.CheckLoggingConfiguration.check(CheckLoggingConfiguration.java:28) 
at org.apache.solr.servlet.BaseSolrFilter.<clinit>(BaseSolrFilter.java:31) 
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) 
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

6. 将solr\example\lib\ext下的jar文件件,拷贝至apache-tomcat-8.0.12\webapps\solr\WEB-INF\lib下

0 0
原创粉丝点击