Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 85958 invoked from network); 15 Dec 2010 10:42:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Dec 2010 10:42:32 -0000 Received: (qmail 52004 invoked by uid 500); 15 Dec 2010 10:42:31 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 51622 invoked by uid 500); 15 Dec 2010 10:42:31 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 51614 invoked by uid 99); 15 Dec 2010 10:42:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Dec 2010 10:42:30 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [213.191.128.81] (HELO mxout2.iskon.hr) (213.191.128.81) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Dec 2010 10:42:21 +0000 Received: from mxscanout.iskon.hr (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 94BC22E373C for ; Wed, 15 Dec 2010 11:41:54 +0100 (CET) Received: from mx.iskon.hr (mx4.iskon.hr [213.191.142.125]) by mxscanout.iskon.hr (Postfix) with ESMTP id 7C0DA2E306A for ; Wed, 15 Dec 2010 11:41:54 +0100 (CET) Received: from mx.iskon.hr (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id A742522114 for ; Wed, 15 Dec 2010 11:41:58 +0100 (CET) Received: from es55x86w0.jboss.hr (89-164-118-111.dsl.iskon.hr [89.164.118.111]) by mx.iskon.hr (Postfix) with ESMTP id 94DE6221E5 for ; Wed, 15 Dec 2010 11:41:44 +0100 (CET) Message-ID: <32019_1292409714_4D089B72_32019_490_3_4D089B60.3010505@apache.org> Date: Wed, 15 Dec 2010 11:41:36 +0100 From: Mladen Turk User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: user@commons.apache.org Subject: Re: [procrun] How to start a java service? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: IskonProtect X-Remote-IP: 89.164.118.111 X-PerlMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' SUPERLONG_LINE 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1100_1199 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MOZILLA_MSGID 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __USER_AGENT 0' On 12/15/2010 09:49 AM, P.N. wrote: > > Hello! > > I'm trying to start a java app as a windows service. > > I've installed the app using: > > commons-daemon\prunsrv.exe //IS//MyService --DisplayName="My Description" --Install=K:\my\path\commons-daemon\prunsrv.exe --Classpath=K:\my\path\MyOwnService.jar;K:\my\path\myApp.jar --Jvm=C:\path\to\jre\bin\server\jvm.dll --JvmMx=512 > --JvmOptions="-Dmy.option=xyz" --StartMode=jvm --StartClass=my.wrapper.MyServiceClass --StartMethod=start --StartParams="-a:b;-c:d" --StopMode=jvm --StopClass=my.wrapper.MyServiceClass --StopMethod=stop --StdOutput=auto --StdError=auto --LogLevel=Debug > > Result: Service is installed. > > When trying to start my service (from Services console), I'm getting an error 3 (Path does not exist). No path is given, and all the paths do exist and are changed to be absolute, as You can see above. > Once when installed you can check the config with prunmgr.exe //ES//MyService to see if some params are wrongly set. Also try running in console mode first. prunsrv.exe //TS//MyService It should usually give you more info then from service mode. Regards -- ^TM --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org