Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 20410 invoked from network); 1 Sep 2003 12:47:11 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Sep 2003 12:47:11 -0000 Received: (qmail 63671 invoked by uid 500); 1 Sep 2003 12:46:50 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 63623 invoked by uid 500); 1 Sep 2003 12:46:49 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 63599 invoked from network); 1 Sep 2003 12:46:49 -0000 Received: from unknown (HELO odin.enator.dk) (195.249.172.53) by daedalus.apache.org with SMTP; 1 Sep 2003 12:46:49 -0000 Received: by odin.enator.dk with Internet Mail Service (5.5.2653.19) id ; Mon, 1 Sep 2003 14:46:18 +0200 Message-ID: <8B4A710A4FF0E8449E1066277C45C58E9552@Fenris> From: Morten Mortensen To: 'Ant Users List' Subject: RE: taskdef class org.apache.jasper.JspC cannot be found Date: Mon, 1 Sep 2003 14:41:54 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, Try with "jasper-runtime.jar" and "jasper-compiler.jar" - for e.g. a 4.1.27 it solves all problems with missing classes. I *think*! -These archives are in "...Tomcat/common/lib" - they are included in the classpath set up on http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html#Web%20Appl ication%20Compilation. ----- Actually, I do have some problems getting the "jspc"-task to work... To define the task, I have tried with a task "external.tomcat.jasper.init" and a reference to two local copies of "jasper-runtime.jar" and "jasper-compiler.jar" - ----- If you succeed - or find some documentation of the attributes to the "jasper2"-task - give us a hint! :-) Regards, Morten Sabroe Mortensen -----Original Message----- From: William Abson [mailto:william.abson@db.com] Sent: 1. september 2003 14:24 To: user@ant.apache.org Subject: taskdef class org.apache.jasper.JspC cannot be found Hi, I'm trying to construct an Ant build file to precompile some JSPs in a webapp running under Tomcat. I used the basic template for the build file from http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html#Web%20Appl ication%20Compilation When I tried running this using the command: ant -Dtomcat.home= -Dwebapp.path= I received a 'class cannot be found' error for the class org.apache.jasper.JspC which is referenced in the ant task as follows: I tried specifying a classpath attribute for the element to explicitly point to the location of Tomcat's lib/catalina-compile.jar file (which contains the JspC class), but I still get the error. I also put this in the CLASSPATH in the script I'm using to execute the ant command, but to no avail. I'd be grateful for any advice on how I can get Ant to pick up the org.apache.jasper.JspC class, if anyone has any experience of this? I'm using Ant 1.5.4 and Tomcat 4.0.6. Thanks, Will. -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org