From owner-freebsd-java@FreeBSD.ORG Fri Feb 11 14:10:08 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 B74FC16A4CE for ; Fri, 11 Feb 2005 14:10:08 +0000 (GMT) Received: from matrix.gatewaynet.com (matrix.gatewaynet.com [217.19.69.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9448343D53 for ; Fri, 11 Feb 2005 14:10:07 +0000 (GMT) (envelope-from achill@matrix.gatewaynet.com) Received: from matrix.gatewaynet.com (localhost.localdomain [127.0.0.1]) by matrix.gatewaynet.com (8.12.8/8.12.8) with ESMTP id j1BElQ1M009226; Fri, 11 Feb 2005 16:47:26 +0200 Received: from localhost (achill@localhost)j1BElPgP009222; Fri, 11 Feb 2005 16:47:26 +0200 Date: Fri, 11 Feb 2005 16:47:25 +0200 (EET) From: Achilleus Mantzios To: Matthew Seaman In-Reply-To: <20050211122826.GB61803@gravitas.thebunker.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT cc: freebsd-java@freebsd.org Subject: Re: 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 14:10:08 -0000 O Matthew Seaman έγραψε στις Feb 11, 2005 : > 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=true' property. Why dont you edit /usr/local/jakarta-tomcat5.0/bin/catalina.sh and put a -Djava.awt.headless=true \ line at the appropriate location. Use this catalina.sh instead of tomcat50ctl. > > 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 > > -- -Achilleus