You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Kavitha Ranga <ka...@mci.com> on 2003/12/12 19:23:20 UTC
JSP precompile
Hello,
I am trying to precompile JSP pages which
contain struts taglibs.
I get the following error:
[jasperc] error:org.apache.jasper.JasperException: Error compiling
/AddItem.jsp
[jasperc] at org.apache.jasper.JspC.processFile(JspC.java:596)
[jasperc] at org.apache.jasper.JspC.execute(JspC.java:801)
[jasperc] at org.apache.jasper.JspC.main(JspC.java:823)
which tells me nothing.
Any clue as to what I am doing wrong?
The snippet from my build script where I am precompiling is
<target name="precompileJSP" depends="init">
<mkdir dir="${jar.dir}/precompiled" />
<jspc destdir="${jar.dir}/precompiled"
srcdir="${build.dir}/${project.src}/web/MyApp" compiler="jasper"
classpath="/opt/app/jboss/tomcat-4.1.x/common/lib/jasper-compiler.jar" >
<classpath>
<pathelement
location="/opt/app/jboss/tomcat-4.1.x/common/lib/servlet.jar" />
<pathelement
location="/opt/app/jboss/tomcat-4.1.x/common/lib/jasper-runtime.jar" />
<pathelement
location="/opt/app/ant/jakarta-ant-1.5.1/lib/ant.jar" />
<pathelement
location="/opt/app/jboss/server/all/lib.struts.jar" />
</classpath>
<include name="**/*.jsp" />
</jspc>
</target>
Thanks in advance.
Kavitha
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org