Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2005 16:47:25 +0200 (EET)
From:      Achilleus Mantzios <achill@matrix.gatewaynet.com>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        freebsd-java@freebsd.org
Subject:   Re: Setting java properties for tomcat5.0
Message-ID:  <Pine.LNX.4.44.0502111639400.9012-100000@matrix.gatewaynet.com>
In-Reply-To: <20050211122826.GB61803@gravitas.thebunker.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.44.0502111639400.9012-100000>