Solr在Resin中运行

503 Server is shutting down


Using log4j with Solr from source, 4.2.1 or earlier

Prior to Solr4.3, using a different SLF4J binding (such as log4j) meant either repackaging the war file or building it yourself from source. To build it yourself, you need to obtain a nightly version or get it from svn. Once it's downloaded, extract it, cd to the solr directory in the extracted directory, then compile it using ant dist-war-excl-slf4j or and dist-excl-slf4j depending on the version.

Here are the jars you will need to put in your container external lib folder, assuming that you get the 1.7 version of slf4j. The last one comes from the log4j website, not slf4j:

  • slf4j-api-1.7.5.jar
  • slf4j-log4j12-1.7.5.jar
  • jcl-over-slf4j-1.7.5.jar
  • log4j-1.2.17.jar

猜你喜欢

转载自nbing.iteye.com/blog/1897622