Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 20536 invoked from network); 11 Jul 2003 12:40:24 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 11 Jul 2003 12:40:24 -0000 Received: (qmail 12862 invoked by uid 97); 11 Jul 2003 12:42:52 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 12854 invoked from network); 11 Jul 2003 12:42:52 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 11 Jul 2003 12:42:52 -0000 Received: (qmail 19075 invoked by uid 500); 11 Jul 2003 12:40:04 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 19048 invoked from network); 11 Jul 2003 12:40:04 -0000 Received: from mail00.mgm-edv.de (212.18.1.108) by daedalus.apache.org with SMTP; 11 Jul 2003 12:40:04 -0000 Received: (qmail 30892 invoked from network); 11 Jul 2003 12:40:03 -0000 Received: from unknown (HELO mgm-edv.de) ([192.168.1.123]) (envelope-sender ) by mail00 (qmail-ldap-1.03) with SMTP for ; 11 Jul 2003 12:40:03 -0000 Message-ID: <3F0EB023.5070304@mgm-edv.de> Date: Fri, 11 Jul 2003 14:40:03 +0200 From: =?ISO-8859-1?Q?Reinhard_N=E4gele?= Organization: MGM EDV-Beratung GmbH User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: de-de, de, en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: war deployment and jsp pre-compilation References: <5.2.0.9.2.20030711043004.02852a88@shell.visi.com> In-Reply-To: <5.2.0.9.2.20030711043004.02852a88@shell.visi.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm afraid, I wasn't clear enough explaining the issue. First, let's assume, I do not pre-compile my JSPs and deploy the war with the manager app. Upon the first request, Tomcat will go about and compile the JSPs to the working directory. As there is no context entry in the server.xml, Tomcat will use its default working directory. Now, I'd like to pre-compile the JSPs including only the compiled JSP classes in the war file. This means that Tomcat would have to load the JSP classes directly from the war file instead of from its working directory. Can this be done? I hope the issue is clear now. Thanks for any insight. Reinhard Jacob Kjome wrote: > At 11:05 AM 7/11/2003 +0200, you wrote: > >> Thanks, but that's not the problem. I know how to use Ant and jspc. >> The question is whether/how I can tell Tomcat to load pre-compiled >> JSPs from my war file which is not unpacked as I deploy with >> unpackWars set to false. > > > The work directory is Tomcat's temp directory. It is the one place > that is guaranteed to allow files to be written for a webapp. It has > nothing to do with your issue. Actually, I'm not really sure what you > are talking about. Precompiled jsp's added to the webapp are just > servlets. You don't need to use File IO to load servlets. They > should be able to run out of a .war file just as they can from a > directory. You specify this using and > entries in in web.xml just like any other servlet. Are you saying > that this works for you when the .war is unpacked, but not when it > isn't? That would be truly odd. you'll need to explain why you think > things aren't working from a .war file first before anyone can help > you here. > > Jake > >> Any ideas? >> >> Reinhard >> >> >> Johannes Fiala wrote: >> >>> Hi Reinhard, >>> >>> Using TC 4.1.24+ you can use ant to first run JspC and deploy the >>> resulting WAR using the manager app. >>> >>> You can find more info here: >>> http://www.fwd.at/tomcat/buildmanagement-using-ant-howto.html >>> >>> Johannes >>> >>> >>> >>> >>> Reinhard N�gele 10.07.2003 15:38 >>> Please respond to >>> "Tomcat Users List" >>> >>> >>> To >>> tomcat-user@jakarta.apache.org >>> cc >>> >>> Subject >>> war deployment and jsp pre-compilation >>> >>> >>> >>> >>> >>> >>> We deploy our application as war file with the manager. "unpackWars" >>> is set to false. Is it possible to deploy pre-compiled JSPs with >>> this approach? I guess this would imply that we'd have to have a >>> context.xml in our war file specifying that Tomcat should load the >>> compiled JSP classes from the war file instead of from its working >>> directory. Can this be done? >>> >>> Reinhard >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >>> >>> >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org