From user-return-68937-apmail-ant-user-archive=ant.apache.org@ant.apache.org Sun Sep 20 16:14:48 2009 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 975 invoked from network); 20 Sep 2009 16:14:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Sep 2009 16:14:48 -0000 Received: (qmail 4488 invoked by uid 500); 20 Sep 2009 16:14:47 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 4390 invoked by uid 500); 20 Sep 2009 16:14:47 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 4380 invoked by uid 99); 20 Sep 2009 16:14:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Sep 2009 16:14:47 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [93.17.128.11] (HELO smtp22.services.sfr.fr) (93.17.128.11) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Sep 2009 16:14:37 +0000 Received: from filter.sfr.fr (localhost [127.0.0.1]) by msfrf2206.sfr.fr (SMTP Server) with ESMTP id 6EA74700009B for ; Sun, 20 Sep 2009 18:14:14 +0200 (CEST) Received: from [192.168.1.2] (gre92-3-89-85-219-2.dsl.club-internet.fr [89.85.219.2]) by msfrf2206.sfr.fr (SMTP Server) with ESMTP id 482A67000098 for ; Sun, 20 Sep 2009 18:14:14 +0200 (CEST) X-SFR-UUID: 20090920161414295.482A67000098@msfrf2206.sfr.fr Message-ID: <4AB654D5.2040505@free.fr> Date: Sun, 20 Sep 2009 18:14:13 +0200 From: supareno User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Ant Users List Subject: Re: Why Ant didn't compile my jsp's References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Rafael, what about the tomcat logs? Tomcat cannot compile your jsp because the jsp may be wrong... i think that ant will not solve your problem. but if you really want to precomile jsp, check this out http://scriptlandia.blogspot.com/2006/04/how-to-pre-compile-jsp-pages-for.html hope this help supareno > Hello everyone: > I’m learning the Struts framework and in my first Web Application, that contains only a JSP with the classic Hello World! Message, I have some problems. > > I’m using Windows XP SP2 as the OS. > Apache Tomcat 5.5 as the web server. > Ant 1.7.1 and Java 1.6 SDK. > > In my first steps I deployed my Hello.jsp into Tomcat using the Tomcat Manager and it seemed OK but the Hello.jsp didn’t compile. So I googled my problem and someone told me that this job could be done by “ANT” not by “TOMCAT”. Therefore I downloaded and installed Ant 1.7.1 and after several attempts it worked! > > Using the command options “ant compile” or “ant all” created the hierarchy directories to be deployed into Tomcat, but again, my Hello.jsp didn’t compile. > > So one question is: Is this a job for ANT or for TOMCAT? > > Somewhere I read that a JSP passes by two steps in the process: > The first one translates the Hello.jsp into a Hello.java and the second one converts the Hello.java into a Hello.class. > How can I achieve this using ANT or TOMCAT? > > Any ideas? > Thanks. > _________________________________________________________________ > With Windows Live, you can organize, edit, and share your photos. > http://www.microsoft.com/middleeast/windows/windowslive/products/photo-gallery-edit.aspx > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org