docbase是solr的war包的绝对地址,value是solr的运行环境。
双击tomcat的startup.bat,这是tomcat会报错!
[SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.
2013-12-26 20:02:57 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
2013-12-26 20:02:57 org.apache.catalina.core.StandardContext startInternal
严重: Context [/solr] startup failed due to previous errors
但是这个日志让人很蛋疼,就报了个错,啥都没有,最狠这种日志了!!
在tomcat的logs文件夹下面查了下localhost.2013-12-26.log这个日志文件,才找到了问题的症结!
2013-12-26 20:02:57 org.apache.catalina.core.StandardContext filterStart
严重: 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:111)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)