Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 73930 invoked from network); 8 Apr 2003 10:04:09 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 8 Apr 2003 10:04:09 -0000 Received: (qmail 14318 invoked by uid 97); 8 Apr 2003 10:06:13 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 14311 invoked from network); 8 Apr 2003 10:06:13 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 8 Apr 2003 10:06:13 -0000 Received: (qmail 72443 invoked by uid 500); 8 Apr 2003 10:03:50 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 72429 invoked from network); 8 Apr 2003 10:03:49 -0000 Received: from alea.tripnet.se (195.100.169.5) by daedalus.apache.org with SMTP; 8 Apr 2003 10:03:49 -0000 Received: from nexus.tripnet.se (netsoftlund.se) [195.100.170.2] by alea.tripnet.se with esmtp (Exim 3.35 #1) id 192pxS-0002zv-00 (Debian); Tue, 08 Apr 2003 12:04:02 +0200 Message-ID: <3E929E81.8080201@netsoftlund.se> Date: Tue, 08 Apr 2003 12:03:45 +0200 From: =?ISO-8859-1?Q?Mart_K=E4sper?= Reply-To: mart@netsoftlund.se User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Setting system properties for Tomcat as NT service ? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I'm running Tomcat 4.1.24 (invoked from IIS) on a Win2K box as a NT=20 service. It starts OK and seems to execute my classes fine, but my=20 classes cannot find the system properties I've tried to set. What I did was (roughly): * installed Tomcat, instructing it to register as a service * set CATALINA_OPTS as an environment variable containing my -D... settin= gs * restarted Tomcat and invoking the servlet but my environment variables were not found (System.getProperty()=20 returned null). I even tried editing catalina.bat just to get some clues, but it just=20 left me more confused - nothing happened. Is it so that I should have set CATALINA_OPTS before installing Tomcat,=20 or what ? If it is - how do I re-register the Tomcat service ? Thanks in advance, =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Mart K=E4sper E-mail : mart@netsoftlund.se= Netsoft Lund AB Bredgatan 17 Tel (in place) : +46 46 19 04 95 SE-222 21 Lund, Sweden Tel (on the road) : +46 70 319 04 95 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This e-mail is a work of fiction. Names, characters, places and incidents are products of the author's imagination or are used fictitiously. Any resemblance to actual events or locales or persons, living or dead, is entirely coincidental. Also, no animals were hurt during the creation and transfer of this e-mail. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org