14 Replies Latest reply: Jul 31, 2012 10:42 AM by Mircea Markus RSS

In infinispan-4.1.0.CR3,while starting Hotrod server - Found Log4j initialization errors

Savin Seven Newbie

Dear All,

 

I have taken the latest distribution infinispan-4.1.0.CR3 and started the Hotrod Server using the below command

 

D:\Infinispan\infinispan-4.1.0.CR3-all\infinispan-4.1.0.CR3\bin>startServer -c ../etc/config-samples/minimal.xml -r hotrod

 

Then I got the Log4j not properly initialized below errors in the server console. [but the server is started and working fine]

log4j:WARN No appenders could be found for logger (org.infinispan.server.core.Main$).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

 

I have changed the minimal.xml in the etc\config-samples folder and commented the root appender File in the log4j.xml, uncommented the root appender CONSOLE

 

<root>
      <priority value="TRACE"/>
      <appender-ref ref="CONSOLE"/>
      <!-- <appender-ref ref="FILE"/> -->

</root>

 

Please let me know, How can I get around this error in distribution infinispan-4.1.0.CR3 and make the server logging work fine ?????

 

Attached are my minimal.xml and log4j.xml.

 

Kindly do the needful.

 

Thanks & Regards,

Savin