Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 1454 invoked from network); 14 May 2009 08:32:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 May 2009 08:32:40 -0000 Received: (qmail 93914 invoked by uid 500); 14 May 2009 08:32:36 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 93847 invoked by uid 500); 14 May 2009 08:32:35 -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 93836 invoked by uid 99); 14 May 2009 08:32:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2009 08:32:35 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2009 08:32:26 +0000 Received: from localhost (localhost [127.0.0.1]) by tor.combios.es (Postfix) with ESMTP id 605B5226082 for ; Thu, 14 May 2009 10:29:31 +0200 (CEST) Received: from tor.combios.es ([127.0.0.1]) by localhost (tor.combios.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eN3KvWh5s2b8 for ; Thu, 14 May 2009 10:29:31 +0200 (CEST) Received: from [192.168.245.129] (montserrat.wissensbank.com [212.85.37.175]) by tor.combios.es (Postfix) with ESMTPA id 239D1226081 for ; Thu, 14 May 2009 10:29:31 +0200 (CEST) Message-ID: <4A0BD6FE.1040907@ice-sa.com> Date: Thu, 14 May 2009 10:31:58 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: aw@ice-sa.com User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Difference between running bootstrap.jar and catalina.bat References: <1735d04d0905132328x34e8b7desf93806837f16c3cc@mail.gmail.com> In-Reply-To: <1735d04d0905132328x34e8b7desf93806837f16c3cc@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Jan Hork� wrote: > Hi, > > I have problem with running my app. When I run Tomcat 5.5 | 6.0 by java -jar > bootstrap.jar start It works fine, but when I try run it by catalina.bat or > install as servise I got some class found problems. > > Shortly... Some features of application is based on jaxb1 and I need there > web servise which is based on jwsdp2 (jaxb2). I put some jars to app/lib, > some to tomcat/lib and some to java/lib and it works with java -jar > bootstrap.jar start, but not as service. > Hi. When you run Tomcat as a service under Windows, you are really running the program "TOMCAT_DIR/bin/tomcat5.exe". This is a "wrapper" program which includes what is needed to run as a Windows Service (catch "start/stop service" events etc..). This wrapper program, in turn, runs the java jvm, and this java jvm runs Tomcat. When you start Tomcat via the "startup.bat" script, you are not using this wrapper program. You run the java jvm directly, and it runs Tomcat. Ok so far ? When you run Tomcat from the startup.bat script, there are a number of "environment values" which are set by the startup script, before starting the java jvm. Example : JAVA_OPTS, CATALINA_HOME, etc.. When you run the Service wrapper "TOMCAT_DIR/bin/tomcat5.exe", these parameters are not set via environment values. Instead they are in the Windows Registry. To modify these parameters, there exists another program, named "TOMCAT_DIR/bin/tomcat5w.exe", which is a Windows GUI program that you can run, and which allows you to set the startup parameters. Try it, and see if that already answers some of your questions. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org