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 58659106C7 for ; Mon, 2 Dec 2013 06:49:51 +0000 (UTC) Received: (qmail 33054 invoked by uid 500); 2 Dec 2013 06:49:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 32879 invoked by uid 500); 2 Dec 2013 06:49:32 -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 32870 invoked by uid 99); 2 Dec 2013 06:49:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Dec 2013 06:49:31 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of philipp.kraus@tu-clausthal.de designates 139.174.2.42 as permitted sender) Received: from [139.174.2.42] (HELO mailrelay1.rz.tu-clausthal.de) (139.174.2.42) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Dec 2013 06:49:23 +0000 Received: from hades.rz.tu-clausthal.de (hades.rz.tu-clausthal.de [139.174.2.20]) by mailrelay1.rz.tu-clausthal.de (Postfix) with ESMTPS id EC27E3833E0 for ; Mon, 2 Dec 2013 07:49:02 +0100 (CET) Received: from hades.rz.tu-clausthal.de (localhost [127.0.0.1]) by hades.rz.tu-clausthal.de (Postfix) with ESMTP id D11233833D7 for ; Mon, 2 Dec 2013 07:49:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=simple; d=rz.tu-clausthal.de; h= content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s=dkim1; bh=VR4HtIHzKeIXTk1cfgeNLDYvmvQ=; b=LO0y+3I7cIUXkgH4HycIPm8GK0mx U7YM7ghXTD0tiSerMXkBBJ0Tm1kCfEFKMWCpOYs8d+ARFsDya6uBe8yOWKNsR2cU stTJOdqJAZGsh2cLy7TiskIvC1BnFyGWEm1mTobk5vq050GX4WVbJAX2/K0obvD4 +7Iqbk7reIjzidM= Received: from hades.rz.tu-clausthal.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id BDA773833E0 for ; Mon, 2 Dec 2013 07:49:02 +0100 (CET) Received: from tu-clausthal.de (hathor.rz.tu-clausthal.de [139.174.2.1]) by hades.rz.tu-clausthal.de (Postfix) with ESMTPS id 9521E3833D7 for ; Mon, 2 Dec 2013 07:49:02 +0100 (CET) Received: from philipp-desktop.in.tu-clausthal.de (account pkr@tu-clausthal.de [139.174.100.220] verified) by tu-clausthal.de (CommuniGate Pro SMTP 5.4.11) with ESMTPSA id 55813954 for users@tomcat.apache.org; Mon, 02 Dec 2013 07:49:02 +0100 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: install war with xml and define environment values From: Philipp Kraus In-Reply-To: <529BBACF.8000102@yahoo.com> Date: Mon, 2 Dec 2013 07:49:02 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <3DE8AE9B-AED4-49A2-BBD9-5BE00F79EBD6@tu-clausthal.de> <529BBACF.8000102@yahoo.com> To: "Tomcat Users List" X-Mailer: Apple Mail (2.1510) X-Virus-Scanned: by Sophos PureMessage 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.12.2.63619 at tu-clausthal.de X-Spam-Level: (10%, ' __FRAUD_WEBMAIL! 0, HTML_00_01 0.05, HTML_00_10 0.05, MIME_LOWER_CASE 0.05, SUPERLONG_LINE 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1500_1599 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, ECARD_KNOWN_DOMAINS 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FORWARDED_MSG 0, __FRAUD_BODY_WEBMAIL 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MSGID_APPLEMAIL 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS , __USER_AGENT_APPLEMAIL 0, __X_MAILER_APPLEMAIL 0, __ix.dnsbl.manitu.net_ERROR ') X-Virus-Checked: Checked by ClamAV on apache.org Hello, Am 01.12.2013 um 23:40 schrieb Mark Eggers : > Run Tomcat as an unprivileged user. >=20 > 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. >=20 > 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. On my test system Tomcat 7 runs with root access, but on my production = system it runs with an unprivileged user on port 9090 and a Nginx works = like a proxy for https. This works fine, but on the Tomcat runs Jenkins and a project planning system.=20 My Jenkins installation is configures by a XML file in the /etc/tomcat7 = directory with this content: With the value JENKINS_HOME I can change the data directory of Jenkins. The project planning system uses only ${user.home}, so I would like to = redefine this environment value for this war only (because the backup = system runs over the /home dir).=20 I'm working the first time with tomcat but not with java. Thanks Phil= --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org