This method was added in Servlet API version 2.3. Can you check if you are using that version ?
Have a look at whats in your classpath at JSP precompilation time !!! -----Original Message----- From: Aaron Phillips [mailto:[EMAIL PROTECTED] Sent: 06 September 2005 23:27 To: tomcat-user@jakarta.apache.org Subject: jasper jsp precompilation error 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> ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]