Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7A3810D9B for ; Sun, 1 Dec 2013 22:40:52 +0000 (UTC) Received: (qmail 75856 invoked by uid 500); 1 Dec 2013 22:40:48 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 75766 invoked by uid 500); 1 Dec 2013 22:40:48 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 75757 invoked by uid 99); 1 Dec 2013 22:40:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Dec 2013 22:40:48 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=FORGED_YAHOO_RCVD,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.138.91.179] (HELO nm19-vm4.bullet.mail.ne1.yahoo.com) (98.138.91.179) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 01 Dec 2013 22:40:41 +0000 Received: from [98.138.226.177] by nm19.bullet.mail.ne1.yahoo.com with NNFMP; 01 Dec 2013 22:40:20 -0000 Received: from [98.138.226.126] by tm12.bullet.mail.ne1.yahoo.com with NNFMP; 01 Dec 2013 22:40:20 -0000 Received: from [127.0.0.1] by smtp205.mail.ne1.yahoo.com with NNFMP; 01 Dec 2013 22:40:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1385937620; bh=3pmjNs+nERLb0yH0M7gHgFuBSWuzAKNPUrxzuW2eHb4=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Antivirus:X-Antivirus-Status; b=naGY2wp5kGIKkypym9thvp+i8dDxdZFswYosvMMF5NgkldpQMZKB4DX1ZkyU8iRLjz9L+tFTIhSOnt4t6m8S0CK0Q6wyAmEHJxKaloH/izVYAwl0zzrhpnUj79218fYigJ2Ik89Q7Ur60Nap7k/jP2/HJ0M7KX6m4O6s9osWrrs= X-Yahoo-Newman-Id: 412400.17144.bm@smtp205.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: B9uH2hIVM1kBfoKDUzWbjAG7bFtEW9GEy5Ye76GdFSXCilD v4L5P3L5jQXTsqxZ2MNDdEoFLn8ATuDUSBjSsIA7mwRYVUz2WohHNEXg3GtX ah5rxWQOX83eJ28_tT.FHfo_XgRmd.VZGxAH0RhqoexWW9CIr6cwx4SCWN97 88AeNTK4rYXOKtUDHWNuRtBLXd_zA6HYgT1mZtyDW.JNI_ZtvxLeY8yOJFzf 8A0k5n2KUAFF0vP6ZEsPppfeRXl8bEZB4c60zwL86U1MPXBoxq_HsNTAEcCw P0Bd4T_Ro8pzms7nMJcWPrueAURei1B7RguhvWAFTmmp0TB5B1E6eWlOxXew vLwzi4pPCFA7BKDHnuvJwCEbnxOysVFRQIg98Uk35jtbkRJwTGlI.bpbpxU1 Tt3gFB1GCMAztLVOuWZxcoGJBR.ol9iWF.q9ABnU196pWCwCSsl0qyXBxyRx 2b6Z7LJGucQmaFj9rIPavmAeXIH130aMggiEICa1GAG_QZYcQVt6KTVl5GYY 46qcd5lTFTSwwbn_umvdWPO2kNKJuYhVDFCDzd4nW74mDH_SQGGa8MgbZ X-Yahoo-SMTP: PKuT8k2swBCeFOHzkGy5rTOUTa2hBxlR X-Rocket-Received: from [127.0.0.1] (its_toasted@173.60.41.11 with ) by smtp205.mail.ne1.yahoo.com with SMTP; 01 Dec 2013 14:40:20 -0800 PST Message-ID: <529BBACF.8000102@yahoo.com> Date: Sun, 01 Dec 2013 14:40:15 -0800 From: Mark Eggers User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: install war with xml and define environment values References: <3DE8AE9B-AED4-49A2-BBD9-5BE00F79EBD6@tu-clausthal.de> In-Reply-To: <3DE8AE9B-AED4-49A2-BBD9-5BE00F79EBD6@tu-clausthal.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 131201-1, 12/01/2013), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org On 12/1/2013 1:55 PM, Philipp Kraus wrote: > Hello, > I have got a precomiled war file and in the web.xml exists some > values e.g.: > > database.location > ${user.home}/sysdata > > The Tomcat runs under root, so it creates under /root/sysdata the > data files, but I would like to change the directory, the data should > be stored in /home/mywar/sysdata > > Phil > > Run Tomcat as an unprivileged user. If you need to have Tomcat serve on port 80, use jsvc, iptables to map port 80 to port 8080, or place an Apache HTTPD server in front of Tomcat using mod_proxy_http, mod_proxy_ajp, or mod_jk. You could also unpack the WAR file, change the param value, and repackage the WAR file. Of course, the user Tomcat is running under will need to have privileges to the directory you change the param value to. . . . just my two cents. /mde/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org