Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 7170 invoked from network); 20 Aug 2002 06:28:33 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 20 Aug 2002 06:28:33 -0000 Received: (qmail 4441 invoked by uid 97); 20 Aug 2002 06:28:27 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 4269 invoked by uid 97); 20 Aug 2002 06:28:26 -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 4254 invoked by uid 98); 20 Aug 2002 06:28:26 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <003a01c24812$b8486a80$0548d187@wireless.attws.com> From: "Cameron Taggart" To: "Tomcat Users List" References: <5.1.0.14.2.20020819203511.039e8548@shell.visi.com> Subject: Re: Tomcat 4.1 b9, Reload Context with Ant Date: Mon, 19 Aug 2002 23:27:54 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 moved the that was in server.xml into a file named C:\Projects\myapp\build\WEB-INF\contextConfigFile.xml. With the cotext tag I set path="/myapp" and docBase="C:\Projects\myapp\build", but this doesn't work for me: http://localhost:8080/manager/install?war=file://C:\Projects\myapp\build\WEB -INF\contextConfigFile.xml&path=/myapp The manager application reports that: OK - Installed application at context path /peoplefinder But when I go to http://localhost:8080/myapp/ I get: HTTP Status 404, The requested resource (/myapp/) is not available. Any ideas? Does anyone else use a context config file? It is new to me. I liked putting the server specific resources in the server.xml file. Does the context config file have to be apart of the *.war? Does it matter where it is? Where can I find more information on context config files? Thanks a bunch for the lead. ----- Original Message ----- From: "Jacob Kjome" To: "Tomcat Users List" Sent: Monday, August 19, 2002 6:39 PM Subject: Re: Tomcat 4.1 b9, Reload Context with Ant > > What you need to use is a context configuration file. That is, a file with > the root element being . Put all your resources within this > that are needed by the webapp and then use the following: > > > url="${manager.url}" > username="${manager.username}" > password="${manager.password}" > path="${app.path}" > war="file://${build.home}/WEB-INF/contextConfigFile.xml" /> > > > The contextConfigFile.xml contains a entry with the path and > docRoot for the app. > > > Just a note. I haven't gotten this to work on Windows even though Craig R. > McClanahan says that it works for him on Unix. However, I haven't tried it > with the latest version 4.1.9. > > If you get this to work for you, let me know. > > Jake > > At 06:16 PM 8/19/2002 -0700, you wrote: > >Hi All, > > > >I am trying to configure Tomcat and Ant so that I can type "ant reload" and > >the web application that I am running will be redeployed without restarting > >Tomcat. This would really speed up development for me. > > > >The first issue is that I have the context set up with a couple of resources > >in the server.xml file. Tomcat will autodeploy (but not start) this app > >even without a folder named $tomcat/webapps/myapp or a war file named > >$tomcat/webapps/myapp.war. If I remove the context > >http://localhost:8080/manager/remove?path=/myapp, and then try to install > >the context > >http://localhost:8080/manager/reload?path=/myapp&war=file:/mybuild, the > >application can't find the resources, the MySQL database pool, or the mail > >session. > > > >Is there any way to have the /myapp server.xml resources not be removed from > >memory when the context is removed. Or better yet, to have it put back in > >memory when you install a context at the path /myapp? > > > >Any help would be appreciated. > > > >Thanks, > >Cameron > > > > > >-- > >To unsubscribe, e-mail: > >For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: