From user-return-19535-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Sat Nov 3 06:33:15 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 6EA5518066B for ; Sat, 3 Nov 2018 06:33:14 +0100 (CET) Received: (qmail 79634 invoked by uid 500); 3 Nov 2018 05:33:12 -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 79624 invoked by uid 99); 3 Nov 2018 05:33:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Nov 2018 05:33:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 2B0F1180D03 for ; Sat, 3 Nov 2018 05:33:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.113 X-Spam-Level: ** X-Spam-Status: No, score=2.113 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_LOW=-0.7, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id roi_DWZMe3yd for ; Sat, 3 Nov 2018 05:33:10 +0000 (UTC) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B98515F324 for ; Sat, 3 Nov 2018 05:33:09 +0000 (UTC) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.109] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 58A8B20003 for ; Sat, 3 Nov 2018 05:33:02 +0000 (UTC) Subject: Re: Karaf doesn't like Camel package with apache.commons.dbcp2 To: user@karaf.apache.org References: <3ecef052-3d41-890e-c84d-4a653034acc8@openobject.fr> <2089913892.326496.1540489088686@mail.yahoo.com> <168042f8-8369-4203-a9a9-50cff62f2200@nanthrax.net> <964171658.409472.1540496224840@mail.yahoo.com> <1f2ada42-2bc4-1e02-404e-2cbd8deb9c78@openobject.fr> <938b9b8a-b5df-27ea-6954-9030d5b57328@nanthrax.net> <1541089155947-0.post@n3.nabble.com> <22d78a8e-ed52-4aad-bb27-a48bde418d9f@nanthrax.net> <143758929.1390437.1541092447218@mail.yahoo.com> <940cf685-c852-f2d1-0e88-a229adcc7b32@nanthrax.net> <1404185369.104014.1541164154574@mail.yahoo.com> <1817811025.128335.1541166514262@mail.yahoo.com> <7bc58744-1a44-4ed6-acfd-0e42a94251cd@nanthrax.net> <166725357.145833.1541168923734@mail.yahoo.com> <1221792324.166055.1541170579759@mail.yahoo.com> <1525820974.337462.1541189099732@mail.yahoo.com> From: =?UTF-8?Q?Jean-Baptiste_Onofr=c3=a9?= Message-ID: <36e39b5b-8df2-bda4-d1e7-b6df472714e6@nanthrax.net> Date: Sat, 3 Nov 2018 06:33:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1525820974.337462.1541189099732@mail.yahoo.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Can you share your project with me ? Regards JB On 02/11/2018 21:04, John F. Berry wrote: > I didn't get any further with dbcp 1.4 than dpcp2 2.x.. Should I put it > back? > > On Friday, November 2, 2018, 10:56:19 AM EDT, John F. Berry > wrote: > > > EDM base64 HL7 documents to PeopleSoft (112) > -------------------------------------------- > Bnd-LastModified = 1541169518718 > Build-Jdk = 10.0.1 > Built-By = jberry > Created-By = Apache Maven Bundle Plugin > Manifest-Version = 1.0 > Tool = Bnd-3.5.0.201709291849 > > Bundle-Activator = org.ZZZ.camel.Activator > Bundle-ManifestVersion = 2 > Bundle-Name = EDM base64 HL7 documents to PeopleSoft > Bundle-SymbolicName = EDMtoPSoft-java > Bundle-Version = 1.0.0 > > Require-Capability = >         osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.8)) > > Export-Package = >         > org.ZZZ.camel;uses:="org.apache.camel.builder,org.osgi.framework";version=1.0.0 > Import-Package = >         ca.uhn.hl7v2.model, >         ca.uhn.hl7v2.util, >         javax.sql, >         org.apache.camel;version="[2.22,3)", >         org.apache.camel.builder;version="[2.22,3)", >         org.apache.camel.component.sql;version="[2.21,3)", >         org.apache.camel.impl;version="[2.22,3)", >         org.apache.camel.main;version="[2.22,3)", >         org.apache.camel.model;version="[2.22,3)", >         org.apache.commons.dbcp;version="[1.4,2)", >         org.osgi.framework;version="[1.6,2)" > > I did pull out dbcp2 and placed in dbcp 1.4 > Package still works in maven under that version. > > > > > > On Friday, November 2, 2018, 10:37:20 AM EDT, Jean-Baptiste Onofré > > wrote: > > > > > > Can you send the output of bundle:headers for your bundle ? > > > Regards > > JB > > Le 2 nov. 2018, à 15:29, "John F. Berry" > a écrit: >>   >>   >> >> >>  I did expand the version range in the Manifest file.  I also have > this bundle installed in Karaf: >> >>   >>   >> >>  92 | Active    |  80 | 2.5.0              | Apache Commons Pool >> >> >>   >> >> >>   >> >> >> >>   >>   >>  On Friday, November 2, 2018, 10:00:47 AM EDT, Jean-Baptiste Onofré > > wrote: >> >>   >> >> >>   >> >> >>   >>   >>   >>  Same issue, your bundle still expect dbcp2 2.5. so you have to > install this bundle version or even better expand the version range. >> >> >> >>  Regards >> >> >>  JB >> >>  Le 2 nov. 2018, à 14:49, "John F. Berry" < bohnjerry@yahoo.com > > a écrit: >>>           >>> >>> I was thinking perhaps I should just use another "package" that would > still accommodate MSSQL calls so I could get by this issue.  >>> >>> Still not there.  Blew away Karaf data folder again (to eliminate my > thrashing of configuration) >>> >>> karaf@root ()> feature:repo-add camel >>> Adding feature url > mvn:org.apache.camel.karaf/apache-camel/RELEASE/xml/features >>> karaf@root ()> feature:install camel >>> karaf@root ()> feature:install camel-hl7 >>> karaf@root ()> feature:install camel-core >>> karaf@root ()> feature:install camel-sql >>> karaf@root ()> feature:install pax-jdbc-pool-dbcp2 >>> karaf@root ()> install -s > mvn:org.ZZZ.camel/EDMtoPSoft-java/1.0.0Bundle ID: 97 >>> >>> Error executing command: Error installing bundles: >>> >>>         Unable to start bundle > mvn:org.ZZZ.camel/EDMtoPSoft-java/1.0.0: > org.osgi.framework.BundleException: Unable to resolve EDMtoPSoft-java > [97](R 97.0): missing rea [97](R 97.0)] osgi.wiring.package; > (&(osgi.wiring.package=org.apache.commons.dbcp2)(version>=2.5.0)(!(version>=3.0.0))) > Unresolved requirements: [[EDMtoPSoft-java [97](R > 97.(&(osgi.wiring.package=org.apache.commons.dbcp2)(version>=2.5.0)(!(version>=3.0.0)))]karaf@root > ()> >>> My manifest file looks like this: >>> >>> Manifest-Version: 1.0 >>> Bnd-LastModified: 1541165408198 >>> Build-Jdk: 10.0.1 >>> Built-By: jberry >>> Bundle-Activator: org.ZZZ.camel.Activator >>> Bundle-ManifestVersion: 2 >>> Bundle-Name: EDM base64 HL7 documents to PeopleSoft >>> Bundle-SymbolicName: EDMtoPSoft-java >>> Bundle-Version: 1.0.0 >>> Created-By: Apache Maven Bundle Plugin >>> Export-Package: org.ZZZ.camel;version="1.0.0";uses:="org.apache >>>  .camel.builder,org.osgi.framework" >>> Import-Package: ca.uhn.hl7v2.model,ca.uhn.hl7v2.util,javax.sql,org.apach >>>  e.camel;version="[2.22,3)",org.apache.camel.builder;version="[2.22,3)", >>>  org.apache.camel.component.sql;version="[2.21,3)",org.apache.camel.impl >>>  ;version="[2.22,3)",org.apache.camel.main;version="[2.22,3)",org.apache >>>  .camel.model;version="[2.22,3)",org.apache.commons.dbcp2;version="[2, >>>  3)",org.osgi.framework;version="[1.6,2)" >>> Require-Capability: osgi.ee;filter:="(&( osgi.ee=JavaSE)(version=1.8))" >>> Tool: Bnd-3.5.0.201709291849 >>> >>> >>> >>> >>> On ‎Friday‎, ‎November‎ ‎2‎, ‎2018‎ ‎09‎:‎16‎:‎25‎ ‎AM‎ ‎EDT, > Jean-Baptiste Onofré > wrote: >>> >>> >>> >>> >>> >>> Hi John, >>> >>> OK I think I narrowed your issue. >>> >>> The pax-jdbc-pool-dbcp2 feature installs Commons DBCP 2.1.1 bundle. >>> >>> However, your bundle seems to require at least DBCP 2.5. >>> >>> So, I would propose to change your bundle headers to extend the range >>> (something like [2,3)). >>> >>> It's a bit surprising that your bundle directly depend on DBCP. It >>> should use a datasource service. >>> >>> Regards >>> JB >>> >>> On 02/11/2018 14:09, John F. Berry wrote: >>> >>> >>>   >>>>  Thanks JB for your patience, >>>> >>>> OK.. what didn't I do about that from that list I did below.. Do I > need to follow up with another command than "feature:install > pax-jdbc-pool-dbcp2"? >>>> >>>> >>>> On ‎Friday‎, ‎November‎ ‎2‎, ‎2018‎ ‎04‎:‎36‎:‎11‎ ‎AM‎ ‎EDT, > Jean-Baptiste Onofré > wrote: >>>> >>>> >>>> Hi John, >>>> >>>> You have to install the pax-jdbc-pool-dbcp2 feature. It should install >>>> the dbcp bundle for you. >>>> >>>> I just have to check the version. >>>> >>>> Regards >>>> JB >>>> >>>> On 01/11/2018 18:14, John F. Berry wrote: >>>> >>>>>  Thank you. >>>>> Installed the jdbc feature via the command >>>>> feature:install jdbc >>>>> Still getting the exact same error. >>>>> >>>>> On ‎Thursday‎, ‎November‎ ‎1‎, ‎2018‎ ‎12‎:‎44‎:‎34‎ ‎PM‎ ‎EDT, >>>>> Jean-Baptiste Onofré > wrote: >>>>> >>>>> >>>>> You need the dbcp bundle. You can install via jdbc feature. >>>>> >>>>> Regards >>>>> JB >>>>> Le 1 nov. 2018, à 20:19, bohnjerry >>>>> >> a écrit: >>>>> >>>>>       OK.. I've blown away my data folder again.. and the latest > "rebuild" went >>>>>       like this: >>>>> >>>>>       feature:repo-add camel >>>>>       feature:install camel >>>>>       feature:install camel-core >>>>>       feature:install camel-hl7 >>>>>       feature:install camel-sql >>>>>       feature:install pax-jdbc-pool-dbcp2 >>>>> >>>>>       then >>>>> >>>>>       install -s mvn:org.ZZZ.camel/EDMtoPspft-java/1.0.0 >>>>> >>>>>       and now I'm getting: >>>>> >>>>>       Unable to start bundle mvn:org.ZZZ.camel/EDMtoPsoft-java/1.0.0: >>>>>       org.osgi.framework.BundleException: Unable to resolve > EDMtoPSoft-java [87](R >>>>>       87.0): missing requirement [EDMtoPSoft-java [87](R 87.0)] >>>>>       osgi.wiring.package; >>>>>       > (&(osgi.wiring.package=org.apache.commons.dbcp2)(version>=2.5.0)(!(version>=3.0.0))) > >>>>>       Unresolved requirements: [[EDMtoPSoft-java [87](R 87.0)] >>>>>       > osgi.wiring.package;(&(osgi.wiring.package=org.apache.commons.dbcp2)(version>=2.5.0)(!(version>=3.0.0)))] > >>>>> >>>>>       Did I miss a step? >>>>> >>>>> >>>>> >>>>> >>>>>       -- >>>>>       Sent from: > http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html >>>>> >>>> >>>> >>>>>   >>>>> >>>> >>>> >>> >>> >> >> >> >> >> >> -- Jean-Baptiste Onofré jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com