tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Phillips <adphill...@gmail.com>
Subject jasper jsp precompilation error
Date Tue, 06 Sep 2005 22:27:11 GMT
Hi
I am trying to do JSP precompilation as described at 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html. I can run 
the application fine if I do not precompile, but when I do attempt to 
precompile the JSP, I get the message: 

BUILD FAILED
/home/aaron/projects/cdquery/build.xml:307: java.lang.NoSuchMethodError: 
javax.servlet.ServletContext.getResourcePaths
(Ljava/lang/String;)Ljava/util/Set;

I am using Tomcat 5.0.30 & Ant 1.6.2.
Does anyone have an idea what I should do? Below is my ant target XML.
Thanks,
Aaron

<target name="jspc">

<taskdef classname="org.apache.jasper.JspC" name="jasper2" >
<classpath id="jspc.classpath">
<pathelement location="${java.home}/../lib/tools.jar"/>
<fileset dir="${catalina.home}/bin">
<include name="*.jar"/>
</fileset>
<fileset dir="${catalina.home}/server/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${catalina.home}/common/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>

<jasper2
validateXml="false"
uriroot="${web.home}"
webXmlFragment="${web.home}/WEB-INF/generated_web.xml"
outputDir="${web.home}/WEB-INF/src" />

</target>

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