Logging using Log4j in an Axis2 Web Service

Posted on February 1, 2012


Did u want to turn on logging using Log4j for u’r Axis2 based web service? Adding to the class path in the webservice or the .aar won’t work.

You will need to append / edit the log4j in the axis2/WEB-INF\classes\log4j.properties file … because axis2 is the web application running using the log4j.properties file in it’s class path.

I hate this because I’d rather not edit a deployed WAR. But, is there a better way?