Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 33717 invoked from network); 3 Feb 2003 21:36:34 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 3 Feb 2003 21:36:34 -0000 Received: (qmail 6300 invoked by uid 97); 3 Feb 2003 21:38:06 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 6293 invoked from network); 3 Feb 2003 21:38:05 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 3 Feb 2003 21:38:05 -0000 Received: (qmail 32117 invoked by uid 500); 3 Feb 2003 21:36:10 -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 32102 invoked from network); 3 Feb 2003 21:36:10 -0000 Received: from gull.mail.pas.earthlink.net (207.217.120.84) by daedalus.apache.org with SMTP; 3 Feb 2003 21:36:10 -0000 Received: from user-119bq99.biz.mindspring.com ([66.149.233.41] helo=jnous.com) by gull.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18foGF-0003yN-00 for tomcat-user@jakarta.apache.org; Mon, 03 Feb 2003 13:36:15 -0800 Message-ID: <3E3EE25C.40806@jnous.com> Date: Mon, 03 Feb 2003 13:42:52 -0800 From: Jim Carlson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: WAR format question Content-Type: text/plain; charset=us-ascii; format=flowed 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 Hello, I have a question about the WAR directory structure. Namely, where is the appropriate place to put configuration files, log files, and other files that need to be read/written-to by my application? Clearly putting them in the webroot isn't right. Can my application access arbitrary files under WEB-INF? How? I know that conf files can be put in the classpath (e.g. WEB-INF/classes), but this seems like the wrong solution for files that will change after deployment. In the past, I've used the technique of creating my own application root, which contained a webroot/ directory in the WAR format, and pointed the servlet container at that. I used servlet parameters in the web.xml file to specify the location of the application root to my servlets, so that they could access my conf/log files. This works fine, but forces me to 'embrace and extend' the orginal WAR concept. Any suggestions? Thanks, Jim Carlson --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org