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 A732F998D for ; Wed, 7 Mar 2012 16:20:15 +0000 (UTC) Received: (qmail 82549 invoked by uid 500); 7 Mar 2012 16:20:15 -0000 Delivered-To: apmail-incubator-stanbol-dev-archive@incubator.apache.org Received: (qmail 82357 invoked by uid 500); 7 Mar 2012 16:20:13 -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 82342 invoked by uid 99); 7 Mar 2012 16:20:13 -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 16:20:13 +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.119] (HELO dill.mail.virginia.edu) (128.143.2.119) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2012 16:20:07 +0000 Received: from localhost (localhost [127.0.0.1]) by dill.mail.virginia.edu (Postfix) with ESMTP id DF58710A303 for ; Wed, 7 Mar 2012 11:19:46 -0500 (EST) Received: from dill.mail.virginia.edu ([127.0.0.1]) by localhost (dill-f.mail.virginia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LxPAuGbxvgWD for ; Wed, 7 Mar 2012 11:19:46 -0500 (EST) Received: from iron5.mail.virginia.edu (iron5-s.mail.virginia.edu [10.250.200.115]) by dill.mail.virginia.edu (Postfix) with ESMTP id AFC4C10A30D for ; Wed, 7 Mar 2012 11:19:46 -0500 (EST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah0CAKeJV0/RVdyukWdsb2JhbABDtQ8IIgEBAQEJCQ0HEimCCgEBAQMBEgITVwsLGC4hEwEFARwZFA6HYQULm20KlFyJB4k5hlNjBIhSjG+LIYMYPYQi X-Sender-IP: 209.85.220.174 Received: from mail-vx0-f174.google.com ([209.85.220.174]) by iron5.mail.virginia.edu with ESMTP; 07 Mar 2012 11:19:46 -0500 Received: by mail-vx0-f174.google.com with SMTP id p1so7832615vcq.33 for ; Wed, 07 Mar 2012 08:19:46 -0800 (PST) Received: by 10.52.28.228 with SMTP id e4mr3974273vdh.57.1331137184964; Wed, 07 Mar 2012 08:19:44 -0800 (PST) Received: from d-172-25-123-196.bootp.virginia.edu ([137.54.15.162]) by mx.google.com with ESMTPS id ew2sm37163030vdc.16.2012.03.07.08.19.43 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 07 Mar 2012 08:19:44 -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: <4F578229.8040509@gmail.com> Date: Wed, 7 Mar 2012 11:19:41 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <21E0622F-FD4C-4E50-88AE-A0C559A03092@email.virginia.edu> References: <4F578229.8040509@gmail.com> To: stanbol-dev@incubator.apache.org X-Pgp-Agent: GPGMail 1.3.3 X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQnm1zLmI4n+axhTq/XJ/NgOsTyP3k11HTICqHAGVf1LDsgPvMqj/vxOg4viTC5mudPU7+fd X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks! I'm having the devil of a time building ContentHub, because the = LDPath artifacts switched today to use the ".bundle" file extension in = their Maven repo. I'm getting messages such as you see below my sig. Is = anyone else seeing this problem? - --- A. Soroka Software & Systems Engineering :: Online Library Environment the University of Virginia Library Failed to execute goal on project org.apache.stanbol.contenthub.ldpath: = Could not resolve dependencies for project = org.apache.stanbol:org.apache.stanbol.contenthub.ldpath:bundle:0.9.0-incub= ating-SNAPSHOT: Could not find artifact = at.newmedialab.ldpath:ldpath-core-bundle:jar:0.9.5-20120307.140506-9 in = kiwi-snapshot-repo = (http://devel.kiwi-project.eu:8080/nexus/content/repositories/snapshots/ On Mar 7, 2012, at 10:43 AM, Ali Anil Sinaci wrote: > Hi, >=20 > I have removed the dependency "Contenthub --> CMSAdapter" with = r1297400. Could you please check with an updated version? >=20 > Anil. >=20 > On 03/07/2012 05:34 PM, ajs6f@virginia.edu wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >>=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 >> Hm. It seems that there might be a circular dependency here: >>=20 >> karaf@root> features:install stanbol-cmsadapter >> 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 >> 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) >>=20 >> 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. >>=20 >> - --- >> A. Soroka >> Software& Systems Engineering :: Online Library Environment >> the University of Virginia Library >>=20 >> On Mar 6, 2012, at 4:24 AM, Rupert Westenthaler wrote: >>=20 >>> 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 >>> 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 >>> 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! >>> 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 >>=20 >> iQEcBAEBAgAGBQJPV4AXAAoJEATpPYSyaoIkLq8H/jTQ/NP1IOysJEFk2JoryYpe >> KH4sCPUfNEC8gXdh8n+XBqp8OeRy3mxn/kPKobMjAxr3kNpeLCVTHB5VtbCJFocT >> svsSLZeefqJIN3M1B1/ys9Rp+bxyk5GaJnlfOGtfiPElR8xkrsGdZj0DvBf38sdy >> Oqb32LTkTeckLHsxH0/xTepifdnjmQXqhRwFGMT49V+h16HI2Q3jzYcYSYTa/TKN >> +YzALDMZJ0mbEKu71nviIZk5XuPFTrixcHeOlZNYuFz7aT34mHYGDC8mw47x1tlq >> R/x1suuuhXoM0hf2Fu9aLVXDYJRSTfrufqPbWqwKTEaBMzFYycqS6Ejv+Sj4B6o=3D >> =3DUU1i >> -----END PGP SIGNATURE----- >=20 -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJPV4qeAAoJEATpPYSyaoIkfm0IAJM71nYk2RkIcjO3yAd4Nw8m mioxInnP2dRhtMbZOxSERFHxUIXMhOufmD8437mJFCH1kCkmJ4kKoVx4GA1pM7w3 EUMoahm9pwOzGU6aVGT0ksmBbCmLQa86IU0iSqy+kZvQQb4i1/ENpsgUsgADC1l6 kADG3WlYEm2QXigISuO03oavntYNJTIJOsBVToizJElCGHAR6XTpqk788nnzvqDA cVh6CwqWRL8ApJEBXCzx8H74xG0svpFBMiirHzd0IrL2DG742GnQUjJOTTLIc/4Q sr3V5dY6ljcVqso3TAS7R8WJN/WU4i79yxzyuw53624sbABV/FsTF8nRVQ8YN34=3D =3D0Prd -----END PGP SIGNATURE-----