From dev-return-9684-apmail-karaf-dev-archive=karaf.apache.org@karaf.apache.org Wed Nov 18 10:51:50 2015 Return-Path: X-Original-To: apmail-karaf-dev-archive@minotaur.apache.org Delivered-To: apmail-karaf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 47D4218C12 for ; Wed, 18 Nov 2015 10:51:50 +0000 (UTC) Received: (qmail 59364 invoked by uid 500); 18 Nov 2015 10:51:50 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 59341 invoked by uid 500); 18 Nov 2015 10:51:50 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 59330 invoked by uid 99); 18 Nov 2015 10:51:49 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Nov 2015 10:51:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 547AE1A20E2 for ; Wed, 18 Nov 2015 10:51:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id eut_i6MJl1ZE for ; Wed, 18 Nov 2015 10:51:39 +0000 (UTC) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id BCC9720EBA for ; Wed, 18 Nov 2015 10:51:38 +0000 (UTC) Received: from mfilter14-d.gandi.net (mfilter14-d.gandi.net [217.70.178.142]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id EB42841C0A5 for ; Wed, 18 Nov 2015 11:51:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter14-d.gandi.net Received: from relay5-d.mail.gandi.net ([IPv6:::ffff:217.70.183.197]) by mfilter14-d.gandi.net (mfilter14-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id QReyK1GDixl9 for ; Wed, 18 Nov 2015 11:51:36 +0100 (CET) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.10] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 8175D41C075 for ; Wed, 18 Nov 2015 11:51:36 +0100 (CET) Subject: Re: KARAF-2734 To: dev@karaf.apache.org References: From: =?UTF-8?Q?Jean-Baptiste_Onofr=c3=a9?= Message-ID: <564C5838.60708@nanthrax.net> Date: Wed, 18 Nov 2015 11:51:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi Luca, good idea, YAJSW sounds like a good alternative, compliant with Apache license. I worked on an alternative using commons-daemon, but the scope is a bit different. Do you already have a patch or do you want I take a look on it ? Regards JB On 11/18/2015 11:47 AM, lb wrote: > Hi all, > > I'm investigating KARAF-2734 as I'm looking for alternatives to Tanuki JSW > to install Karaf as a service so I did a little bit of investigation about > YAJSW (http://yajsw.sourceforge.net/) as it claims to be functional and > configuration compatible for Tanuki JSW, here my initial findings: > > - hosted on sourceforge > - uses JNA for OS interactions > - provides Java API for embed it > - latest version not on maven central etc (asked on sourceforge forum) > - some code is still licensed as LGPL (asked on sourceforge forum) > - some source code from external dependencies is also in the repository so > some classes seem to be duplicated > - depends on some not release dependencies (i.e. commons-cli 2) > - requires the YAJSW distribution to be provided as the wrapper search for > libraries in specific paths (asked on sourceforge if an uber jar can be > made) > > About the lates point, the wrapper entry point is in wrapper.jar which then > loads all the dependencies it needs according to the information included > in MANIFEST, i.e. core libraries are defined by the entry > Class-Path-Wrapper-Core : > > Class-Path-Wrapper-Core: ./wrapperApp.jar ./lib/core/yajsw/ahessian.ja > r ./lib/core/netty/netty-all-4.0.28.Final.jar ./lib/core/jna/jna-4.1. > 0.jar ./lib/core/jna/jna-platform-4.1.0.jar ./lib/core/commons/common > s-configuration-1.10.jar ./lib/core/commons/commons-vfs2-2.0.jar ./li > b/core/commons/commons-collections-3.2.1.jar ./lib/core/commons/commo > ns-io-1.3.1.jar ./lib/core/commons/commons-lang-2.4.jar ./lib/core/co > mmons/commons-logging-1.1.jar ./lib/core/commons/commons-cli-2-SNAPSH > OT.jar > > > This means that to be included in Karaf the structure of YAJSW distribution > has to be replicated somehow or the wrapper.jar has to be manipulated to > point to jars in system folder. > > > What do you think ? > > > Regads, > Luca > -- Jean-Baptiste Onofré jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com