Tim Funk wrote:
The jasper2 task edits web.xml in place. That being said, make sure your build process creates a build directory. Copies all we resources to the build directory (including web.xml), then compile and classes to WEB-INF/classes (or compile and jar them), then run the jasper2 task to in place edit web.xml. The advantage is make clean becomes a dir removal and a rebuild is *very* easy.
Sorry, it still does not work.
I have a fully functional, non-precompiled web application in dist/war.
I am trying to transform it into a precompiled web app in place, using the following Ant tasks:
<taskdef classname="org.apache.jasper.JspC" name="jasper2">
<classpath id="jspc.classpath">
<fileset dir="${env.CATALINA_HOME}/common/lib"><include name="*.jar"/></fileset>
<fileset dir="dist/war/WEB-INF/lib"><include name="**/*.jar"/></fileset>
</classpath>
</taskdef>
<jasper2 validateXml="false" uriroot="dist/war" addWebXmlMappings="true" compile="false" poolingEnabled="false" />
When executing the target that contains the tasks with Eclipse 3.1M4 (which contains Ant 1.6.2), I just get
BUILD FAILED: C:\eclipse-3.1M4\workspace\myapp\build.xml:86: java.lang.NullPointerException
My CATALINA_HOME environment variable points to an installation of Tomcat 5.0.28. I am using Windows XP SP2.
Is there anything I can do to debug this problem? Where can I read the stack trace of the exception?
Regards,
Andreas
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]