Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 26F0C10877 for ; Wed, 10 Apr 2013 10:48:17 +0000 (UTC) Received: (qmail 56703 invoked by uid 500); 10 Apr 2013 10:48:13 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 55973 invoked by uid 500); 10 Apr 2013 10:48:09 -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 55936 invoked by uid 99); 10 Apr 2013 10:48:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2013 10:48:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.mk.green@gmail.com designates 209.85.216.174 as permitted sender) Received: from [209.85.216.174] (HELO mail-qc0-f174.google.com) (209.85.216.174) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2013 10:48:03 +0000 Received: by mail-qc0-f174.google.com with SMTP id z24so125732qcq.19 for ; Wed, 10 Apr 2013 03:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=gbgYqKekOXBb9yLyaYJOZ6M8WHR4WFrD0aO5eZQqnpk=; b=L1L2CB9FTg62s4+gQJDwvLm6Tl4shIMTVS2w4qTnLgYvpU8igqXdM5iZ5JM0tiQzVc ye5iijxoaFcn8PQ9qh8CmDkVrmz7XEfV4Jyw8W40aikQzu4iQkv8zwmWlw2qLUiHIDnC cvCNtAOGBBBL5Eg5uucmYrQMpCWgOBssblpQTBYiJPg6sonBAsvaAwE9Z9HXcaCe1r5+ NaVa37ncAV3CU5cpC+xBQhr2+pytwwsZ8YU/CopLdZbWTv1tdibUJshwNg0MWtOE+Sa4 N0X1ka+Mr45mIMtpmYpaR2OBMmKr33HB1VvTeycQ9UqcXLGSAwi/5Jfza6dJiC9puzWY Ibyg== MIME-Version: 1.0 X-Received: by 10.224.13.71 with SMTP id b7mr1714608qaa.87.1365590862352; Wed, 10 Apr 2013 03:47:42 -0700 (PDT) Received: by 10.49.121.234 with HTTP; Wed, 10 Apr 2013 03:47:42 -0700 (PDT) In-Reply-To: References: Date: Wed, 10 Apr 2013 11:47:42 +0100 Message-ID: Subject: Re: Inno Setup Script? From: James Green To: Tomcat Users List Content-Type: multipart/alternative; boundary=047d7bf0f2b442571c04d9ff6697 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bf0f2b442571c04d9ff6697 Content-Type: text/plain; charset=ISO-8859-1 I was hoping I could avoid that. Currently the thinking is to unpack the tomcat distribution, re-package inside a custom installer, and call bin\tomcat7.exe as per the windows service document. And indeed this works - to a point. The installer logs says: C:\Program Files\Our Local Services\tomcat\bin\tomcat7.exe //IS//Tomcat7 --DisplayName="Apache Tomcat 7" --JavaHome="C:\Program Files\Our Local Services\tomcat\..\java-7-32bit\" --Install="C:\Program Files\Our Local Services\tomcat\bin\tomcat7.exe" --Jvm="C:\Program Files\Our Local Services\tomcat\..\java-7-32bit\bin\client\jvm.dll" --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop While this installs a service, as soon as I attempt to start it I get a failure. Nothing is logged by Tomcat, but in the event service I get the following recorded: The Apache Tomcat 7 service terminated with service-specific error Incorrect function.. If I take the full command as executed by the installer, there is no feedback at the command prompt and the service is shown as installed. I am therefore lost as to what I'm looking at as a problem. Any ideas where to go? Thanks, James On 8 April 2013 18:38, Konstantin Kolinko wrote: > 2013/4/8 James Green : > > I have a need to distribute an application that works inside Tomcat to a > > number of customers. > > > > I can build an Inno Setup script to most of the work, but rather than > > re-inventing what looks like quite a complex wheel, has anyone build an > > installer script for Tomcat already that they could share? > > > > In our case we're bundling our own JRE which needs setting when > installing > > the service... > > > > > Tomcat installer is built using NSIS (Nullsoft Scriptable Install System) > . > The script is res/tomcat.nsi > > BTW, > if you are using a custom value for HTTP port, do not forget to also > change the shutdown port number (8005). I have seen a number of > software that forgets to change that. You can set it to "-1" when > external shutdown is not needed, e.g. when you run as a service. > > Best regards, > Konstantin Kolinko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --047d7bf0f2b442571c04d9ff6697--