-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This is extremely helpful! Thank you.
I'll be looking at this Karaf question over the next week or two, and of course
anything I discover will come back to the community. After all, this is open
source! {grin}
I think I'll start with the 'stable' configuration. If I can get that working,
'full' shouldn't be too much further.
- ---
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
>
> Sorry for the rather late replay, but we are currently very busy with
> preparing the first Stanbol release.
>
>
>
> On Thu, Mar 1, 2012 at 11:00 PM, A. Soroka <[email protected]>
> 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.
>>
>
> Thank you for the very positive feedback.
>
>> 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.
>>
>> 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?
>>
>
> 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.
>
> Before I come to the details let me add two things:
>
> 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
>
> - - - - - - - - - - - - - - -
>
> BundleLists:
>
> Apache Stanbol uses the "partial bundle list" feature of the Sling
> Launcher. This lists dependencies that are collected when building the
> launcher
>
> The following lists are required by Apache Stanbol:
>
> 1. OSGI framework bundle list:
> http://svn.apache.org/repos/asf/incubator/stanbol/trunk/launchers/bundlelists/osgiframework/src/main/bundles/list.xml
>
> 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.
>
> 2. Stanbol Commons bundle list:
> http://svn.apache.org/repos/asf/incubator/stanbol/trunk/launchers/bundlelists/stanbolcommons/src/main/bundles/list.xml
>
> There are some dependencies that need further investigation
>
> (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.
>
> Related dependencies:
>
> * 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).
>
> * org.apache.sling.installer.factory.configuration: required
> because it adds support for configurations (the main reason why
> Stanbol uses this)
>
> * org.apache.stanbol.commons.installer.bundleprovider: required for [2]
>
> * 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.
>
> * 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.
>
> * org.apache.stanbol.commons.solr.install: Note that the
> installation of SolrIndexes also depends on the Sling installer
> framework (see [5] for details)
>
> 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 >= 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.
>
> (b) Jersey
>
> Apache Stanbol depends on Jersey as JAX-RS implementation (see
> STANBOL-352). So you will need to use Jersey for now.
>
> The rest of the dependencies should not have any issues.
>
> 3. Enhancer Bundle List:
> http://svn.apache.org/repos/asf/incubator/stanbol/trunk/enhancer/bundlelist/src/main/bundles/list.xml
>
> 4. Entityhub Bundle List:
> http://svn.apache.org/repos/asf/incubator/stanbol/trunk/entityhub/bundlelist/src/main/bundles/list.xml
>
> 5. Data Bundle List:
> http://svn.apache.org/repos/asf/incubator/stanbol/trunk/data/bundlelist/src/main/bundles/list.xml
>
> --- Up to here all Bundle Lists are required to get the same
> functionality as of the Stable Launcher! ---
>
> The Full launcher uses additional Bundle list:
>
> * CMS Adapter:
> http://svn.apache.org/repos/asf/incubator/stanbol/trunk/cmsadapter/bundlelist/src/main/bundles/list.xml
> Allows to connect Stanbol directly with CMIS, JCR
>
> * Contenthub:
> http://svn.apache.org/repos/asf/incubator/stanbol/trunk/contenthub/bundlelist/src/main/bundles/list.xml
> I think this depends on the Enhancer and the CMS Adapter
>
> * FactStore:
> http://svn.apache.org/repos/asf/incubator/stanbol/trunk/factstore/bundlelist/src/main/bundles/list.xml
>
> * Ontology Manager:
> http://svn.apache.org/repos/asf/incubator/stanbol/trunk/ontologymanager/bundlelist/src/main/bundles/list.xml
> * Rules:
> http://svn.apache.org/repos/asf/incubator/stanbol/trunk/rules/bundlelist/src/main/bundles/list.xml
> * Reasoners
> http://svn.apache.org/repos/asf/incubator/stanbol/trunk/reasoners/bundlelist/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.
>
>
>
> [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/README.md
>
>
>> Thanks again for a really elegant set of software components. I'm looking
>> forward to exploring more!
>
> Hope this helps
>
> best
> Rupert
>
> --
> | Rupert Westenthaler [email protected]
> | Bodenlehenstraße 11 ++43-699-11108907
> | A-5500 Bischofshofen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
iQEcBAEBAgAGBQJPVgXlAAoJEATpPYSyaoIkMBgH/1h+EC7kAuVYhzAxgSWgby0D
62E0+Q7FhyVCNC81CRxdxRtefi/lMC2pj0MjuZIpQJtjWR5WEYnMvnxB1+zM06K9
Pxl0dZAIbl8LaTk06apoAxkrStHnkHTeM7uyhcegwHd6C6AsqOcdHhrIe+0hxNmR
DiGc7DSzyAdl2mxy82ZPNLrC/Uu/ZkRX81dQUaOcEKGPrS3ipy69yocDfsIcQt4y
sPb47drO8mgS1x1rdWEFUVfwJAmiOx5XQcjpfj4ywu7LY9HZpHLdoO/XpZY4LZLz
og2kHBQLSBkMHg3+eTDRfPvAtTrTU58KSqUt1qoe4WpuB+ebT2XcrgneZYTrq8s=
=gMLy
-----END PGP SIGNATURE-----