Have you tried to start Tomcat with 
-Dlog4j.configuration=$CATALINA_HOME/webapps/solr/WEB-INF/classes/log4j.properties

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

On 10. feb. 2011, at 09.41, Xavier Schepler wrote:

> Hi,
> 
> I added “slf4j-log4j12-1.5.5.jar” and “log4j-1.2.15.jar” to 
> $CATALINA_HOME/webapps/solr/WEB-INF/lib ,
> then deleted the library “slf4j-jdk14-1.5.5.jar” from 
> $CATALINA_HOME/webapps/solr/WEB-INF/lib,
> then created a directory $CATALINA_HOME/webapps/solr/WEB-INF/classes.
> and created $CATALINA_HOME/webapps/solr/WEB-INF/classes/log4j.properties with 
> the following contents :
> 
> log4j.rootLogger=INFO
> log4j.appender.SOLR.logfile=org.apache.log4j.DailyRollingFileAppender
> log4j.appender.SOLR.logfile.file=/home/quetelet_bdq/logs/bdq.log
> log4j.appender.SOLR.logfile.DatePattern='.'yyyy-MM-dd
> log4j.appender.SOLR.logfile.layout=org.apache.log4j.PatternLayout
> log4j.appender.SOLR.logfile.layout.conversionPattern=%d %p [%c{3}] - [%t] - 
> %X{ip}: %m%n
> log4j.appender.SOLR.logfile = true
> 
> I restarted solr and I got the following message in the catalina.out log :
> 
> log4j:WARN No appenders could be found for logger 
> (org.apache.solr.core.SolrResourceLoader).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
> info.
> 
> What is told on this page is that this error occurs what the log4j.properties 
> isn't found.
> 
> Could someone help me to have it working ?
> 
> Thanks in advance,
> 
> Xavier

Reply via email to