Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B51401809D for ; Sat, 2 Jan 2016 20:42:06 +0000 (UTC) Received: (qmail 80295 invoked by uid 500); 2 Jan 2016 20:42:06 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 80255 invoked by uid 500); 2 Jan 2016 20:42:06 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 80245 invoked by uid 99); 2 Jan 2016 20:42:06 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jan 2016 20:42:06 +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 8EC0B1A0B73 for ; Sat, 2 Jan 2016 20:42:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 5.596 X-Spam-Level: ***** X-Spam-Status: No, score=5.596 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, MANY_SPAN_IN_TEXT=2.696, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 I09W7eh34h8Q for ; Sat, 2 Jan 2016 20:41:57 +0000 (UTC) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 3A097201E9 for ; Sat, 2 Jan 2016 20:41:57 +0000 (UTC) Received: by mail-wm0-f46.google.com with SMTP id f206so135801159wmf.0 for ; Sat, 02 Jan 2016 12:41:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=i9n0m+qqKC01sgoI6BYQ3JJbdWpQcmIGsIqJejYyIqk=; b=PZye6U57TB1CcttxhJPwTsgKhdBq2joLASr+a1G5VJasDpdQaJ6AfLSU1mpc14ndbY o9RYqXXn2KowkOEnrSc+/fm+QfQRqEIk0+EBs5de+ESzOszvgI+55Am5dvXVMBqhI7NR ogasLp8VftJ0V7tqAP4yga/Rh9GmBrbbCtBWoS7ZHm5J6ZBXVZrmdqc8324nPzHHQ/0s rwQ+Gk4Ll50cVhH4LHQI6A9DOGmVgxnqSoKGMVsa9ndPoAK1RWF+OmZDG4apI6ruOeU8 E7HxvQmvrjL7woeVQKgvYaKJ3U5jA0tJAZpVa5EAji4uiI7kRNvqIG4CYwpHZ0zGfFPY LLWA== X-Received: by 10.194.79.227 with SMTP id m3mr86882755wjx.5.1451767316962; Sat, 02 Jan 2016 12:41:56 -0800 (PST) Received: from [192.168.0.6] (80-44-133-150.dynamic.dsl.as9105.com. [80.44.133.150]) by smtp.gmail.com with ESMTPSA id i3sm34498160wja.47.2016.01.02.12.41.54 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 02 Jan 2016 12:41:55 -0800 (PST) From: Daniel McGreal Content-Type: multipart/alternative; boundary="Apple-Mail=_B77B9E46-79ED-460D-A174-9A91B2266CCC" Message-Id: <48E52CDC-07C6-4310-B4FD-4C132ACE3540@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: Servicemix elasticsearch bundle 2.x Date: Sat, 2 Jan 2016 20:41:54 +0000 References: <223AC02E-1A1B-40CE-B3C5-0777F920925D@gmail.com> To: user@karaf.apache.org In-Reply-To: <223AC02E-1A1B-40CE-B3C5-0777F920925D@gmail.com> X-Mailer: Apple Mail (2.3112) --Apple-Mail=_B77B9E46-79ED-460D-A174-9A91B2266CCC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 PS I=92ve been using the following org.apache.felix maven-bundle-plugin = ${project.artifactId} = org.elasticsearch.*;version=3D${pkgVersion};-split-package= :=3Dmerge-first com.google.common.*, com.twitter.jsr166e, com.tdunning.math.stats, org.jboss.netty.*, com.carrotsearch.hppc.*, com.fasterxml.jackson.core.*, = com.fasterxml.jackson.dataformat.smile.*, *;resolution:=3Doptional = org.joda.time.*;-split-package:=3Dmerge-first, = org.apache.lucene.*;-split-package:=3Dmerge-first, = META-INF.services;-split-package:=3Dmerge-first, config > On 2 Jan 2016, at 20:38, Daniel McGreal wrote: >=20 > Hi again, > JB, I think you need to include org.joda.* packages in SM=92s ES 2.x = bundles (as per 1.x bundles) because they do crazy shit like put their = own StrictISODateTimeFormat in org.joda.time.format. > Dan. >=20 >> On 9 Dec 2015, at 07:02, Daniel McGreal > wrote: >>=20 >> Hi Jens, >>=20 >> I don=92t know about that SM bundle, (except that I thought when I = used it that it did bundle Joda - is Joda missing for previous versions) = but from an ES perspective, they official jars bundle selected Joda = classes (split packages). Presumably this is because they=92ve been = modified and ES might not work if paired with only the official Joda = release classes.=20 >>=20 >> Dan. >>=20 >>> On 9 Dec 2015, at 06:03, Jens J Parappallil = > = wrote: >>>=20 >>> Hi JB, >>>=20 >>> The elasticsearch jar has org.joda.time package bundled along with = it but the servicemix bundles in the repository has this package missing = . This is causing ClassNotFound errors. I don=92t think including this = package in the es bundle will fix the issue =85 >>> Is there a workaround for this situation or should I go the path of = creating custom bundles for elasticsearch and joda ? >>>=20 >>>=20 >>> Caused by: java.lang.ClassNotFoundException: = org.joda.time.format.StrictISODateTimeFormat not found by joda-time [65] >>> at = org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegatio= n(BundleWiringImpl.java:1574) >>> at = org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.ja= va:79) >>> at = org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(Bu= ndleWiringImpl.java:2018) >>> at = java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_80] >>> at = org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWir= ingImpl.java:1415) >>> at = org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl= .java:1595) >>> at = org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegatio= n(BundleWiringImpl.java:1525) >>> at = org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.ja= va:79) >>> at = org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(Bu= ndleWiringImpl.java:2018) >>>=20 >>> Thanks >>> Jens >>>=20 >>>=20 >>> DISCLAIMER: "The information in this e-mail and any attachment is = intended only for the person to whom it is addressed and may contain = confidential and/or privileged material. If you have received this = e-mail in error, kindly contact the sender and destroy all copies of the = original communication. IBS makes no warranty, express or implied, nor = guarantees the accuracy, adequacy or completeness of the information = contained in this email or any attachment and is not liable for any = errors, defects, omissions, viruses or for resultant loss or damage, if = any, direct or indirect." >>=20 >=20 --Apple-Mail=_B77B9E46-79ED-460D-A174-9A91B2266CCC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 PS I=92ve been using the following

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
= <configuration>
= <instructions>
= <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
= <Export-Package>org.elasticsearch.*;version=3D${pkgVersion};-split-p= ackage:=3Dmerge-first</Export-Package>
= <Import-Package> <!-- Only the below = have been investigated from functionality used by Pulse 
= prototype, i.e. don't expect all of ES to work! = -->
= com.google.common.*,
= com.twitter.jsr166e,
= com.tdunning.math.stats,
= org.jboss.netty.*,
= com.carrotsearch.hppc.*,
= com.fasterxml.jackson.core.*,
= com.fasterxml.jackson.dataformat.smile.*,
= *;resolution:=3Doptional
= </Import-Package>
= <Private-Package>
= org.joda.time.*;-split-package:=3Dmerge-first,
= org.apache.lucene.*;-split-package:=3Dmerge-first,
= META-INF.services;-split-package:=3Dmerge-first, <!-- This might be = OK 
= to be just 'first' as I'm assembling all the = META-INF/servcies from lucene 
myself in = src/main/resources -->
= config
= </Private-Package>
= </instructions>
= </configuration>
</plugin>

