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下
本文详细介绍了在使用Tomcat部署Solr时遇到404错误及日志中出现NoClassDefFoundError的具体解决方案。通过将solrexamplelibext下的jar文件拷贝至apache-tomcat-8.0.12webappssolrWEB-INFlib下,成功解决了Apache Solr无法正常启动的问题。

1221

被折叠的 条评论
为什么被折叠?



