Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC6ED1040D for ; Mon, 29 Apr 2013 22:48:47 +0000 (UTC) Received: (qmail 97092 invoked by uid 500); 29 Apr 2013 22:48:46 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 96941 invoked by uid 500); 29 Apr 2013 22:48:46 -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 96929 invoked by uid 99); 29 Apr 2013 22:48:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Apr 2013 22:48:46 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: encountered temporary error during SPF processing of domain of johnboyer99@gmail.com) Received: from [67.222.54.6] (HELO oproxy6-pub.bluehost.com) (67.222.54.6) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 29 Apr 2013 22:48:39 +0000 Received: (qmail 32660 invoked by uid 0); 29 Apr 2013 22:47:58 -0000 Received: from unknown (HELO box769.bluehost.com) (66.147.244.69) by cpoproxy3.bluehost.com with SMTP; 29 Apr 2013 22:47:58 -0000 Received: from [67.168.160.251] (port=47639 helo=[10.0.1.2]) by box769.bluehost.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.80) (envelope-from ) id 1UWwrW-00019I-Oi for user@commons.apache.org; Mon, 29 Apr 2013 16:47:58 -0600 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: [daemon] JSVC re-exec requires execution with an absolute or relative path From: John Boyer In-Reply-To: Date: Mon, 29 Apr 2013 15:47:57 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <669D48AB-BDCC-4425-8D19-160F18BE6196@gmail.com> References: <963F31F3-7002-4A6D-B03F-2802D7EAFF09@gmail.com> <517DFA50.9060606@apache.org> <6D3C6E5C-B099-4465-A48E-A8D39CD7406F@gmail.com> To: Commons Users List X-Mailer: Apple Mail (2.1503) X-Identified-User: {1185:box769.bluehost.com:rodaxsof:rodaxsoft.com} {sentby:smtp auth 67.168.160.251 authed with john@rodaxsoft.com} X-Virus-Checked: Checked by ClamAV on apache.org Hi: UPDATE:=20 The UNIX error message is referring to the absolute path of the jsvc = executable. When I invoked the executable with its absolute path it = worked. I assume it's the same problem on Mac OS X. /usr/local/bin/jsvc -jvm server -debug -home /usr/lib/jvm/java-6-openjdk = -cp /usr/local/bin/commons-daemon-1.0.15.jar:myjar.jar MyDaemonClass I'm really happy it's working now. Regards, John On Apr 29, 2013, at 9:10 AM, John Boyer wrote: > UPDATE: Unfortunately, using the absolute and relative classpaths = results in the same error. >=20 > We haven't been able to get this to work on UNIX or Mac OS X. I think = we'll need to look at other alternatives such as the Java Service = Wrapper. >=20 > UNIX Error: "JSVC re-exec requires execution with an absolute or = relative path" >=20 > Mac OS X: "Cannot find daemon loader = org/apache/commons/daemon/support/DaemonLoader" >=20 > Regards, >=20 > John >=20 >=20 > On Apr 29, 2013, at 8:46 AM, John Boyer wrote: >=20 >> Hi TM: >>=20 >> Thanks, I will try this. In any case, I believe if the log message = mentioned the "classpath" explicitly it would have saved me a lot of = time. It's unclear what the real object of the sentence is or what path = it's referring to. Just spitting out the classpath in the log message = would've given me a clue as to what it was complaining about. >>=20 >> JSVC re-exec requires execution with an absolute or relative path >>=20 >> Thanks again, >>=20 >> John=20 >>=20 >> On Apr 28, 2013, at 9:42 PM, Mladen Turk wrote: >>=20 >>> On 04/28/2013 11:05 PM, John Boyer wrote: >>>> Hello: >>>>=20 >>>> I'm trying to run jsvc on Ubuntu Linux (10.04.4). I'm getting a = re-exec path error. I've sunk a lot of hours into this. I'm beginning to = think I should have used the Java Service Wrapper Community Edition = instead. >>>>=20 >>>> Anyway, can anyone help me with this problem? Thank you for your = time. John >>>>=20 >>>=20 >>> Like the log says. Use either absolute or relative paths. >>> I presume you know what those concepts are. >>>=20 >>> Reason for that is security. Having just 'commons-daemon-1.0.15.jar' = in the classpath >>> means it can come from anywhere in the PATH. >>> So use >>> -cp ./commons-daemon-1.0.15.jar:./api-monitor.jar >>> (That's relative path) >>> or >>> -cp `pwd`/commons-daemon-1.0.15.jar:`pwd`/api-monitor.jar >>> (That's absolute path) >>>=20 >>>=20 >>>=20 >>> Regards >>> --=20 >>> ^TM >>>=20 >>> = --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org >>> For additional commands, e-mail: user-help@commons.apache.org >>>=20 >>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org >> For additional commands, e-mail: user-help@commons.apache.org >>=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org