On 2 Jan 2016, at 20:38, Daniel McGreal <d.j.mcgreal@gmail.com> wrote:

Hi again,
JB, I think you need to include org.joda.* packages in SM=92s = ES 2.x bundles (as per 1.x bundles) because they do crazy shit like put = their own StrictISODateTimeFormat in = org.joda.time.format.
Dan.

On 9 Dec 2015, at 07:02, Daniel McGreal <d.j.mcgreal@gmail.com> wrote:

Hi Jens,

I don=92t know about = that SM bundle, (except that I thought when I used it that it did bundle = Joda - is Joda missing for previous versions) but from an ES = perspective, they official jars bundle selected Joda classes (split = packages). Presumably this is because they=92ve been modified and ES = might not work if paired with only the official Joda release = classes. 

Dan.

On 9 Dec = 2015, at 06:03, Jens J Parappallil <jens.parappallil@ibsplc.com> wrote:

Hi JB,

The elasticsearch jar has org.joda.time package bundled = along with it but the servicemix bundles in the repository has this = package missing . This is causing ClassNotFound errors. I don=92t think = including this package in the es bundle will fix the issue =85
Is there a workaround for this situation or should I go = the path of creating custom bundles for elasticsearch and joda ?


Caused by: java.lang.ClassNotFoundException: = org.joda.time.format.StrictISODateTimeFormat not found by joda-time = [65]
        at = org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegatio= n(BundleWiringImpl.java:1574)
        at = org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.ja= va:79)
        at = org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(Bu= ndleWiringImpl.java:2018)
        at = java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_80]
        at = org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWir= ingImpl.java:1415)
        at = org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl= .java:1595)
        at = org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegatio= n(BundleWiringImpl.java:1525)
        at = org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.ja= va:79)
        at = org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(Bu= ndleWiringImpl.java:2018)

Thanks
Jens


DISCLAIMER: "The information in this e-mail and any attachment is = intended only for the person to whom it is addressed and may contain = confidential and/or privileged material. If you have received this = e-mail in error, kindly contact the sender and destroy all copies of the original = communication. IBS makes no warranty, express or implied, nor guarantees = the accuracy, adequacy or completeness of the information contained in = this email or any attachment and is not liable for any errors, defects, omissions, viruses or for resultant = loss or damage, if any, direct or indirect."



= --Apple-Mail=_B77B9E46-79ED-460D-A174-9A91B2266CCC--