Return-Path: X-Original-To: apmail-incubator-stanbol-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-stanbol-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 C47749015 for ; Wed, 7 Mar 2012 15:35:18 +0000 (UTC) Received: (qmail 25466 invoked by uid 500); 7 Mar 2012 15:35:18 -0000 Delivered-To: apmail-incubator-stanbol-dev-archive@incubator.apache.org Received: (qmail 25288 invoked by uid 500); 7 Mar 2012 15:35:17 -0000 Mailing-List: contact stanbol-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stanbol-dev@incubator.apache.org Delivered-To: mailing list stanbol-dev@incubator.apache.org Received: (qmail 25270 invoked by uid 99); 7 Mar 2012 15:35:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2012 15:35:17 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [128.143.2.33] (HELO tamarind.mail.virginia.edu) (128.143.2.33) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2012 15:35:11 +0000 Received: from localhost (localhost [127.0.0.1]) by tamarind.mail.virginia.edu (Postfix) with ESMTP id 7A72DB4289 for ; Wed, 7 Mar 2012 10:34:50 -0500 (EST) Received: from tamarind.mail.virginia.edu ([127.0.0.1]) by localhost (tamarind-f.mail.virginia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DgQM4VSH7Pcp for ; Wed, 7 Mar 2012 10:34:50 -0500 (EST) Received: from iron4.mail.virginia.edu (iron4-s.mail.virginia.edu [10.250.200.114]) by tamarind.mail.virginia.edu (Postfix) with ESMTP id 16AD8B42CE for ; Wed, 7 Mar 2012 10:34:50 -0500 (EST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlQBAER/V0/RVdQuimdsb2JhbABCtRwIIgEBAQoJDQcSBiOCCgEBAQMBEgJqCwsYLiETAQUBHBkUDodhBQuhVAqUZ4EfiTmGU2MEiFKMb4shgxg9hCI X-Sender-IP: 209.85.212.46 Received: from mail-vw0-f46.google.com ([209.85.212.46]) by iron4.mail.virginia.edu with ESMTP; 07 Mar 2012 10:34:49 -0500 Received: by mail-vw0-f46.google.com with SMTP id ff1so7831025vbb.33 for ; Wed, 07 Mar 2012 07:34:49 -0800 (PST) Received: by 10.52.18.212 with SMTP id y20mr3711183vdd.50.1331134489021; Wed, 07 Mar 2012 07:34:49 -0800 (PST) Received: from d-172-25-123-196.bootp.virginia.edu ([137.54.15.162]) by mx.google.com with ESMTPS id w6sm37000070vdj.4.2012.03.07.07.34.48 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 07 Mar 2012 07:34:48 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Stanbol on Karaf? From: "ajs6f@virginia.edu" In-Reply-To: Date: Wed, 7 Mar 2012 10:34:46 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: stanbol-dev@incubator.apache.org X-Pgp-Agent: GPGMail 1.3.3 X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQl9s/HgwpzJLSNdOfF0E5Z53fJfGkoPT0H1tpspiCXx/swVqnXhdNqvsV9/5H0Ke/+XDVwe X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > * CMS Adapter: = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/cmsadapter/bundlel= ist/src/main/bundles/list.xml > Allows to connect Stanbol directly with CMIS, JCR >=20 > * Contenthub: = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/contenthub/bundlel= ist/src/main/bundles/list.xml > I think this depends on the Enhancer and the CMS Adapter Hm. It seems that there might be a circular dependency here: karaf@root> features:install stanbol-cmsadapter=20 Error executing command: Could not start bundle = mvn:org.apache.stanbol/org.apache.stanbol.cmsadapter.core/0.9.0-incubating= -SNAPSHOT in feature(s) stanbol-cmsadapter-0.0.0: Unresolved constraint = in bundle org.apache.stanbol.cmsadapter.core [608]: Unable to resolve = 608.0: missing requirement [608.0] package; = (package=3Dorg.apache.stanbol.contenthub.servicesapi.store) karaf@root> features:install stanbol-contenthub=20 Error executing command: Could not start bundle = mvn:org.apache.stanbol/org.apache.stanbol.contenthub.search.related/0.9.0-= incubating-SNAPSHOT in feature(s) stanbol-contenthub-0.0.0: Unresolved = constraint in bundle org.apache.stanbol.contenthub.search.related [616]: = Unable to resolve 616.0: missing requirement [616.0] package; = (package=3Dorg.apache.stanbol.cmsadapter.servicesapi.helper) I can probably slice around this by interleaving bundles or something of = the sort, but if I'm right and there is a circular dependency between = the services, it might be worth spending some time to disentangle these = guys. - --- A. Soroka Software & Systems Engineering :: Online Library Environment the University of Virginia Library On Mar 6, 2012, at 4:24 AM, Rupert Westenthaler wrote: > Hi >=20 > Sorry for the rather late replay, but we are currently very busy with > preparing the first Stanbol release. >=20 >=20 >=20 > On Thu, Mar 1, 2012 at 11:00 PM, A. Soroka = wrote: >> Firstly, let me congratulate all of you on a fantastic project! I'm = having a lot of fun exploring IKS and Stanbol (having been clued in by = Steve Bayliss). It took no time at all to get some simple integrations = going, using Stanbol to supply services for SKOS thesauri to some XForms = applications, and I was impressed by how quickly I could index and = deploy new vocabularies. >>=20 >=20 > Thank you for the very positive feedback. >=20 >> I've got a question about Stanbol's build and deployment. Currently, = it uses the Sling launcher gear to assemble components into an instance. = I see that there is some support in Sling (via their Maven Launchpad = Plugin) for creating Apache Karaf feature-repositories for Sling-based = assemblages. We're invested in Karaf at my site through our use of = ServiceMix, and I would very much like to be able to reuse that = investment and knowledge. >>=20 >> Does anyone out there in Stanbol-land deploy Stanbol to Karaf via the = feature-repository functionality? Is there any experience with this or = any known pitfalls? >>=20 >=20 > I do not have any experiences with Karaf, but assuming that you need > also to configure the required bundles with start levels I can provide > you with the following information that might help you to create a > working configuration with Apache Karaf. In addition I will provide > additional information on how Apache Stanbol uses the Apache Sling > OSGI installer framework as I assume this will be the major hurdle you > will need to overcome to successfully run Apache Stanbol in Karaf. >=20 > Before I come to the details let me add two things: >=20 > 1. If you have any problems feel free to ask here on the list or also > on the #stanbol channel at "freenode.net" > 2. If you have success it would be extremely nice if you could share > you results with the Stanbol community >=20 > - - - - - - - - - - - - - - - >=20 > BundleLists: >=20 > Apache Stanbol uses the "partial bundle list" feature of the Sling > Launcher. This lists dependencies that are collected when building the > launcher >=20 > The following lists are required by Apache Stanbol: >=20 > 1. OSGI framework bundle list: > = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/launchers/bundleli= sts/osgiframework/src/main/bundles/list.xml >=20 > I assume that you will already have most of those dependencies. I > assume that you will not need "org.apache.sling.commons.log" because > Karaf will have an own logging component. >=20 > 2. Stanbol Commons bundle list: > = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/launchers/bundleli= sts/stanbolcommons/src/main/bundles/list.xml >=20 > There are some dependencies that need further investigation >=20 > (a) Configuration: Apache Stanbol uses the sling osgi installer > framework [3] for handling its configuration. So there will be no way > around to getting this to run within Karaf. >=20 > Related dependencies: >=20 > * org.apache.sling.installer.core: This is used by Stanbol to > install service configurations via the Configuration Admin. Such > configuration are provided by the launcher (see e.g. [1] but are also > be provided by the bundles via [2]. You will need this to run Apache > Stanbol. See [3] for the documentation of the Sling installer. My > guess is that this will run fine without Sling, but you might need to > manually add some sling specific properties such as "sling.home" (see > [4] for more infos). >=20 > * org.apache.sling.installer.factory.configuration: required > because it adds support for configurations (the main reason why > Stanbol uses this) >=20 > * org.apache.stanbol.commons.installer.bundleprovider: required for = [2] >=20 > * org.apache.sling.installer.provider.file: Optional: This is > similar to the OSGI FileInstaller as it tracks files you add/remove to > a configured directory. The directory is configured by the > "sling.fileinstall.dir" property via the bundleContext#getProperty or > "sling_fileinstall_dir" via System#getProperty. Because you will not > be able to load the default configuration from the launcher [1] I > would try to copy those files to a directory and load them by using > the File installer. >=20 > * org.apache.sling.launchpad.installer: This would normally copy > the config from [1] during the first start of the sling launcher. I > suppose that you will not be able to use this. Because of that I > suggested to use the File Installer instead (see above). I think this > will not be needed when using Karaf. Same for > org.apache.sling.launchpad.api. >=20 > * org.apache.stanbol.commons.solr.install: Note that the > installation of SolrIndexes also depends on the Sling installer > framework (see [5] for details) >=20 > A final note to configurations: You need to make sure that the > configuration for a Service is installed after the service was > started. Otherwise the service for the configuration will not be > activated correctly. Because of this I would suggest to use a start > level >=3D 30 for the configurations. So keep an eye on the start = level > of the "org.apache.sling.installer.provider.file" as it will install > the configurations in the configured directory as soon as it stats. >=20 > (b) Jersey >=20 > Apache Stanbol depends on Jersey as JAX-RS implementation (see > STANBOL-352). So you will need to use Jersey for now. >=20 > The rest of the dependencies should not have any issues. >=20 > 3. Enhancer Bundle List: > = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/enhancer/bundlelis= t/src/main/bundles/list.xml >=20 > 4. Entityhub Bundle List: > = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/entityhub/bundleli= st/src/main/bundles/list.xml >=20 > 5. Data Bundle List: > = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/data/bundlelist/sr= c/main/bundles/list.xml >=20 > --- Up to here all Bundle Lists are required to get the same > functionality as of the Stable Launcher! --- >=20 > The Full launcher uses additional Bundle list: >=20 > * CMS Adapter: = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/cmsadapter/bundlel= ist/src/main/bundles/list.xml > Allows to connect Stanbol directly with CMIS, JCR >=20 > * Contenthub: = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/contenthub/bundlel= ist/src/main/bundles/list.xml > I think this depends on the Enhancer and the CMS Adapter >=20 > * FactStore: = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/factstore/bundleli= st/src/main/bundles/list.xml >=20 > * Ontology Manager: > = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/ontologymanager/bu= ndlelist/src/main/bundles/list.xml > * Rules: = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/rules/bundlelist/s= rc/main/bundles/list.xml > * Reasoners = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/reasoners/bundleli= st/src/main/bundles/list.xml > Ontology manager, rules and reasoner should be only used together. > Note that the RefactorEnhancementEngine > (org.apache.stanbol.enhancer.engines.refactor) part of the Enhancer > bundle list depends also on the availability of this. >=20 >=20 >=20 > [1] = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/launchers/full/src= /main/resources/resources/config/ > [2] = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/commons/installer/= bundleprovider/README.md > [3] http://sling.apache.org/site/osgi-installer.html > [4] http://sling.apache.org/site/configuration.html > [5] = http://svn.apache.org/repos/asf/incubator/stanbol/trunk/commons/solr/READM= E.md >=20 >=20 >> Thanks again for a really elegant set of software components. I'm = looking forward to exploring more! >=20 > Hope this helps >=20 > best > Rupert >=20 > --=20 > | Rupert Westenthaler rupert.westenthaler@gmail.com > | Bodenlehenstra=DFe 11 ++43-699-11108907 > | A-5500 Bischofshofen -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJPV4AXAAoJEATpPYSyaoIkLq8H/jTQ/NP1IOysJEFk2JoryYpe KH4sCPUfNEC8gXdh8n+XBqp8OeRy3mxn/kPKobMjAxr3kNpeLCVTHB5VtbCJFocT svsSLZeefqJIN3M1B1/ys9Rp+bxyk5GaJnlfOGtfiPElR8xkrsGdZj0DvBf38sdy Oqb32LTkTeckLHsxH0/xTepifdnjmQXqhRwFGMT49V+h16HI2Q3jzYcYSYTa/TKN +YzALDMZJ0mbEKu71nviIZk5XuPFTrixcHeOlZNYuFz7aT34mHYGDC8mw47x1tlq R/x1suuuhXoM0hf2Fu9aLVXDYJRSTfrufqPbWqwKTEaBMzFYycqS6Ejv+Sj4B6o=3D =3DUU1i -----END PGP SIGNATURE-----