You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Prasad Iyer <Pr...@lntinfotech.com> on 2005/07/13 13:00:56 UTC
taskdef & log4j (precompiled jsp & jasper)
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
______________________________________________________________________