ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kavitha Ranga <kavitha.ranganat...@mci.com>
Subject JSP precompile
Date Fri, 12 Dec 2003 18:23:20 GMT
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


Mime
View raw message