Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 68125 invoked from network); 21 Jul 2010 16:30:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Jul 2010 16:30:29 -0000 Received: (qmail 68632 invoked by uid 500); 21 Jul 2010 16:30:28 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 68508 invoked by uid 500); 21 Jul 2010 16:30:27 -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 68477 invoked by uid 99); 21 Jul 2010 16:30:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jul 2010 16:30:27 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of angelino.antonio@gmail.com designates 209.85.214.43 as permitted sender) Received: from [209.85.214.43] (HELO mail-bw0-f43.google.com) (209.85.214.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jul 2010 16:30:19 +0000 Received: by bwz13 with SMTP id 13so326937bwz.30 for ; Wed, 21 Jul 2010 09:28:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=EhSMlh8UCSruebfDhEmJgF63Jr2iHLDYZ33eOwNcmFI=; b=HjvAgXOsmU+xAYHi7y98LvDJVmD2F2YOVlCYC78sEB/GDisD3teiV+2NOiX6baH81I gsscWivcJjQ1bOqfpB4s/QZFX7vt2J85irFzKn3LcVxA9jRDAISBBuQvLFQINOghHSfR IkK6LJLDHuZgf59jZjS1zexDpOgcUaI5LF9VA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=WaOeRVaeYcadfKMv9waPyWvvfsAupohV3h8+NjsYjaAJzDlwELTf1T5vIuW/W/hSlK rD4Q07JBSDHX7+dKbR8lQU+H0rJ+R0mg23oYGn5FH1thsFYEvYuM0dhBhoL+3Xgpoy80 i/RIPYE7FAwDajOgAR4oNC6JYk3+A+1744PQM= MIME-Version: 1.0 Received: by 10.204.103.136 with SMTP id k8mr357336bko.37.1279729738589; Wed, 21 Jul 2010 09:28:58 -0700 (PDT) Received: by 10.204.75.208 with HTTP; Wed, 21 Jul 2010 09:28:57 -0700 (PDT) In-Reply-To: References: Date: Wed, 21 Jul 2010 18:28:57 +0200 Message-ID: Subject: Re: prunsrv doesn't find main class error From: Antonio Angelino To: Commons Users List Content-Type: multipart/alternative; boundary=0016e6d624f97a27ed048be84c11 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d624f97a27ed048be84c11 Content-Type: text/plain; charset=ISO-8859-1 Ok, I wrote the complete classpath (more than 20jars) without wildcard and it works. The problem is definitely the wildcard that cannot be used, sigh. I'm also now reading that there is a recent request on JIRA to implement wildcards: https://issues.apache.org/jira/browse/DAEMON-166. 2010/7/21 sebb > On 21 July 2010 16:12, Antonio Angelino > wrote: > > Hello sebbaz, > > > > thank you for your reply. The main class, called using jni from prunsrv, > is > > in "controller.jar" that you can find in classhpath without the use of > > wildcard. > > > >> -Djava.class.path=D:\WORK\ > > > PROJECTS\workspace-comp\controller\target\lib\*;D:\WORK\PROJECTS\workspace-comp\controller\target\controller.jar > > > > If the problem is the classpath wildcard, I should see an error logged > after > > that daemon servirce is started successfully. Am I right? > > Not necessarily. > > Why not try and see what happens if you eliminate the wildcards? > > > -Antonio > > > > > > 2010/7/21 sebb > > > >> On 21 July 2010 14:17, Antonio Angelino > >> wrote: > >> > Hello, > >> > > >> > I am writing here because I don't know why service daemon don't find > the > >> > main java class. > >> > > >> > I am using JAVA6 with classpath wildcard and m2eclipse to: > >> > - build my controller.jar > >> > - fill the library jar directory (lib) > >> > - run service daemon > >> > > >> > > >> > I dont understan why if I build a "monolithic jar", merging > >> controller.jar > >> > and all other dependencies (using maven jar-with-dependencies), > service > >> > daemon works flawless. > >> > The Manifest.MF of controller.jar and controller-with-dependencies.jar > >> are > >> > identical. > >> > > >> > > >> > This is the debug log of prunsrv: > >> > > >> > [2010-07-21 15:01:36] [1381 prunsrv.c] [debug] Commons Daemon procrun > log > >> > initialized > >> > [2010-07-21 15:01:36] [info] Commons Daemon procrun (1.0.2.0) started > >> > [2010-07-21 15:01:36] [info] Running Service... > >> > [2010-07-21 15:01:36] [1165 prunsrv.c] [debug] Inside ServiceMain... > >> > [2010-07-21 15:01:36] [info] Starting service... > >> > [2010-07-21 15:01:36] [447 javajni.c] [debug] Jvm Option[0] > >> > -Dctrl.base=D:\WORK\PROJECTS\workspace-comp\controller\target > >> > [2010-07-21 15:01:36] [447 javajni.c] [debug] Jvm Option[1] > >> > -Dctrl.home=D:\WORK\PROJECTS\workspace-comp\controller\target > >> > [2010-07-21 15:01:36] [447 javajni.c] [debug] Jvm Option[2] > >> > > >> > -Djava.endorsed.dirs=D:\WORK\PROJECTS\workspace-comp\controller\target\endorsed > >> > [2010-07-21 15:01:36] [447 javajni.c] [debug] Jvm Option[3] > >> > > >> > -Dlog4j.configuration=file:/D:\WORK\PROJECTS\workspace-comp\controller\target\conf\log4j.xml > >> > [2010-07-21 15:01:36] [447 javajni.c] [debug] Jvm Option[4] > >> > > -Djava.io.tmpdir=D:\WORK\PROJECTS\workspace-comp\controller\target\temp > >> > [2010-07-21 15:01:36] [447 javajni.c] [debug] Jvm Option[5] > >> > > >> > -Djava.class.path=D:\WORK\PROJECTS\workspace-comp\controller\target\lib\*;D:\WORK\PROJECTS\workspace-comp\controller\target\controller.jar > >> > [2010-07-21 15:01:36] [447 javajni.c] [debug] Jvm Option[6] vfprintf > >> > [2010-07-21 15:01:36] [447 javajni.c] [debug] Jvm Option[7] -Xms128m > >> > [2010-07-21 15:01:36] [447 javajni.c] [debug] Jvm Option[8] -Xmx256m > >> > [2010-07-21 15:01:37] [602 javajni.c] [error] FindClass > >> > com/comp/controller/App failed > >> > [2010-07-21 15:01:37] [996 prunsrv.c] [error] Failed loading main > >> > com/comp/controller/App class > >> > > >> > D:\WORK\PROJECTS\workspace-comp\controller\target\lib\*;D:\WORK\PROJECTS\workspace-comp\controller\target\controller.jar > >> > [2010-07-21 15:01:37] [1280 prunsrv.c] [error] ServiceStart returned 3 > >> > [2010-07-21 15:01:37] [info] Run service finished. > >> > [2010-07-21 15:01:37] [info] Commons Daemon procrun finished. > >> > > >> > > >> > Why do I receive this error? > >> > >> Probably because Procrun 1.0.2 does not support wildcard classpath > >> definitions. > >> > >> > > >> > Thank you in advance for your help. > >> > > >> > Kind Regards, > >> > > >> > Antonio. > >> > > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > >> For additional commands, e-mail: user-help@commons.apache.org > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --0016e6d624f97a27ed048be84c11--