Can I add the log4j configuration to the custom task I have defined task for precompiling the jsp files but it gives the error no appender found I tried to put log4j.properties files in all the possible class folders but doesn't work.
[jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper .compiler.JspRuntimeContext). [jasper2] log4j:WARN Please initialize the log4j system properly. my task is defined as follows <taskdef classname="org.apache.jasper.JspC" name="jasper2" > <classpath id="jspc.classpath"> <pathelement location= "${java.home}/../lib/tools.jar"/> <fileset dir="${tomcat.home}/bin"> <include name="*.jar"/> </fileset> <fileset dir="${tomcat.home}/server/lib"> <include name="*.jar"/> </fileset> <fileset dir="${tomcat.home}/common/lib"> <include name="*.jar"/> </fileset> </classpath> </taskdef> <jasper2 validateXml="false" uriroot="${webapp.path}" webXmlFragment= "${webapp.path}/WEB-INF/generated_web.xml" outputDir="${webapp.path}/WEB-INF/src" /> Regards Prasad Chandrasekaran ______________________________________________________________________