From owner-freebsd-java@FreeBSD.ORG Fri Feb 11 12:28:35 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 966B016A4CE for ; Fri, 11 Feb 2005 12:28:35 +0000 (GMT) Received: from male.aldigital.co.uk (male.thebunker.net [213.129.64.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id E643943D2F for ; Fri, 11 Feb 2005 12:28:34 +0000 (GMT) (envelope-from matthew@thebunker.net) Received: from gravitas.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by male.aldigital.co.uk (Postfix) with ESMTP id A52999774A for ; Fri, 11 Feb 2005 12:28:33 +0000 (GMT) Received: from gravitas.thebunker.net (localhost [127.0.0.1]) by gravitas.thebunker.net (8.13.1/8.13.1) with ESMTP id j1BCSROB064873 for ; Fri, 11 Feb 2005 12:28:27 GMT (envelope-from matthew@gravitas.thebunker.net) Received: (from matthew@localhost) by gravitas.thebunker.net (8.13.1/8.13.1/Submit) id j1BCSQ1k064872 for freebsd-java@freebsd.org; Fri, 11 Feb 2005 12:28:26 GMT (envelope-from matthew) Date: Fri, 11 Feb 2005 12:28:26 +0000 From: Matthew Seaman To: freebsd-java@freebsd.org Message-ID: <20050211122826.GB61803@gravitas.thebunker.net> Mail-Followup-To: freebsd-java@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PmA2V3Z32TCmWXqI" Content-Disposition: inline User-Agent: Mutt/1.5.7i Subject: Setting java properties for tomcat5.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 12:28:35 -0000 --PmA2V3Z32TCmWXqI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear list, I've got a standard installation of the www/jakarta-tomcat5 port, which is working pretty well. However I need to start tomcat including setting the 'java.awt.headless=3Dtrue' property. Now, all the instructions I've been able to dig up on the web say 'set JAVA_OPTS in the environment', which assumes you're using the catalina.sh script bundled with the tomcat sources. By default the FreeBSD port uses a setuid binary 'tomcat50ctl' to control startup and shutdown of tomcat, and by my reading of the daemonctl.c source code (which is what gets compiled into tomcat50ctl) it seems that environment variables are not passed through to the java command line, and experiment bears out that the effect I want is not generated. As far as I can tell I need to place this value in a Java .properties file somewhere -- the question is: where? Cheers Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 8 Dane Court Manor School Rd PGP: http://www.infracaninophile.co.uk/pgpkey Tilmanstone Tel: +44 1304 617253 Kent, CT14 0JL UK --PmA2V3Z32TCmWXqI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iQCVAwUBQgyk6pr7OpndfbmCAQK6lwQAo47IjyvljeXfsh0kwo1d/+cf8KKciKU/ R/bKNPupQ45gRDVywDdp0j4feRe47Qxiv6mmGjNHnyxlZ7Il23DGuXu1Lj+r7wEb 4aim7UGImFKKQfQrDHkHFr1DFeElzjFs6n1v1K5LvkQs07Da1xdAunsCYjV5paeA nCQxE+8lSuY= =wWxq -----END PGP SIGNATURE----- --PmA2V3Z32TCmWXqI--