ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John W. Warner" <jwar...@ccs.nrl.navy.mil>
Subject JSP Precompile
Date Thu, 16 May 2002 21:24:58 GMT
I've got something weird going on. 
Using ANT 1.5.1 beta and Tomcat 4.1.0 alpha on Windows 2000.
JDK1.4
 
I use the following ant task to perform JSP precompile.
<jspc destdir="precompile"
         srcdir="DocRoot\jsps">
  <include name="**/*.jsp" />
</jspc>
 
I have also tried;
<java fork="true" classname="org.apache.jasper.JspC">
  <arg line="-d precompile -webapp DocRoot" />
  <classpath>
    <pathelement location="\lib\jasper-compiler.jar" />
    <pathelement location="\lib\jaspwer-runtime.jar" />
    <pathelement location="\lib\servlet.jar" />
    .
  </classpath>
</java>
<javac srcdir="DocRoot\jsps"
          destdir="precompile"
 
classpath="\j2sdk1.4.0\jre\lib\rt.jar:\lib\jasper-compiler.jar:\lib\jasp
er-runtime.jar:\lib\servlet.jar:." />
 
The java files produced by either of the above 2 methods produce the
following;
package jsps;
.
public class null extends HttpJspBase { .
.
 
So then I get errors that talk about the "class null".
 
Does anyone no what's going on? 
If you've gotten JSP precompile to work what version of tomcat are you
running?
 
Thanks,
John Warner
 
 

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