Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 40805 invoked from network); 4 Jan 2003 11:46:26 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 4 Jan 2003 11:46:26 -0000 Received: (qmail 23222 invoked by uid 97); 4 Jan 2003 11:47:33 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 23173 invoked by uid 97); 4 Jan 2003 11:47:31 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 23158 invoked by uid 98); 4 Jan 2003 11:47:31 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <03f201c2b3e7$09903c20$a60aa8c0@server1.etilize.com> From: "Affan Qureshi" To: "Ant Users List" References: <000301c2a98a$07595070$0b00a8c0@raibledesigns.com> Subject: Re: Ant's jspc task - doesn't work on Tomcat 4.1.18 Date: Sat, 4 Jan 2003 16:47:18 +0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Where should the compiled JSP files be generated? In this example it seems that the generated JSP files are compiled to the normal WEB-INF/classes dir. But i know that tomcat genarates/compiles JSP files in "work" dir. Will it not do this if it finds compiled JSPs in my WEB-INF/classes folder? Thanks and reagrds, Affan ----- Original Message ----- From: "Matt Raible" To: Sent: Sunday, December 22, 2002 12:16 PM Subject: Ant's jspc task - doesn't work on Tomcat 4.1.18 > > I'm trying to use Ant's JSPC task to pre-compile my JSPs. I've used Erik > Hatcher's example from Java Development with Ant. It works great when > using a 4.0.x version of Tomcat, and the following jasper.classpath: > > > > > > > > > > > However, it doesn't work on Tomcat 4.1.17. I had to change the > jasper.classpath to find the appropriate jars (they're in different > directories now), plus I had to include ant.jar or I got > java.lang.NoClassDefFoundError: org/apache/tools/ant/AntClassLoader. > Where everything works on the older Tomcat version, now it fails - what > gives? > > compile-jsp: > [jspc] Compiling 8 source filesD:\source\appfuse\build\jspc\java > [jasperc] 2002-12-21 11:15:51 - uriRoot implicitly set to > "D:\Tools\tomcat-4.1.17\webapps\appfuse" > [jasperc] error:/common/footer.jsp(0,0) null > [jasperc] 2002-12-21 11:15:53 - ERROR-the file '\common\footer.jsp' > generated the following general exception: > org.apache.jasper.JasperException: > /common/footer.jsp(0,0) null > > Also, what's the best way to detect if the user has Tomcat 4.0 vs. 4.1? > > Thanks, > > Matt > > > > > > location="${build.dir}/jspc/java" /> > > location="${build.dir}/jspc/classes" /> > > location="${tomcat.home}/webapps/${webapp.name}" /> > > > > > > > > > > > > > > > > > > > --> > > > > > > > > destdir="${build.jspc.java.dir}"> > > > > > > srcdir="${build.jspc.java.dir}" > destdir="${build.jspc.classes.dir}"> > > location="${war.expanded.dir}/WEB-INF/classes" /> > > > > > > > > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: