ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prasad Iyer <Prasad.I...@lntinfotech.com>
Subject taskdef & log4j (precompiled jsp & jasper)
Date Wed, 13 Jul 2005 11:00:56 GMT
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

______________________________________________________________________
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message