You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by bohnjerry <bo...@yahoo.com> on 2018/10/24 17:37:40 UTC

Karaf doesn't like Camel package with apache.commons.dbcp2

I am trying to install a maven Camel project and I get this error:
Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing
requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
osgi.wiring.package;
(&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
Unresolved requirements:

I've tried to install every package and feature even remotely related (that
I could find).. still no dice. 
Ideas?




--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Francois Papon <fr...@openobject.fr>.
Weird,

It should work because the javax.transaction.xa package is provided by
the geronimo-jta_1.1_spec bundle.

Could you share your project or send me in private ? I could test in local.

regards,

François Papon
fpapon@apache.org

Le 24/10/2018 à 22:40, John F. Berry a écrit :
> 79 | Installed |  80 | 2.5.0              | Apache Commons DBCP


Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by "John F. Berry" <bo...@yahoo.com>.
 Thanks François for your help!

Karaf 4.2.1
karaf@root()> list
START LEVEL 100 , List Threshold: 50
ID | State     | Lvl | Version            | Name
---+-----------+-----+--------------------+----------------------------------------------------------------------------------------------
23 | Active    |  80 | 4.2.1              | Apache Karaf :: OSGi Services :: Event
51 | Active    |  50 | 2.22.1             | camel-blueprint
52 | Active    |  80 | 2.22.1             | camel-commands-core
53 | Active    |  50 | 2.22.1             | camel-core
54 | Active    |  80 | 2.22.1             | camel-karaf-commands
65 | Active    |  50 | 2.22.1             | camel-stream
74 | Installed |  80 | 1.0.0              | EDM base64 HL7 documents to PeopleSoft
77 | Resolved  |  80 | 2.3.0              | HAPI - Java HL7 API - OSGI Bundle
78 | Installed |  80 | 2.21.1             | camel-sql
79 | Installed |  80 | 2.5.0              | Apache Commons DBCP
80 | Active    |  80 | 0.0.0              | example.xml
81 | Active    |  50 | 2.22.1             | camel-sql
82 | Active    |  50 | 1.1.1              | geronimo-jta_1.1_spec
94 | Active    |  80 | 1.0.0.201505202023 | org.osgi:org.osgi.service.jdbc
95 | Active    |  80 | 1.3.172            | H2 Database Engine
96 | Active    |  80 | 1.3.0              | OPS4J Pax JDBC jTDS Driver Adapter
97 | Active    |  80 | 0                  | wrap_file__C__Users_jberry_.m2_repository_net_sourceforge_jtds_jtds_1.3.1_jtds-1.3.1.jar
karaf@root()>

    On Wednesday, October 24, 2018, 1:47:05 PM EDT, Francois Papon <fr...@openobject.fr> wrote:  
 
 Hi,

Which version of Karaf are you using ?

Can you paste "list" command ?

regards,

François Papon
fpapon@apache.org

Le 24/10/2018 à 21:37, bohnjerry a écrit :
> I am trying to install a maven Camel project and I get this error:
> Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing
> requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
> osgi.wiring.package;
> (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
> Unresolved requirements:
>
> I've tried to install every package and feature even remotely related (that
> I could find).. still no dice. 
> Ideas?
>
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

  

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Francois Papon <fr...@openobject.fr>.
Hi,

Which version of Karaf are you using ?

Can you paste "list" command ?

regards,

François Papon
fpapon@apache.org

Le 24/10/2018 à 21:37, bohnjerry a écrit :
> I am trying to install a maven Camel project and I get this error:
> Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing
> requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
> osgi.wiring.package;
> (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
> Unresolved requirements:
>
> I've tried to install every package and feature even remotely related (that
> I could find).. still no dice. 
> Ideas?
>
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html


Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Afair we have an example in the distro. Let me check.

Regards
JB

Le 25 oct. 2018 à 21:49, à 21:49, Francois Papon <fr...@openobject.fr> a écrit:
>I think you have a parent dependencies to camel in your pom.xml
>
>But you are mixing Camel application and Karaf.
>
>There is some easy way to deal with Camel in Karaf like using
>blueprint.
>
>I can send you an example ;)
>
>regards,
>
>François Papon
>fpapon@apache.org
>
>Le 25/10/2018 à 21:38, John F. Berry a écrit :
>> but my POM references 2.21.1 (i thought)
>>      <groupId>org.apache.camel</groupId>
>>      <artifactId>camel-mllp</artifactId>
>>      <version>2.21.1</version>
>>     </dependency>
>>
>>     <!-- Project stuff -->
>>     <dependency>
>>      <groupId>org.apache.camel</groupId>
>>      <artifactId>camel-hl7</artifactId>
>>      <version>2.21.1</version>
>>     </dependency>
>>
>>     <dependency>
>>      <groupId>org.apache.camel</groupId>
>>      <artifactId>camel-netty4</artifactId>
>>      <version>2.21.1</version>
>>     </dependency>
>>
>>     <dependency>
>>     <groupId>org.apache.camel</groupId>
>>     <artifactId>camel-base64</artifactId>
>>     <version>2.21.1</version>
>>     </dependency>
>>
>> my camel-core doesn't have a version on it... Should I declare 2.21.1
>?
>>
>>
>>     <dependency>
>>       <groupId>org.apache.camel</groupId>
>>       <artifactId>camel-core</artifactId>
>>     </dependency>
>>     <dependency>
>>       <groupId>org.apache.camel</groupId>
>>       <artifactId>camel-blueprint</artifactId>
>>     </dependency>
>>
>>
>>
>> On Thursday, October 25, 2018, 1:06:07 PM EDT, Francois Papon
>> <fr...@openobject.fr> wrote:
>>
>>
>> Your projectEDMtoPSoft-java  required camel version >= 2.22.0 and you
>> added the 2.21.1
>>
>> If you don't add the version it will install the latest :
>>
>> "feature:repo-add camel"
>>
>> regards,
>>
>> François Papon
>> fpapon@apache.org <ma...@apache.org>
>> Le 25/10/2018 à 20:32, John F. Berry a écrit :
>> I couldn't install camel-hl7 until I performed a "install:repo-add
>> camel 2.21.1"
>> then I installed:
>> camel-core
>> camel-hl7
>> camel-blueprint
>>
>> but now Karaf complains now when I install my package that it's
>> missing camel:
>> org.osgi.framework.BundleException: Unable to resolve EDMtoPSoft-java
>> [45](R 45.0): missing requirement [EDMtoPSoft-java [45](R 45.0)]
>> osgi.wiring.package;
>>
>(&(osgi.wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))
>> Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)]
>> osgi.wiring.package; (&(osgi
>>
>.wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))]
>>
>>
>> On Thursday, October 25, 2018, 10:07:41 AM EDT, Francois Papon
>> <fr...@openobject.fr> <ma...@openobject.fr>
>> wrote:
>>
>>
>> Yes, you have to install camel features :
>>
>> karaf@root()> feature:install camel-hl7
>>
>> regards,
>>
>> François Papon
>> fpapon@apache.org <ma...@apache.org>
>> Le 25/10/2018 à 18:01, John F. Berry a écrit :
>> Thanks..
>> I moved the data folder off (just for reference) and created a new
>> data folder.
>> I now have no bundles (well besides the default one)..
>> karaf@root()> bundle:list
>> START LEVEL 100 , List Threshold: 50
>> ID | State  | Lvl | Version | Name
>>
>---+--------+-----+---------+------------------------------------------
>> 23 | Active |  80 | 4.2.1   | Apache Karaf :: OSGi Services :: Event
>>
>> Now I'm back to missing a reference to ca.uhn.hl7v2 which earlier in
>> this thread I was instructed to install the bundle for.  Should I be
>> installing a feature?
>>
>> Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)]
>> osgi.wiring.package; (osgi.wiring.package=ca.uhn.hl7v2.model)
>>
>> On Thursday, October 25, 2018, 9:48:40 AM EDT, Francois Papon
>> <fr...@openobject.fr> <ma...@openobject.fr>
>> wrote:
>>
>>
>> I think it's better to remove the "data" directory and re-install
>your
>> project ;)
>>
>> regards,
>>
>> François Papon
>> fpapon@apache.org <ma...@apache.org>
>> Le 25/10/2018 à 17:34, John F. Berry a écrit :
>> Thank you Francois,
>> Here is the result of installing (-v switch):
>>
>> karaf@root()> feature:install -v pax-jdbc-pool-dbcp2
>> Adding features: pax-jdbc-pool-dbcp2/[1.3.0,1.3.0]
>> Changes to perform:
>>   Region: root
>>     Bundles to install:
>>       mvn:org.apache.commons/commons-dbcp2/2.1.1
>>       mvn:org.apache.commons/commons-pool2/2.5.0
>>      
>>
>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
>> Stopping bundles:
>>   org.apache.camel.karaf.camel-karaf-commands/2.22.1
>>   org.apache.camel.camel-commands-core/2.22.1
>>   org.apache.camel.camel-sql/2.22.1
>>   org.apache.camel.camel-stream/2.22.1
>>   org.apache.camel.camel-blueprint/2.22.1
>>   org.apache.camel.camel-core/2.22.1
>>   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>>   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>>   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>>   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>>  
>org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>>   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>>   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>>   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>> Installing bundles:
>>   mvn:org.apache.commons/commons-dbcp2/2.1.1
>>   mvn:org.apache.commons/commons-pool2/2.5.0
>>  
>>
>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>>   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>>   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
>> Refreshing bundles:
>>     org.apache.camel.camel-blueprint/2.22.1 (Wired to
>> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>>     org.apache.camel.camel-commands-core/2.22.1 (Wired to
>> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>>     org.apache.camel.camel-core/2.22.1 (Wired to
>> org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is
>being
>> refreshed)
>>     org.apache.camel.camel-sql/2.22.1 (Wired to
>> org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is
>being
>> refreshed)
>>     org.apache.camel.camel-stream/2.22.1 (Wired to
>> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>>     org.apache.camel.karaf.camel-karaf-commands/2.22.1 (Wired to
>> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>>     org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 (Should
>> be wired to: org.apache.commons.pool2/2.5.0 (through
>> [org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1]
>> osgi.wiring.package
>> ; resolution:=optional;
>>
>filter:="(&(osgi.wiring.package=org.apache.commons.pool2)(version>=2.4.0)(!(version>=3.0.0)))"))
>>     org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1 (Wired
>> to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is
>> being refreshed)
>>     org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>> (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>> which is being refreshed)
>>    
>> org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>> (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>> which is being refreshed)
>>     org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 (Should
>> be wired to: org.apache.servicemix.bundles.cglib/3.2.4.1 (through
>> [org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1] osgi
>> .wiring.package; resolution:=optional;
>>
>filter:="(&(osgi.wiring.package=net.sf.cglib.beans)(version>=3.0.0)(!(version>=4.0.0)))"))
>>     org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>> (Wired to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>> which is being refreshed)
>>     org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1 (Wired
>> to org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 which
>> is being refreshed)
>>     org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 (Wired to
>> org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is
>> being refreshed)
>> Starting bundles:
>>   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>>   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>>   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>>   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>>   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>>   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>>   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>>  
>org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>>   org.apache.camel.camel-core/2.22.1
>>   org.apache.camel.camel-blueprint/2.22.1
>>   org.apache.camel.camel-stream/2.22.1
>>   org.apache.camel.camel-sql/2.22.1
>>   org.apache.servicemix.bundles.cglib/3.2.4.1
>>   org.apache.commons.pool2/2.5.0
>>   org.apache.commons.dbcp2/2.1.1
>>   org.ops4j.pax.jdbc.pool.common/1.3.0
>>   org.ops4j.pax.jdbc.pool.dbcp2/1.3.0
>>   org.apache.camel.camel-commands-core/2.22.1
>>   org.apache.camel.karaf.camel-karaf-commands/2.22.1
>> Done.
>>
>> I am still getting a missing requirement, caused by Unable to resolve
>> org.apache.commons.commons-dbcp2 [79]
>> Should I uninstall the bundle since I installed the feature?
>> Thanks
>>
>> On Thursday, October 25, 2018, 9:26:25 AM EDT, Francois Papon
>> <fr...@openobject.fr> <ma...@openobject.fr>
>> wrote:
>>
>>
>> Hi,
>>
>> You can install this feature :
>>
>> pax-jdbc-pool-dbcp2
>>
>> regards,
>>
>> François Papon
>> fpapon@apache.org <ma...@apache.org>
>> Le 25/10/2018 à 17:18, John F. Berry a écrit :
>> Thanks for the help Jean-Baptiste, I've been learning so much through
>> this process.
>> On which feature do you want me to "install -v" on?   The pax=jdbc*
>? 
>> I did those below, just in case.
>> Here are my installed features:
>>
>> karaf@root(feature)> feature:list -i
>> Name            | Version         | Required | State   |
>> Repository               | Description
>>
>----------------+-----------------+----------+---------+--------------------------+--------------------------------------------------
>> pax-jdbc-spec   | 1.3.0           |          | Started |
>> org.ops4j.pax.jdbc-1.3.0 | Provides OSGi JDBC Service spec
>> pax-jdbc-jtds   | 1.3.0           | x        | Started |
>> org.ops4j.pax.jdbc-1.3.0 | Provides JDBC jTDS DataSourceFactory
>> xml-specs-api   | 2.9.0           |          | Started |
>> camel-2.21.1             |
>> aries-proxy     | 4.2.1           |          | Started |
>> standard-4.2.1           | Aries Proxy
>> aries-blueprint | 4.2.1           | x        | Started |
>> standard-4.2.1           | Aries Blueprint
>> feature         | 4.2.1           | x        | Started |
>> standard-4.2.1           | Features Support
>> shell           | 4.2.1           | x        | Started |
>> standard-4.2.1           | Karaf Shell
>> deployer        | 4.2.1           | x        | Started |
>> standard-4.2.1           | Karaf Deployer
>> wrapper         | 4.2.1           |          | Started |
>> standard-4.2.1           | Provide OS integration
>> service-wrapper | 4.2.1           | x        | Started |
>> standard-4.2.1           | Provide OS integration (alias to wrapper
>> feature)
>> bundle          | 4.2.1           | x        | Started |
>> standard-4.2.1           | Provide Bundle support
>> config          | 4.2.1           | x        | Started |
>> standard-4.2.1           | Provide OSGi ConfigAdmin support
>> diagnostic      | 4.2.1           | x        | Started |
>> standard-4.2.1           | Provide Diagnostic support
>> instance        | 4.2.1           | x        | Started |
>> standard-4.2.1           | Provide Instance support
>> jaas            | 4.2.1           | x        | Started |
>> standard-4.2.1           | Provide JAAS support
>> log             | 4.2.1           | x        | Started |
>> standard-4.2.1           | Provide Log support
>> package         | 4.2.1           | x        | Started |
>> standard-4.2.1           | Package commands and mbeans
>> service         | 4.2.1           | x        | Started |
>> standard-4.2.1           | Provide Service support
>> system          | 4.2.1           | x        | Started |
>> standard-4.2.1           | Provide System support
>> kar             | 4.2.1           | x        | Started |
>> standard-4.2.1           | Provide KAR (KARaf archive) support
>> ssh             | 4.2.1           | x        | Started |
>> standard-4.2.1           | Provide a SSHd server on Karaf
>> management      | 4.2.1           | x        | Started |
>> standard-4.2.1           | Provide a JMX MBeanServer and a set of
>> MBeans in
>> eventadmin      | 4.2.1           | x        | Started |
>> standard-4.2.1           | OSGi Event Admin service specification for
>> event-
>> wrap            | 2.5.4           | x        | Started |
>> standard-4.2.1           | Wrap URL handler
>> spring          | 5.0.8.RELEASE_1 |          | Started |
>> spring-4.2.1             | Spring 5.0.x support
>> spring-jdbc     | 5.0.8.RELEASE_1 |          | Started |
>> spring-4.2.1             | Spring 5.0.x JDBC support
>> spring-tx       | 5.0.8.RELEASE_1 |          | Started |
>> spring-4.2.1             | Spring 5.0.x Transaction (TX) support
>> xml-specs-api   | 2.9.0           |          | Started |
>> camel-2.22.1             |
>> camel           | 2.22.1          | x        | Started |
>> camel-2.22.1             |
>> camel-core      | 2.22.1          |          | Started |
>> camel-2.22.1             |
>> camel-blueprint | 2.22.1          | x        | Started |
>> camel-2.22.1             |
>> camel-sql       | 2.22.1          | x        | Started |
>> camel-2.22.1             |
>> camel-stream    | 2.22.1          | x        | Started |
>> camel-2.22.1             |
>> xml-specs-api   | 2.9.0           |          | Started |
>> camel-2.20.0             |
>>
>>
>> karaf@root(feature)> feature:install -v pax-jdbc-spec
>> Adding features: pax-jdbc-spec/[1.3.0,1.3.0]
>> No deployment change.
>> Done.
>> karaf@root(feature)> feature:install -v pax-jdbc-jtds
>> Adding features: pax-jdbc-jtds/[1.3.0,1.3.0]
>> No deployment change.
>> Done.
>> karaf@root(feature)>
>>
>> As for installed bundles, I do have the apache.commons/commons-dbcp2
>> version 2.5.0 installed that matches my commons dependency in my POM
>>
>>     <dependency>
>>     <groupId>org.apache.commons</groupId>
>>     <artifactId>commons-dbcp2</artifactId>
>>     <version>2.5.0</version>
>>     </dependency>
>>
>> Perhaps commons should be installed as a "feature" and not a
>"bundle"?
>> I haven't been able to find a reference as to the name of it.
>>
>> Thanks all!
>>
>>
>> On Thursday, October 25, 2018, 12:20:25 AM EDT, Jean-Baptiste Onofré
>> <jb...@nanthrax.net> <ma...@nanthrax.net> wrote:
>>
>>
>>
>>
>>
>> Hi,
>>
>> you can please try using feature:install -v and send the complete
>output ?
>>
>> Thanks
>> Regards
>> JB
>>
>> On 24/10/2018 19:37, bohnjerry wrote:
>> > I am trying to install a maven Camel project and I get this error:
>> > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0):
>missing
>> > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
>> > osgi.wiring.package;
>> >
>>
>(&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
>> > Unresolved requirements:
>> >
>> > I've tried to install every package and feature even remotely
>> related (that
>> > I could find).. still no dice.
>> > Ideas?
>> >
>> >
>> >
>> >
>> > --
>> > Sent from:
>http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>> >
>>
>>
>>
>>
>>

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Francois Papon <fr...@openobject.fr>.
I think you have a parent dependencies to camel in your pom.xml

But you are mixing Camel application and Karaf.

There is some easy way to deal with Camel in Karaf like using blueprint.

I can send you an example ;)

regards,

François Papon
fpapon@apache.org

Le 25/10/2018 à 21:38, John F. Berry a écrit :
> but my POM references 2.21.1 (i thought)
>      <groupId>org.apache.camel</groupId>
>      <artifactId>camel-mllp</artifactId>
>      <version>2.21.1</version>
>     </dependency>
>
>     <!-- Project stuff -->
>     <dependency>
>      <groupId>org.apache.camel</groupId>
>      <artifactId>camel-hl7</artifactId>
>      <version>2.21.1</version>
>     </dependency>
>
>     <dependency>
>      <groupId>org.apache.camel</groupId>
>      <artifactId>camel-netty4</artifactId>
>      <version>2.21.1</version>
>     </dependency>
>
>     <dependency>
>     <groupId>org.apache.camel</groupId>
>     <artifactId>camel-base64</artifactId>
>     <version>2.21.1</version>
>     </dependency>
>
> my camel-core doesn't have a version on it... Should I declare 2.21.1 ?
>
>
>     <dependency>
>       <groupId>org.apache.camel</groupId>
>       <artifactId>camel-core</artifactId>
>     </dependency>
>     <dependency>
>       <groupId>org.apache.camel</groupId>
>       <artifactId>camel-blueprint</artifactId>
>     </dependency>
>
>
>
> On Thursday, October 25, 2018, 1:06:07 PM EDT, Francois Papon
> <fr...@openobject.fr> wrote:
>
>
> Your projectEDMtoPSoft-java  required camel version >= 2.22.0 and you
> added the 2.21.1
>
> If you don't add the version it will install the latest :
>
> "feature:repo-add camel"
>
> regards,
>
> François Papon
> fpapon@apache.org <ma...@apache.org>
> Le 25/10/2018 à 20:32, John F. Berry a écrit :
> I couldn't install camel-hl7 until I performed a "install:repo-add
> camel 2.21.1"
> then I installed:
> camel-core
> camel-hl7
> camel-blueprint
>
> but now Karaf complains now when I install my package that it's
> missing camel:
> org.osgi.framework.BundleException: Unable to resolve EDMtoPSoft-java
> [45](R 45.0): missing requirement [EDMtoPSoft-java [45](R 45.0)]
> osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))
> Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)]
> osgi.wiring.package; (&(osgi
> .wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))]
>
>
> On Thursday, October 25, 2018, 10:07:41 AM EDT, Francois Papon
> <fr...@openobject.fr> <ma...@openobject.fr>
> wrote:
>
>
> Yes, you have to install camel features :
>
> karaf@root()> feature:install camel-hl7
>
> regards,
>
> François Papon
> fpapon@apache.org <ma...@apache.org>
> Le 25/10/2018 à 18:01, John F. Berry a écrit :
> Thanks..
> I moved the data folder off (just for reference) and created a new
> data folder.
> I now have no bundles (well besides the default one)..
> karaf@root()> bundle:list
> START LEVEL 100 , List Threshold: 50
> ID | State  | Lvl | Version | Name
> ---+--------+-----+---------+------------------------------------------
> 23 | Active |  80 | 4.2.1   | Apache Karaf :: OSGi Services :: Event
>
> Now I'm back to missing a reference to ca.uhn.hl7v2 which earlier in
> this thread I was instructed to install the bundle for.  Should I be
> installing a feature?
>
> Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)]
> osgi.wiring.package; (osgi.wiring.package=ca.uhn.hl7v2.model)
>
> On Thursday, October 25, 2018, 9:48:40 AM EDT, Francois Papon
> <fr...@openobject.fr> <ma...@openobject.fr>
> wrote:
>
>
> I think it's better to remove the "data" directory and re-install your
> project ;)
>
> regards,
>
> François Papon
> fpapon@apache.org <ma...@apache.org>
> Le 25/10/2018 à 17:34, John F. Berry a écrit :
> Thank you Francois,
> Here is the result of installing (-v switch):
>
> karaf@root()> feature:install -v pax-jdbc-pool-dbcp2
> Adding features: pax-jdbc-pool-dbcp2/[1.3.0,1.3.0]
> Changes to perform:
>   Region: root
>     Bundles to install:
>       mvn:org.apache.commons/commons-dbcp2/2.1.1
>       mvn:org.apache.commons/commons-pool2/2.5.0
>      
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
> Stopping bundles:
>   org.apache.camel.karaf.camel-karaf-commands/2.22.1
>   org.apache.camel.camel-commands-core/2.22.1
>   org.apache.camel.camel-sql/2.22.1
>   org.apache.camel.camel-stream/2.22.1
>   org.apache.camel.camel-blueprint/2.22.1
>   org.apache.camel.camel-core/2.22.1
>   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
> Installing bundles:
>   mvn:org.apache.commons/commons-dbcp2/2.1.1
>   mvn:org.apache.commons/commons-pool2/2.5.0
>  
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
> Refreshing bundles:
>     org.apache.camel.camel-blueprint/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.camel.camel-commands-core/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.camel.camel-core/2.22.1 (Wired to
> org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being
> refreshed)
>     org.apache.camel.camel-sql/2.22.1 (Wired to
> org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being
> refreshed)
>     org.apache.camel.camel-stream/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.camel.karaf.camel-karaf-commands/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 (Should
> be wired to: org.apache.commons.pool2/2.5.0 (through
> [org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1]
> osgi.wiring.package
> ; resolution:=optional;
> filter:="(&(osgi.wiring.package=org.apache.commons.pool2)(version>=2.4.0)(!(version>=3.0.0)))"))
>     org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1 (Wired
> to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is
> being refreshed)
>     org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
> (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
> which is being refreshed)
>    
> org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
> (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
> which is being refreshed)
>     org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 (Should
> be wired to: org.apache.servicemix.bundles.cglib/3.2.4.1 (through
> [org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1] osgi
> .wiring.package; resolution:=optional;
> filter:="(&(osgi.wiring.package=net.sf.cglib.beans)(version>=3.0.0)(!(version>=4.0.0)))"))
>     org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
> (Wired to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
> which is being refreshed)
>     org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1 (Wired
> to org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 which
> is being refreshed)
>     org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 (Wired to
> org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is
> being refreshed)
> Starting bundles:
>   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>   org.apache.camel.camel-core/2.22.1
>   org.apache.camel.camel-blueprint/2.22.1
>   org.apache.camel.camel-stream/2.22.1
>   org.apache.camel.camel-sql/2.22.1
>   org.apache.servicemix.bundles.cglib/3.2.4.1
>   org.apache.commons.pool2/2.5.0
>   org.apache.commons.dbcp2/2.1.1
>   org.ops4j.pax.jdbc.pool.common/1.3.0
>   org.ops4j.pax.jdbc.pool.dbcp2/1.3.0
>   org.apache.camel.camel-commands-core/2.22.1
>   org.apache.camel.karaf.camel-karaf-commands/2.22.1
> Done.
>
> I am still getting a missing requirement, caused by Unable to resolve
> org.apache.commons.commons-dbcp2 [79]
> Should I uninstall the bundle since I installed the feature?
> Thanks
>
> On Thursday, October 25, 2018, 9:26:25 AM EDT, Francois Papon
> <fr...@openobject.fr> <ma...@openobject.fr>
> wrote:
>
>
> Hi,
>
> You can install this feature :
>
> pax-jdbc-pool-dbcp2
>
> regards,
>
> François Papon
> fpapon@apache.org <ma...@apache.org>
> Le 25/10/2018 à 17:18, John F. Berry a écrit :
> Thanks for the help Jean-Baptiste, I've been learning so much through
> this process.
> On which feature do you want me to "install -v" on?   The pax=jdbc* ? 
> I did those below, just in case.
> Here are my installed features:
>
> karaf@root(feature)> feature:list -i
> Name            | Version         | Required | State   |
> Repository               | Description
> ----------------+-----------------+----------+---------+--------------------------+--------------------------------------------------
> pax-jdbc-spec   | 1.3.0           |          | Started |
> org.ops4j.pax.jdbc-1.3.0 | Provides OSGi JDBC Service spec
> pax-jdbc-jtds   | 1.3.0           | x        | Started |
> org.ops4j.pax.jdbc-1.3.0 | Provides JDBC jTDS DataSourceFactory
> xml-specs-api   | 2.9.0           |          | Started |
> camel-2.21.1             |
> aries-proxy     | 4.2.1           |          | Started |
> standard-4.2.1           | Aries Proxy
> aries-blueprint | 4.2.1           | x        | Started |
> standard-4.2.1           | Aries Blueprint
> feature         | 4.2.1           | x        | Started |
> standard-4.2.1           | Features Support
> shell           | 4.2.1           | x        | Started |
> standard-4.2.1           | Karaf Shell
> deployer        | 4.2.1           | x        | Started |
> standard-4.2.1           | Karaf Deployer
> wrapper         | 4.2.1           |          | Started |
> standard-4.2.1           | Provide OS integration
> service-wrapper | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide OS integration (alias to wrapper
> feature)
> bundle          | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Bundle support
> config          | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide OSGi ConfigAdmin support
> diagnostic      | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Diagnostic support
> instance        | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Instance support
> jaas            | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide JAAS support
> log             | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Log support
> package         | 4.2.1           | x        | Started |
> standard-4.2.1           | Package commands and mbeans
> service         | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Service support
> system          | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide System support
> kar             | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide KAR (KARaf archive) support
> ssh             | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide a SSHd server on Karaf
> management      | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide a JMX MBeanServer and a set of
> MBeans in
> eventadmin      | 4.2.1           | x        | Started |
> standard-4.2.1           | OSGi Event Admin service specification for
> event-
> wrap            | 2.5.4           | x        | Started |
> standard-4.2.1           | Wrap URL handler
> spring          | 5.0.8.RELEASE_1 |          | Started |
> spring-4.2.1             | Spring 5.0.x support
> spring-jdbc     | 5.0.8.RELEASE_1 |          | Started |
> spring-4.2.1             | Spring 5.0.x JDBC support
> spring-tx       | 5.0.8.RELEASE_1 |          | Started |
> spring-4.2.1             | Spring 5.0.x Transaction (TX) support
> xml-specs-api   | 2.9.0           |          | Started |
> camel-2.22.1             |
> camel           | 2.22.1          | x        | Started |
> camel-2.22.1             |
> camel-core      | 2.22.1          |          | Started |
> camel-2.22.1             |
> camel-blueprint | 2.22.1          | x        | Started |
> camel-2.22.1             |
> camel-sql       | 2.22.1          | x        | Started |
> camel-2.22.1             |
> camel-stream    | 2.22.1          | x        | Started |
> camel-2.22.1             |
> xml-specs-api   | 2.9.0           |          | Started |
> camel-2.20.0             |
>
>
> karaf@root(feature)> feature:install -v pax-jdbc-spec
> Adding features: pax-jdbc-spec/[1.3.0,1.3.0]
> No deployment change.
> Done.
> karaf@root(feature)> feature:install -v pax-jdbc-jtds
> Adding features: pax-jdbc-jtds/[1.3.0,1.3.0]
> No deployment change.
> Done.
> karaf@root(feature)>
>
> As for installed bundles, I do have the apache.commons/commons-dbcp2
> version 2.5.0 installed that matches my commons dependency in my POM
>
>     <dependency>
>     <groupId>org.apache.commons</groupId>
>     <artifactId>commons-dbcp2</artifactId>
>     <version>2.5.0</version>
>     </dependency>
>
> Perhaps commons should be installed as a "feature" and not a "bundle"?
> I haven't been able to find a reference as to the name of it.
>
> Thanks all!
>
>
> On Thursday, October 25, 2018, 12:20:25 AM EDT, Jean-Baptiste Onofré
> <jb...@nanthrax.net> <ma...@nanthrax.net> wrote:
>
>
>
>
>
> Hi,
>
> you can please try using feature:install -v and send the complete output ?
>
> Thanks
> Regards
> JB
>
> On 24/10/2018 19:37, bohnjerry wrote:
> > I am trying to install a maven Camel project and I get this error:
> > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing
> > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
> > osgi.wiring.package;
> >
> (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
> > Unresolved requirements:
> >
> > I've tried to install every package and feature even remotely
> related (that
> > I could find).. still no dice.
> > Ideas?
> >
> >
> >
> >
> > --
> > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> >
>
>
>
>
>


Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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
> <bo...@yahoo.com> 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é
> <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
> 
> 
> 
> 
> 
> Can you send the output of bundle:headers for your bundle ?
> 
> 
> Regards
> 
> JB
> 
> Le 2 nov. 2018, à 15:29, "John F. Berry" <bohnjerry@yahoo.com
> <ma...@yahoo.com>> 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é
> <jb@nanthrax.net <ma...@nanthrax.net>> 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
> <ma...@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 <ma...@root>()> feature:repo-add camel
>>> Adding feature url
> mvn:org.apache.camel.karaf/apache-camel/RELEASE/xml/features
>>> karaf@root <ma...@root>()> feature:install camel
>>> karaf@root <ma...@root>()> feature:install camel-hl7
>>> karaf@root <ma...@root>()> feature:install camel-core
>>> karaf@root <ma...@root>()> feature:install camel-sql
>>> karaf@root <ma...@root>()> feature:install pax-jdbc-pool-dbcp2
>>> karaf@root <ma...@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
> <ma...@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é <jb@nanthrax.net <ma...@nanthrax.net>> 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é <jb@nanthrax.net <ma...@nanthrax.net>> 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é <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>>>>
>>>>>
>>>>> You need the dbcp bundle. You can install via jdbc feature.
>>>>>
>>>>> Regards
>>>>> JB
>>>>> Le 1 nov. 2018, à 20:19, bohnjerry <bohnjerry@yahoo.com
> <ma...@yahoo.com>
>>>>> <mailto:bohnjerry@yahoo.com <ma...@yahoo.com>>> 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

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by "John F. Berry" <bo...@yahoo.com>.
 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 <bo...@yahoo.com> 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é <jb...@nanthrax.net> wrote: 





Can you send the output of bundle:headers for your bundle ?


Regards

JB

Le 2 nov. 2018, à 15:29, "John F. Berry" <bo...@yahoo.com> 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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> wrote: 
>>>> 
>>>> 
>>>> You need the dbcp bundle. You can install via jdbc feature. 
>>>> 
>>>> Regards 
>>>> JB 
>>>> Le 1 nov. 2018, à 20:19, bohnjerry <bohnjerry@yahoo.com 
>>>> <ma...@yahoo.com>> 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 
>>>> 
>>> 
>>> 
>>>>  
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 
> 
> 
> 
>   

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by "John F. Berry" <bo...@yahoo.com>.
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é <jb...@nanthrax.net> wrote: 





Can you send the output of bundle:headers for your bundle ?


Regards

JB

Le 2 nov. 2018, à 15:29, "John F. Berry" <bo...@yahoo.com> 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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> wrote: 
>>>> 
>>>> 
>>>> You need the dbcp bundle. You can install via jdbc feature. 
>>>> 
>>>> Regards 
>>>> JB 
>>>> Le 1 nov. 2018, à 20:19, bohnjerry <bohnjerry@yahoo.com 
>>>> <ma...@yahoo.com>> 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 
>>>> 
>>> 
>>> 
>>>>  
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 
> 
> 
> 
> 

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Can you send the output of bundle:headers for your bundle ?

Regards
JB

Le 2 nov. 2018 à 15:29, à 15:29, "John F. Berry" <bo...@yahoo.com> 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é
><jb...@nanthrax.net> 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
>JBLe 2 nov. 2018, à 14:49, "John F. Berry" <bo...@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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> wrote:
>
>
> You need the dbcp bundle. You can install via jdbc feature.
>
> Regards
> JB
> Le 1 nov. 2018, à 20:19, bohnjerry <bohnjerry@yahoo.com
> <ma...@yahoo.com>> 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
>
> 
>
>
>
> 
>
>
>  

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by "John F. Berry" <bo...@yahoo.com>.
 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é <jb...@nanthrax.net> 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
JBLe 2 nov. 2018, à 14:49, "John F. Berry" <bo...@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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> wrote:


 You need the dbcp bundle. You can install via jdbc feature.

 Regards
 JB
 Le 1 nov. 2018, à 20:19, bohnjerry <bohnjerry@yahoo.com
 <ma...@yahoo.com>> 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

 



 


  

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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, à 14:49, "John F. Berry" <bo...@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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> wrote:
>>>
>>>
>>> You need the dbcp bundle. You can install via jdbc feature.
>>>
>>> Regards
>>> JB
>>> Le 1 nov. 2018, à 20:19, bohnjerry <bohnjerry@yahoo.com
>>> <ma...@yahoo.com>> 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
>> 
>>>
>> 

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by "John F. Berry" <bo...@yahoo.com>.

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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> wrote:
>>
>>
>> You need the dbcp bundle. You can install via jdbc feature.
>>
>> Regards
>> JB
>> Le 1 nov. 2018, à 20:19, bohnjerry <bohnjerry@yahoo.com
>> <ma...@yahoo.com>> 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
> 
>>
> 

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> wrote:
>>
>>
>> You need the dbcp bundle. You can install via jdbc feature.
>>
>> Regards
>> JB
>> Le 1 nov. 2018, à 20:19, bohnjerry <bohnjerry@yahoo.com
>> <ma...@yahoo.com>> 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
> 
>>
> 

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by "John F. Berry" <bo...@yahoo.com>.
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é <jb...@nanthrax.net> 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é <jb...@nanthrax.net> wrote:
> 
> 
> You need the dbcp bundle. You can install via jdbc feature.
> 
> Regards
> JB
> Le 1 nov. 2018, à 20:19, bohnjerry <bohnjerry@yahoo.com
> <ma...@yahoo.com>> 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


Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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é <jb...@nanthrax.net> wrote:
> 
> 
> You need the dbcp bundle. You can install via jdbc feature.
> 
> Regards
> JB
> Le 1 nov. 2018, à 20:19, bohnjerry <bohnjerry@yahoo.com
> <ma...@yahoo.com>> 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

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by "John F. Berry" <bo...@yahoo.com>.
 Thank you.Installed the jdbc feature via the command feature:install jdbcStill getting the exact same error.
    On ‎Thursday‎, ‎November‎ ‎1‎, ‎2018‎ ‎12‎:‎44‎:‎34‎ ‎PM‎ ‎EDT, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:  
 
 You need the dbcp bundle. You can install via jdbc feature.

Regards
JBLe 1 nov. 2018, à 20:19, bohnjerry <bo...@yahoo.com> 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

  

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
You need the dbcp bundle. You can install via jdbc feature.

Regards
JB

Le 1 nov. 2018 à 20:19, à 20:19, bohnjerry <bo...@yahoo.com> 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

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by bohnjerry <bo...@yahoo.com>.
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

unsubscribe

Posted by Jason Pratt <jp...@gmail.com>.
unsubscribe

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
You have one for camel, just do feature:repo-add camel

It's an external features XML provided by Camel.

Anyway, I will merge the camel example, you will have a skeleton.

Regards
JB

On 26/10/2018 05:44, Francois Papon wrote:
> Hi John,
> 
> You can use a feature.xml in your project to easy deploy all require
> dependencies (bundles and/or features).
> 
> When you install your feature in Karaf, it will automatically install
> all the dependencies of your feature.xml.
> 
> It's like the pom.xml but for the deployment.
> 
> You should take a look on the Karaf examples :
> 
> https://github.com/apache/karaf/tree/master/examples
> 
> It will help you to understand how to develop with Karaf.
> 
> regards,
> 
> François Papon
> fpapon@apache.org
> 
> Le 25/10/2018 à 23:37, John F. Berry a écrit :
>> a features.xml for which feature?
>> I don't see one for camel.
>>
>>  Directory of c:\karaf\system\org\apache\karaf\features
>>
>> 10/12/2018  09:50 AM    <DIR>          .
>> 10/12/2018  09:50 AM    <DIR>          ..
>> 10/12/2018  09:50 AM    <DIR>          enterprise
>> 10/12/2018  09:50 AM    <DIR>          framework
>> 10/12/2018  09:50 AM    <DIR>          org.apache.karaf.features.command
>> 10/12/2018  09:50 AM    <DIR>          org.apache.karaf.features.core
>> 10/12/2018  09:50 AM    <DIR>          org.apache.karaf.features.extension
>> 10/12/2018  09:50 AM    <DIR>          spring
>> 10/12/2018  09:50 AM    <DIR>          standard
>>
>>
>>  Directory of c:\karaf\system\org\apache
>>
>> 10/12/2018  09:50 AM    <DIR>          .
>> 10/12/2018  09:50 AM    <DIR>          ..
>> 10/12/2018  09:50 AM    <DIR>          aries
>> 10/12/2018  09:50 AM    <DIR>          felix
>> 10/12/2018  09:50 AM    <DIR>          karaf
>> 10/12/2018  09:49 AM    <DIR>          openjpa
>> 10/12/2018  09:50 AM    <DIR>          servicemix
>> 10/12/2018  09:50 AM    <DIR>          sshd
>>
>>
>> On Thursday, October 25, 2018, 1:53:11 PM EDT, Jean-Baptiste Onofré
>> <jb...@nanthrax.net> wrote:
>>
>>
>> Do you have a features xml ?
>>
>> IMHO the bundle statements are not fully correct.
>>
>> I can fix that for you.
>>
>> Regards
>> JB
>> Le 25 oct. 2018, à 21:38, "John F. Berry" <bohnjerry@yahoo.com
>> <ma...@yahoo.com>> a écrit:
>>
>>     but my POM references 2.21.1 (i thought)
>>          <groupId>org.apache.camel</groupId>
>>          <artifactId>camel-mllp</artifactId>
>>          <version>2.21.1</version>
>>         </dependency>
>>
>>         <!-- Project stuff -->
>>         <dependency>
>>          <groupId>org.apache.camel</groupId>
>>          <artifactId>camel-hl7</artifactId>
>>          <version>2.21.1</version>
>>         </dependency>
>>
>>         <dependency>
>>          <groupId>org.apache.camel</groupId>
>>          <artifactId>camel-netty4</artifactId>
>>          <version>2.21.1</version>
>>         </dependency>
>>
>>         <dependency>
>>         <groupId>org.apache.camel</groupId>
>>         <artifactId>camel-base64</artifactId>
>>         <version>2.21.1</version>
>>         </dependency>
>>
>>     my camel-core doesn't have a version on it... Should I declare
>>     2.21.1 ?
>>
>>
>>         <dependency>
>>           <groupId>org.apache.camel</groupId>
>>           <artifactId>camel-core</artifactId>
>>         </dependency>
>>         <dependency>
>>           <groupId>org.apache.camel</groupId>
>>           <artifactId>camel-blueprint</artifactId>
>>         </dependency>
>>
>>
>>
>>     On Thursday, October 25, 2018, 1:06:07 PM EDT, Francois Papon
>>     <fr...@openobject.fr> wrote:
>>
>>
>>     Your projectEDMtoPSoft-java  required camel version >= 2.22.0 and
>>     you added the 2.21.1
>>
>>     If you don't add the version it will install the latest :
>>
>>     "feature:repo-add camel"
>>
>>     regards,
>>
>>     François Papon
>>     fpapon@apache.org <ma...@apache.org>
>>
>>     Le 25/10/2018 à 20:32, John F. Berry a écrit :
>>     I couldn't install camel-hl7 until I performed a "install:repo-add
>>     camel 2.21.1"
>>     then I installed:
>>     camel-core
>>     camel-hl7
>>     camel-blueprint
>>
>>     but now Karaf complains now when I install my package that it's
>>     missing camel:
>>     org.osgi.framework.BundleException: Unable to resolve
>>     EDMtoPSoft-java [45](R 45.0): missing requirement [EDMtoPSoft-java
>>     [45](R 45.0)] osgi.wiring.package;
>>     (&(osgi.wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))
>>     Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)]
>>     osgi.wiring.package; (&(osgi
>>     .wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))]
>>
>>
>>
>>     On Thursday, October 25, 2018, 10:07:41 AM EDT, Francois Papon
>>     <fr...@openobject.fr>
>>     <ma...@openobject.fr> wrote:
>>
>>
>>     Yes, you have to install camel features :
>>
>>     karaf@root()> feature:install camel-hl7
>>
>>     regards,
>>
>>     François Papon
>>     fpapon@apache.org <ma...@apache.org>
>>
>>     Le 25/10/2018 à 18:01, John F. Berry a écrit :
>>     Thanks..
>>     I moved the data folder off (just for reference) and created a new
>>     data folder.
>>     I now have no bundles (well besides the default one)..
>>     karaf@root()> bundle:list
>>     START LEVEL 100 , List Threshold: 50
>>     ID | State  | Lvl | Version | Name
>>     ---+--------+-----+---------+------------------------------------------
>>     23 | Active |  80 | 4.2.1   | Apache Karaf :: OSGi Services :: Event
>>
>>     Now I'm back to missing a reference to ca.uhn.hl7v2 which earlier
>>     in this thread I was instructed to install the bundle for.  Should
>>     I be installing a feature?
>>
>>     Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)]
>>     osgi.wiring.package; (osgi.wiring.package=ca.uhn.hl7v2.model)
>>
>>     On Thursday, October 25, 2018, 9:48:40 AM EDT, Francois Papon
>>     <fr...@openobject.fr>
>>     <ma...@openobject.fr> wrote:
>>
>>
>>     I think it's better to remove the "data" directory and re-install
>>     your project ;)
>>
>>     regards,
>>
>>     François Papon
>>     fpapon@apache.org <ma...@apache.org>
>>
>>     Le 25/10/2018 à 17:34, John F. Berry a écrit :
>>     Thank you Francois,
>>     Here is the result of installing (-v switch):
>>
>>     karaf@root()> feature:install -v pax-jdbc-pool-dbcp2
>>     Adding features: pax-jdbc-pool-dbcp2/[1.3.0,1.3.0]
>>     Changes to perform:
>>       Region: root
>>         Bundles to install:
>>           mvn:org.apache.commons/commons-dbcp2/2.1.1
>>           mvn:org.apache.commons/commons-pool2/2.5.0
>>          
>>     mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>>           mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>>           mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
>>     Stopping bundles:
>>       org.apache.camel.karaf.camel-karaf-commands/2.22.1
>>       org.apache.camel.camel-commands-core/2.22.1
>>       org.apache.camel.camel-sql/2.22.1
>>       org.apache.camel.camel-stream/2.22.1
>>       org.apache.camel.camel-blueprint/2.22.1
>>       org.apache.camel.camel-core/2.22.1
>>       org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>>       org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>>       org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>>       org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>>       org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>>       org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>>       org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>>       org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>>     Installing bundles:
>>       mvn:org.apache.commons/commons-dbcp2/2.1.1
>>       mvn:org.apache.commons/commons-pool2/2.5.0
>>      
>>     mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
>>     Refreshing bundles:
>>         org.apache.camel.camel-blueprint/2.22.1 (Wired to
>>     org.apache.camel.camel-core/2.22.1 which is being refreshed)
>>         org.apache.camel.camel-commands-core/2.22.1 (Wired to
>>     org.apache.camel.camel-core/2.22.1 which is being refreshed)
>>         org.apache.camel.camel-core/2.22.1 (Wired to
>>     org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is
>>     being refreshed)
>>         org.apache.camel.camel-sql/2.22.1 (Wired to
>>     org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is
>>     being refreshed)
>>         org.apache.camel.camel-stream/2.22.1 (Wired to
>>     org.apache.camel.camel-core/2.22.1 which is being refreshed)
>>         org.apache.camel.karaf.camel-karaf-commands/2.22.1 (Wired to
>>     org.apache.camel.camel-core/2.22.1 which is being refreshed)
>>         org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>>     (Should be wired to: org.apache.commons.pool2/2.5.0 (through
>>     [org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1]
>>     osgi.wiring.package
>>     ; resolution:=optional;
>>     filter:="(&(osgi.wiring.package=org.apache.commons.pool2)(version>=2.4.0)(!(version>=3.0.0)))"))
>>         org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>>     (Wired to
>>     org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is
>>     being refreshed)
>>         org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>>     (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>>     which is being refreshed)
>>        
>>     org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>>     (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>>     which is being refreshed)
>>         org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>>     (Should be wired to: org.apache.servicemix.bundles.cglib/3.2.4.1
>>     (through
>>     [org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1] osgi
>>     .wiring.package; resolution:=optional;
>>     filter:="(&(osgi.wiring.package=net.sf.cglib.beans)(version>=3.0.0)(!(version>=4.0.0)))"))
>>        
>>     org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>>     (Wired to
>>     org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is
>>     being refreshed)
>>         org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>>     (Wired to
>>     org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 which
>>     is being refreshed)
>>         org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 (Wired
>>     to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which
>>     is being refreshed)
>>     Starting bundles:
>>       org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>>       org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>>       org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>>       org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>>       org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>>       org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>>       org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>>       org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>>       org.apache.camel.camel-core/2.22.1
>>       org.apache.camel.camel-blueprint/2.22.1
>>       org.apache.camel.camel-stream/2.22.1
>>       org.apache.camel.camel-sql/2.22.1
>>       org.apache.servicemix.bundles.cglib/3.2.4.1
>>       org.apache.commons.pool2/2.5.0
>>       org.apache.commons.dbcp2/2.1.1
>>       org.ops4j.pax.jdbc.pool.common/1.3.0
>>       org.ops4j.pax.jdbc.pool.dbcp2/1.3.0
>>       org.apache.camel.camel-commands-core/2.22.1
>>       org.apache.camel.karaf.camel-karaf-commands/2.22.1
>>     Done.
>>
>>     I am still getting a missing requirement, caused by Unable to
>>     resolve org.apache.commons.commons-dbcp2 [79]
>>     Should I uninstall the bundle since I installed the feature?
>>     Thanks
>>
>>     On Thursday, October 25, 2018, 9:26:25 AM EDT, Francois Papon
>>     <fr...@openobject.fr>
>>     <ma...@openobject.fr> wrote:
>>
>>
>>     Hi,
>>
>>     You can install this feature :
>>
>>     pax-jdbc-pool-dbcp2
>>
>>     regards,
>>
>>     François Papon
>>     fpapon@apache.org <ma...@apache.org>
>>
>>     Le 25/10/2018 à 17:18, John F. Berry a écrit :
>>     Thanks for the help Jean-Baptiste, I've been learning so much
>>     through this process.
>>     On which feature do you want me to "install -v" on?   The
>>     pax=jdbc* ?  I did those below, just in case.
>>     Here are my installed features:
>>
>>     karaf@root(feature)> feature:list -i
>>     Name            | Version         | Required | State   |
>>     Repository               | Description
>>     ----------------+-----------------+----------+---------+--------------------------+--------------------------------------------------
>>
>>     pax-jdbc-spec   | 1.3.0           |          | Started |
>>     org.ops4j.pax.jdbc-1.3.0 | Provides OSGi JDBC Service spec
>>     pax-jdbc-jtds   | 1.3.0           | x        | Started |
>>     org.ops4j.pax.jdbc-1.3.0 | Provides JDBC jTDS DataSourceFactory
>>     xml-specs-api   | 2.9.0           |          | Started |
>>     camel-2.21.1             |
>>     aries-proxy     | 4.2.1           |          | Started |
>>     standard-4.2.1           | Aries Proxy
>>     aries-blueprint | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Aries Blueprint
>>     feature         | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Features Support
>>     shell           | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Karaf Shell
>>     deployer        | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Karaf Deployer
>>     wrapper         | 4.2.1           |          | Started |
>>     standard-4.2.1           | Provide OS integration
>>     service-wrapper | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Provide OS integration (alias to
>>     wrapper feature)
>>     bundle          | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Provide Bundle support
>>     config          | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Provide OSGi ConfigAdmin support
>>     diagnostic      | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Provide Diagnostic support
>>     instance        | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Provide Instance support
>>     jaas            | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Provide JAAS support
>>     log             | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Provide Log support
>>     package         | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Package commands and mbeans
>>     service         | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Provide Service support
>>     system          | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Provide System support
>>     kar             | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Provide KAR (KARaf archive) support
>>     ssh             | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Provide a SSHd server on Karaf
>>     management      | 4.2.1           | x        | Started |
>>     standard-4.2.1           | Provide a JMX MBeanServer and a set of
>>     MBeans in
>>     eventadmin      | 4.2.1           | x        | Started |
>>     standard-4.2.1           | OSGi Event Admin service specification
>>     for event-
>>     wrap            | 2.5.4           | x        | Started |
>>     standard-4.2.1           | Wrap URL handler
>>     spring          | 5.0.8.RELEASE_1 |          | Started |
>>     spring-4.2.1             | Spring 5.0.x support
>>     spring-jdbc     | 5.0.8.RELEASE_1 |          | Started |
>>     spring-4.2.1             | Spring 5.0.x JDBC support
>>     spring-tx       | 5.0.8.RELEASE_1 |          | Started |
>>     spring-4.2.1             | Spring 5.0.x Transaction (TX) support
>>     xml-specs-api   | 2.9.0           |          | Started |
>>     camel-2.22.1             |
>>     camel           | 2.22.1          | x        | Started |
>>     camel-2.22.1             |
>>     camel-core      | 2.22.1          |          | Started |
>>     camel-2.22.1             |
>>     camel-blueprint | 2.22.1          | x        | Started |
>>     camel-2.22.1             |
>>     camel-sql       | 2.22.1          | x        | Started |
>>     camel-2.22.1             |
>>     camel-stream    | 2.22.1          | x        | Started |
>>     camel-2.22.1             |
>>     xml-specs-api   | 2.9.0           |          | Started |
>>     camel-2.20.0             |
>>
>>
>>     karaf@root(feature)> feature:install -v pax-jdbc-spec
>>     Adding features: pax-jdbc-spec/[1.3.0,1.3.0]
>>     No deployment change.
>>     Done.
>>     karaf@root(feature)> feature:install -v pax-jdbc-jtds
>>     Adding features: pax-jdbc-jtds/[1.3.0,1.3.0]
>>     No deployment change.
>>     Done.
>>     karaf@root(feature)>
>>
>>     As for installed bundles, I do have the
>>     apache.commons/commons-dbcp2 version 2.5.0 installed that matches
>>     my commons dependency in my POM
>>
>>         <dependency>
>>         <groupId>org.apache.commons</groupId>
>>         <artifactId>commons-dbcp2</artifactId>
>>         <version>2.5.0</version>
>>         </dependency>
>>
>>     Perhaps commons should be installed as a "feature" and not a
>>     "bundle"?
>>     I haven't been able to find a reference as to the name of it.
>>
>>     Thanks all!
>>
>>
>>     On Thursday, October 25, 2018, 12:20:25 AM EDT, Jean-Baptiste
>>     Onofré <jb...@nanthrax.net> <ma...@nanthrax.net> wrote:
>>
>>
>>
>>
>>
>>     Hi,
>>
>>     you can please try using feature:install -v and send the complete
>>     output ?
>>
>>     Thanks
>>     Regards
>>     JB
>>
>>     On 24/10/2018 19:37, bohnjerry wrote:
>>     > I am trying to install a maven Camel project and I get this error:
>>     > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0):
>>     missing
>>     > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
>>     > osgi.wiring.package;
>>     >
>>     (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
>>
>>     > Unresolved requirements:
>>     >
>>     > I've tried to install every package and feature even remotely
>>     related (that
>>     > I could find).. still no dice.
>>     > Ideas?
>>     >
>>     >
>>     >
>>     >
>>     > --
>>     > Sent from:
>>     http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>>     >
>>
>>
>>
>>
>>
> 

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Francois Papon <fr...@openobject.fr>.
Hi John,

You can use a feature.xml in your project to easy deploy all require
dependencies (bundles and/or features).

When you install your feature in Karaf, it will automatically install
all the dependencies of your feature.xml.

It's like the pom.xml but for the deployment.

You should take a look on the Karaf examples :

https://github.com/apache/karaf/tree/master/examples

It will help you to understand how to develop with Karaf.

regards,

François Papon
fpapon@apache.org

Le 25/10/2018 à 23:37, John F. Berry a écrit :
> a features.xml for which feature?
> I don't see one for camel.
>
>  Directory of c:\karaf\system\org\apache\karaf\features
>
> 10/12/2018  09:50 AM    <DIR>          .
> 10/12/2018  09:50 AM    <DIR>          ..
> 10/12/2018  09:50 AM    <DIR>          enterprise
> 10/12/2018  09:50 AM    <DIR>          framework
> 10/12/2018  09:50 AM    <DIR>          org.apache.karaf.features.command
> 10/12/2018  09:50 AM    <DIR>          org.apache.karaf.features.core
> 10/12/2018  09:50 AM    <DIR>          org.apache.karaf.features.extension
> 10/12/2018  09:50 AM    <DIR>          spring
> 10/12/2018  09:50 AM    <DIR>          standard
>
>
>  Directory of c:\karaf\system\org\apache
>
> 10/12/2018  09:50 AM    <DIR>          .
> 10/12/2018  09:50 AM    <DIR>          ..
> 10/12/2018  09:50 AM    <DIR>          aries
> 10/12/2018  09:50 AM    <DIR>          felix
> 10/12/2018  09:50 AM    <DIR>          karaf
> 10/12/2018  09:49 AM    <DIR>          openjpa
> 10/12/2018  09:50 AM    <DIR>          servicemix
> 10/12/2018  09:50 AM    <DIR>          sshd
>
>
> On Thursday, October 25, 2018, 1:53:11 PM EDT, Jean-Baptiste Onofré
> <jb...@nanthrax.net> wrote:
>
>
> Do you have a features xml ?
>
> IMHO the bundle statements are not fully correct.
>
> I can fix that for you.
>
> Regards
> JB
> Le 25 oct. 2018, à 21:38, "John F. Berry" <bohnjerry@yahoo.com
> <ma...@yahoo.com>> a écrit:
>
>     but my POM references 2.21.1 (i thought)
>          <groupId>org.apache.camel</groupId>
>          <artifactId>camel-mllp</artifactId>
>          <version>2.21.1</version>
>         </dependency>
>
>         <!-- Project stuff -->
>         <dependency>
>          <groupId>org.apache.camel</groupId>
>          <artifactId>camel-hl7</artifactId>
>          <version>2.21.1</version>
>         </dependency>
>
>         <dependency>
>          <groupId>org.apache.camel</groupId>
>          <artifactId>camel-netty4</artifactId>
>          <version>2.21.1</version>
>         </dependency>
>
>         <dependency>
>         <groupId>org.apache.camel</groupId>
>         <artifactId>camel-base64</artifactId>
>         <version>2.21.1</version>
>         </dependency>
>
>     my camel-core doesn't have a version on it... Should I declare
>     2.21.1 ?
>
>
>         <dependency>
>           <groupId>org.apache.camel</groupId>
>           <artifactId>camel-core</artifactId>
>         </dependency>
>         <dependency>
>           <groupId>org.apache.camel</groupId>
>           <artifactId>camel-blueprint</artifactId>
>         </dependency>
>
>
>
>     On Thursday, October 25, 2018, 1:06:07 PM EDT, Francois Papon
>     <fr...@openobject.fr> wrote:
>
>
>     Your projectEDMtoPSoft-java  required camel version >= 2.22.0 and
>     you added the 2.21.1
>
>     If you don't add the version it will install the latest :
>
>     "feature:repo-add camel"
>
>     regards,
>
>     François Papon
>     fpapon@apache.org <ma...@apache.org>
>
>     Le 25/10/2018 à 20:32, John F. Berry a écrit :
>     I couldn't install camel-hl7 until I performed a "install:repo-add
>     camel 2.21.1"
>     then I installed:
>     camel-core
>     camel-hl7
>     camel-blueprint
>
>     but now Karaf complains now when I install my package that it's
>     missing camel:
>     org.osgi.framework.BundleException: Unable to resolve
>     EDMtoPSoft-java [45](R 45.0): missing requirement [EDMtoPSoft-java
>     [45](R 45.0)] osgi.wiring.package;
>     (&(osgi.wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))
>     Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)]
>     osgi.wiring.package; (&(osgi
>     .wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))]
>
>
>
>     On Thursday, October 25, 2018, 10:07:41 AM EDT, Francois Papon
>     <fr...@openobject.fr>
>     <ma...@openobject.fr> wrote:
>
>
>     Yes, you have to install camel features :
>
>     karaf@root()> feature:install camel-hl7
>
>     regards,
>
>     François Papon
>     fpapon@apache.org <ma...@apache.org>
>
>     Le 25/10/2018 à 18:01, John F. Berry a écrit :
>     Thanks..
>     I moved the data folder off (just for reference) and created a new
>     data folder.
>     I now have no bundles (well besides the default one)..
>     karaf@root()> bundle:list
>     START LEVEL 100 , List Threshold: 50
>     ID | State  | Lvl | Version | Name
>     ---+--------+-----+---------+------------------------------------------
>     23 | Active |  80 | 4.2.1   | Apache Karaf :: OSGi Services :: Event
>
>     Now I'm back to missing a reference to ca.uhn.hl7v2 which earlier
>     in this thread I was instructed to install the bundle for.  Should
>     I be installing a feature?
>
>     Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)]
>     osgi.wiring.package; (osgi.wiring.package=ca.uhn.hl7v2.model)
>
>     On Thursday, October 25, 2018, 9:48:40 AM EDT, Francois Papon
>     <fr...@openobject.fr>
>     <ma...@openobject.fr> wrote:
>
>
>     I think it's better to remove the "data" directory and re-install
>     your project ;)
>
>     regards,
>
>     François Papon
>     fpapon@apache.org <ma...@apache.org>
>
>     Le 25/10/2018 à 17:34, John F. Berry a écrit :
>     Thank you Francois,
>     Here is the result of installing (-v switch):
>
>     karaf@root()> feature:install -v pax-jdbc-pool-dbcp2
>     Adding features: pax-jdbc-pool-dbcp2/[1.3.0,1.3.0]
>     Changes to perform:
>       Region: root
>         Bundles to install:
>           mvn:org.apache.commons/commons-dbcp2/2.1.1
>           mvn:org.apache.commons/commons-pool2/2.5.0
>          
>     mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>           mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>           mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
>     Stopping bundles:
>       org.apache.camel.karaf.camel-karaf-commands/2.22.1
>       org.apache.camel.camel-commands-core/2.22.1
>       org.apache.camel.camel-sql/2.22.1
>       org.apache.camel.camel-stream/2.22.1
>       org.apache.camel.camel-blueprint/2.22.1
>       org.apache.camel.camel-core/2.22.1
>       org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>       org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>       org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>       org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>       org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>       org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>       org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>       org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>     Installing bundles:
>       mvn:org.apache.commons/commons-dbcp2/2.1.1
>       mvn:org.apache.commons/commons-pool2/2.5.0
>      
>     mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
>     Refreshing bundles:
>         org.apache.camel.camel-blueprint/2.22.1 (Wired to
>     org.apache.camel.camel-core/2.22.1 which is being refreshed)
>         org.apache.camel.camel-commands-core/2.22.1 (Wired to
>     org.apache.camel.camel-core/2.22.1 which is being refreshed)
>         org.apache.camel.camel-core/2.22.1 (Wired to
>     org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is
>     being refreshed)
>         org.apache.camel.camel-sql/2.22.1 (Wired to
>     org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is
>     being refreshed)
>         org.apache.camel.camel-stream/2.22.1 (Wired to
>     org.apache.camel.camel-core/2.22.1 which is being refreshed)
>         org.apache.camel.karaf.camel-karaf-commands/2.22.1 (Wired to
>     org.apache.camel.camel-core/2.22.1 which is being refreshed)
>         org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>     (Should be wired to: org.apache.commons.pool2/2.5.0 (through
>     [org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1]
>     osgi.wiring.package
>     ; resolution:=optional;
>     filter:="(&(osgi.wiring.package=org.apache.commons.pool2)(version>=2.4.0)(!(version>=3.0.0)))"))
>         org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>     (Wired to
>     org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is
>     being refreshed)
>         org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>     (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>     which is being refreshed)
>        
>     org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>     (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>     which is being refreshed)
>         org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>     (Should be wired to: org.apache.servicemix.bundles.cglib/3.2.4.1
>     (through
>     [org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1] osgi
>     .wiring.package; resolution:=optional;
>     filter:="(&(osgi.wiring.package=net.sf.cglib.beans)(version>=3.0.0)(!(version>=4.0.0)))"))
>        
>     org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>     (Wired to
>     org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is
>     being refreshed)
>         org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>     (Wired to
>     org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 which
>     is being refreshed)
>         org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 (Wired
>     to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which
>     is being refreshed)
>     Starting bundles:
>       org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>       org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>       org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>       org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>       org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>       org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>       org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>       org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>       org.apache.camel.camel-core/2.22.1
>       org.apache.camel.camel-blueprint/2.22.1
>       org.apache.camel.camel-stream/2.22.1
>       org.apache.camel.camel-sql/2.22.1
>       org.apache.servicemix.bundles.cglib/3.2.4.1
>       org.apache.commons.pool2/2.5.0
>       org.apache.commons.dbcp2/2.1.1
>       org.ops4j.pax.jdbc.pool.common/1.3.0
>       org.ops4j.pax.jdbc.pool.dbcp2/1.3.0
>       org.apache.camel.camel-commands-core/2.22.1
>       org.apache.camel.karaf.camel-karaf-commands/2.22.1
>     Done.
>
>     I am still getting a missing requirement, caused by Unable to
>     resolve org.apache.commons.commons-dbcp2 [79]
>     Should I uninstall the bundle since I installed the feature?
>     Thanks
>
>     On Thursday, October 25, 2018, 9:26:25 AM EDT, Francois Papon
>     <fr...@openobject.fr>
>     <ma...@openobject.fr> wrote:
>
>
>     Hi,
>
>     You can install this feature :
>
>     pax-jdbc-pool-dbcp2
>
>     regards,
>
>     François Papon
>     fpapon@apache.org <ma...@apache.org>
>
>     Le 25/10/2018 à 17:18, John F. Berry a écrit :
>     Thanks for the help Jean-Baptiste, I've been learning so much
>     through this process.
>     On which feature do you want me to "install -v" on?   The
>     pax=jdbc* ?  I did those below, just in case.
>     Here are my installed features:
>
>     karaf@root(feature)> feature:list -i
>     Name            | Version         | Required | State   |
>     Repository               | Description
>     ----------------+-----------------+----------+---------+--------------------------+--------------------------------------------------
>
>     pax-jdbc-spec   | 1.3.0           |          | Started |
>     org.ops4j.pax.jdbc-1.3.0 | Provides OSGi JDBC Service spec
>     pax-jdbc-jtds   | 1.3.0           | x        | Started |
>     org.ops4j.pax.jdbc-1.3.0 | Provides JDBC jTDS DataSourceFactory
>     xml-specs-api   | 2.9.0           |          | Started |
>     camel-2.21.1             |
>     aries-proxy     | 4.2.1           |          | Started |
>     standard-4.2.1           | Aries Proxy
>     aries-blueprint | 4.2.1           | x        | Started |
>     standard-4.2.1           | Aries Blueprint
>     feature         | 4.2.1           | x        | Started |
>     standard-4.2.1           | Features Support
>     shell           | 4.2.1           | x        | Started |
>     standard-4.2.1           | Karaf Shell
>     deployer        | 4.2.1           | x        | Started |
>     standard-4.2.1           | Karaf Deployer
>     wrapper         | 4.2.1           |          | Started |
>     standard-4.2.1           | Provide OS integration
>     service-wrapper | 4.2.1           | x        | Started |
>     standard-4.2.1           | Provide OS integration (alias to
>     wrapper feature)
>     bundle          | 4.2.1           | x        | Started |
>     standard-4.2.1           | Provide Bundle support
>     config          | 4.2.1           | x        | Started |
>     standard-4.2.1           | Provide OSGi ConfigAdmin support
>     diagnostic      | 4.2.1           | x        | Started |
>     standard-4.2.1           | Provide Diagnostic support
>     instance        | 4.2.1           | x        | Started |
>     standard-4.2.1           | Provide Instance support
>     jaas            | 4.2.1           | x        | Started |
>     standard-4.2.1           | Provide JAAS support
>     log             | 4.2.1           | x        | Started |
>     standard-4.2.1           | Provide Log support
>     package         | 4.2.1           | x        | Started |
>     standard-4.2.1           | Package commands and mbeans
>     service         | 4.2.1           | x        | Started |
>     standard-4.2.1           | Provide Service support
>     system          | 4.2.1           | x        | Started |
>     standard-4.2.1           | Provide System support
>     kar             | 4.2.1           | x        | Started |
>     standard-4.2.1           | Provide KAR (KARaf archive) support
>     ssh             | 4.2.1           | x        | Started |
>     standard-4.2.1           | Provide a SSHd server on Karaf
>     management      | 4.2.1           | x        | Started |
>     standard-4.2.1           | Provide a JMX MBeanServer and a set of
>     MBeans in
>     eventadmin      | 4.2.1           | x        | Started |
>     standard-4.2.1           | OSGi Event Admin service specification
>     for event-
>     wrap            | 2.5.4           | x        | Started |
>     standard-4.2.1           | Wrap URL handler
>     spring          | 5.0.8.RELEASE_1 |          | Started |
>     spring-4.2.1             | Spring 5.0.x support
>     spring-jdbc     | 5.0.8.RELEASE_1 |          | Started |
>     spring-4.2.1             | Spring 5.0.x JDBC support
>     spring-tx       | 5.0.8.RELEASE_1 |          | Started |
>     spring-4.2.1             | Spring 5.0.x Transaction (TX) support
>     xml-specs-api   | 2.9.0           |          | Started |
>     camel-2.22.1             |
>     camel           | 2.22.1          | x        | Started |
>     camel-2.22.1             |
>     camel-core      | 2.22.1          |          | Started |
>     camel-2.22.1             |
>     camel-blueprint | 2.22.1          | x        | Started |
>     camel-2.22.1             |
>     camel-sql       | 2.22.1          | x        | Started |
>     camel-2.22.1             |
>     camel-stream    | 2.22.1          | x        | Started |
>     camel-2.22.1             |
>     xml-specs-api   | 2.9.0           |          | Started |
>     camel-2.20.0             |
>
>
>     karaf@root(feature)> feature:install -v pax-jdbc-spec
>     Adding features: pax-jdbc-spec/[1.3.0,1.3.0]
>     No deployment change.
>     Done.
>     karaf@root(feature)> feature:install -v pax-jdbc-jtds
>     Adding features: pax-jdbc-jtds/[1.3.0,1.3.0]
>     No deployment change.
>     Done.
>     karaf@root(feature)>
>
>     As for installed bundles, I do have the
>     apache.commons/commons-dbcp2 version 2.5.0 installed that matches
>     my commons dependency in my POM
>
>         <dependency>
>         <groupId>org.apache.commons</groupId>
>         <artifactId>commons-dbcp2</artifactId>
>         <version>2.5.0</version>
>         </dependency>
>
>     Perhaps commons should be installed as a "feature" and not a
>     "bundle"?
>     I haven't been able to find a reference as to the name of it.
>
>     Thanks all!
>
>
>     On Thursday, October 25, 2018, 12:20:25 AM EDT, Jean-Baptiste
>     Onofré <jb...@nanthrax.net> <ma...@nanthrax.net> wrote:
>
>
>
>
>
>     Hi,
>
>     you can please try using feature:install -v and send the complete
>     output ?
>
>     Thanks
>     Regards
>     JB
>
>     On 24/10/2018 19:37, bohnjerry wrote:
>     > I am trying to install a maven Camel project and I get this error:
>     > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0):
>     missing
>     > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
>     > osgi.wiring.package;
>     >
>     (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
>
>     > Unresolved requirements:
>     >
>     > I've tried to install every package and feature even remotely
>     related (that
>     > I could find).. still no dice.
>     > Ideas?
>     >
>     >
>     >
>     >
>     > --
>     > Sent from:
>     http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>     >
>
>
>
>
>


Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by "John F. Berry" <bo...@yahoo.com>.
 a features.xml for which feature?I don't see one for camel.
 Directory of c:\karaf\system\org\apache\karaf\features

10/12/2018  09:50 AM    <DIR>          .
10/12/2018  09:50 AM    <DIR>          ..
10/12/2018  09:50 AM    <DIR>          enterprise
10/12/2018  09:50 AM    <DIR>          framework
10/12/2018  09:50 AM    <DIR>          org.apache.karaf.features.command
10/12/2018  09:50 AM    <DIR>          org.apache.karaf.features.core
10/12/2018  09:50 AM    <DIR>          org.apache.karaf.features.extension
10/12/2018  09:50 AM    <DIR>          spring
10/12/2018  09:50 AM    <DIR>          standard


 Directory of c:\karaf\system\org\apache

10/12/2018  09:50 AM    <DIR>          .
10/12/2018  09:50 AM    <DIR>          ..
10/12/2018  09:50 AM    <DIR>          aries
10/12/2018  09:50 AM    <DIR>          felix
10/12/2018  09:50 AM    <DIR>          karaf
10/12/2018  09:49 AM    <DIR>          openjpa
10/12/2018  09:50 AM    <DIR>          servicemix
10/12/2018  09:50 AM    <DIR>          sshd


    On Thursday, October 25, 2018, 1:53:11 PM EDT, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:  
 
 Do you have a features xml ?

IMHO the bundle statements are not fully correct.

I can fix that for you.

Regards
JBLe 25 oct. 2018, à 21:38, "John F. Berry" <bo...@yahoo.com> a écrit:
   but my POM references 2.21.1 (i thought)        <groupId>org.apache.camel</groupId>
     <artifactId>camel-mllp</artifactId>
     <version>2.21.1</version>
    </dependency>

    <!-- Project stuff -->
    <dependency>
     <groupId>org.apache.camel</groupId>
     <artifactId>camel-hl7</artifactId>
     <version>2.21.1</version>
    </dependency>

    <dependency>
     <groupId>org.apache.camel</groupId>
     <artifactId>camel-netty4</artifactId>
     <version>2.21.1</version>
    </dependency>

    <dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-base64</artifactId>
    <version>2.21.1</version>
      </dependency>
   
    my camel-core doesn't have a version on it... Should I declare 2.21.1 ?   
   
       <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-blueprint</artifactId>
    </dependency> 
      
   
   
    On Thursday, October 25, 2018, 1:06:07 PM EDT, Francois Papon <fr...@openobject.fr> wrote:   
   
     
Your project EDMtoPSoft-java  required camel version >= 2.22.0 and you added the 2.21.1
 
If you don't add the version it will install the latest :
 
"feature:repo-add camel"
 
regards,
 
 François Papon
fpapon@apache.org  Le 25/10/2018 à 20:32, John F. Berry a écrit : 
  
 
      I couldn't install camel-hl7 until I performed a "install:repo-add camel 2.21.1"   then I installed:   camel-core   camel-hl7   camel-blueprint   
   but now Karaf complains now when I install my package that it's missing camel:   org.osgi.framework.BundleException: Unable to resolve EDMtoPSoft-java [45](R 45.0): missing requirement [EDMtoPSoft-java [45](R 45.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0))) Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)] osgi.wiring.package; (&(osgi
 .wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))] 
   
   
      On Thursday, October 25, 2018, 10:07:41 AM EDT, Francois Papon <fr...@openobject.fr> wrote:   
   
     
Yes, you have to install camel features :
 
karaf@root()> feature:install camel-hl7
 
regards,
 
 François Papon
fpapon@apache.org  Le 25/10/2018 à 18:01, John F. Berry a écrit : 
  
 
      Thanks..   I moved the data folder off (just for reference) and created a new data folder.   I now have no bundles (well besides the default one)..   karaf@root()> bundle:list
 START LEVEL 100 , List Threshold: 50
 ID | State  | Lvl | Version | Name
 ---+--------+-----+---------+------------------------------------------
   23 | Active |  80 | 4.2.1   | Apache Karaf :: OSGi Services :: Event
    
    Now I'm back to missing a reference to ca.uhn.hl7v2 which earlier in this thread I was instructed to install the bundle for.  Should I be installing a feature? 
   
   Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)] osgi.wiring.package; (osgi.wiring.package=ca.uhn.hl7v2.model) 
      
      On Thursday, October 25, 2018, 9:48:40 AM EDT, Francois Papon <fr...@openobject.fr> wrote:   
   
     
I think it's better to remove the "data" directory and re-install your project ;)
 
regards,
 
 François Papon
fpapon@apache.org  Le 25/10/2018 à 17:34, John F. Berry a écrit : 
  
 
      Thank you Francois,    Here is the result of installing (-v switch):   
   karaf@root()> feature:install -v pax-jdbc-pool-dbcp2
 Adding features: pax-jdbc-pool-dbcp2/[1.3.0,1.3.0]
 Changes to perform:
   Region: root
     Bundles to install:
       mvn:org.apache.commons/commons-dbcp2/2.1.1
       mvn:org.apache.commons/commons-pool2/2.5.0
       mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
 Stopping bundles:
   org.apache.camel.karaf.camel-karaf-commands/2.22.1
   org.apache.camel.camel-commands-core/2.22.1
   org.apache.camel.camel-sql/2.22.1
   org.apache.camel.camel-stream/2.22.1
   org.apache.camel.camel-blueprint/2.22.1
   org.apache.camel.camel-core/2.22.1
   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
 Installing bundles:
   mvn:org.apache.commons/commons-dbcp2/2.1.1
   mvn:org.apache.commons/commons-pool2/2.5.0
   mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
 Refreshing bundles:
     org.apache.camel.camel-blueprint/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.camel.camel-commands-core/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.camel.camel-core/2.22.1 (Wired to org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.camel.camel-sql/2.22.1 (Wired to org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.camel.camel-stream/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.camel.karaf.camel-karaf-commands/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 (Should be wired to: org.apache.commons.pool2/2.5.0 (through [org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1] osgi.wiring.package
 ; resolution:=optional; filter:="(&(osgi.wiring.package=org.apache.commons.pool2)(version>=2.4.0)(!(version>=3.0.0)))"))
     org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 (Should be wired to: org.apache.servicemix.bundles.cglib/3.2.4.1 (through [org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1] osgi
 .wiring.package; resolution:=optional; filter:="(&(osgi.wiring.package=net.sf.cglib.beans)(version>=3.0.0)(!(version>=4.0.0)))"))
     org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is being refreshed)
 Starting bundles:
   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
   org.apache.camel.camel-core/2.22.1
   org.apache.camel.camel-blueprint/2.22.1
   org.apache.camel.camel-stream/2.22.1
   org.apache.camel.camel-sql/2.22.1
   org.apache.servicemix.bundles.cglib/3.2.4.1
   org.apache.commons.pool2/2.5.0
   org.apache.commons.dbcp2/2.1.1
   org.ops4j.pax.jdbc.pool.common/1.3.0
   org.ops4j.pax.jdbc.pool.dbcp2/1.3.0
   org.apache.camel.camel-commands-core/2.22.1
   org.apache.camel.karaf.camel-karaf-commands/2.22.1
   Done.
    
    I am still getting a missing requirement, caused by Unable to resolve org.apache.commons.commons-dbcp2 [79]   Should I uninstall the bundle since I installed the feature?   Thanks
       
      On Thursday, October 25, 2018, 9:26:25 AM EDT, Francois Papon <fr...@openobject.fr> wrote:   
   
     
Hi,
 
You can install this feature :
 
pax-jdbc-pool-dbcp2
 
regards,
 
 François Papon
fpapon@apache.org  Le 25/10/2018 à 17:18, John F. Berry a écrit : 
  
 
      Thanks for the help Jean-Baptiste, I've been learning so much through this process.   On which feature do you want me to "install -v" on?   The pax=jdbc* ?  I did those below, just in case. 
  Here are my installed features: 
 
 karaf@root(feature)> feature:list -i 
 Name            | Version         | Required | State   | Repository               | Description 
 ----------------+-----------------+----------+---------+--------------------------+-------------------------------------------------- 
 pax-jdbc-spec   | 1.3.0           |          | Started | org.ops4j.pax.jdbc-1.3.0 | Provides OSGi JDBC Service spec 
 pax-jdbc-jtds   | 1.3.0           | x        | Started | org.ops4j.pax.jdbc-1.3.0 | Provides JDBC jTDS DataSourceFactory 
 xml-specs-api   | 2.9.0           |          | Started | camel-2.21.1             | 
 aries-proxy     | 4.2.1           |          | Started | standard-4.2.1           | Aries Proxy 
 aries-blueprint | 4.2.1           | x        | Started | standard-4.2.1           | Aries Blueprint 
 feature         | 4.2.1           | x        | Started | standard-4.2.1           | Features Support 
 shell           | 4.2.1           | x        | Started | standard-4.2.1           | Karaf Shell 
 deployer        | 4.2.1           | x        | Started | standard-4.2.1           | Karaf Deployer 
 wrapper         | 4.2.1           |          | Started | standard-4.2.1           | Provide OS integration 
 service-wrapper | 4.2.1           | x        | Started | standard-4.2.1           | Provide OS integration (alias to wrapper feature) 
 bundle          | 4.2.1           | x        | Started | standard-4.2.1           | Provide Bundle support 
 config          | 4.2.1           | x        | Started | standard-4.2.1           | Provide OSGi ConfigAdmin support 
 diagnostic      | 4.2.1           | x        | Started | standard-4.2.1           | Provide Diagnostic support 
 instance        | 4.2.1           | x        | Started | standard-4.2.1           | Provide Instance support 
 jaas            | 4.2.1           | x        | Started | standard-4.2.1           | Provide JAAS support 
 log             | 4.2.1           | x        | Started | standard-4.2.1           | Provide Log support 
 package         | 4.2.1           | x        | Started | standard-4.2.1           | Package commands and mbeans 
 service         | 4.2.1           | x        | Started | standard-4.2.1           | Provide Service support 
 system          | 4.2.1           | x        | Started | standard-4.2.1           | Provide System support 
 kar             | 4.2.1           | x        | Started | standard-4.2.1           | Provide KAR (KARaf archive) support 
 ssh             | 4.2.1           | x        | Started | standard-4.2.1           | Provide a SSHd server on Karaf 
 management      | 4.2.1           | x        | Started | standard-4.2.1           | Provide a JMX MBeanServer and a set of MBeans in 
 eventadmin      | 4.2.1           | x        | Started | standard-4.2.1           | OSGi Event Admin service specification for event- 
 wrap            | 2.5.4           | x        | Started | standard-4.2.1           | Wrap URL handler 
 spring          | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x support 
 spring-jdbc     | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x JDBC support 
 spring-tx       | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x Transaction (TX) support 
 xml-specs-api   | 2.9.0           |          | Started | camel-2.22.1             | 
 camel           | 2.22.1          | x        | Started | camel-2.22.1             | 
 camel-core      | 2.22.1          |          | Started | camel-2.22.1             | 
 camel-blueprint | 2.22.1          | x        | Started | camel-2.22.1             | 
 camel-sql       | 2.22.1          | x        | Started | camel-2.22.1             | 
 camel-stream    | 2.22.1          | x        | Started | camel-2.22.1             | 
 xml-specs-api   | 2.9.0           |          | Started | camel-2.20.0             | 
 
 
  karaf@root(feature)> feature:install -v pax-jdbc-spec
 Adding features: pax-jdbc-spec/[1.3.0,1.3.0]
 No deployment change.
 Done.
 karaf@root(feature)> feature:install -v pax-jdbc-jtds
 Adding features: pax-jdbc-jtds/[1.3.0,1.3.0]
 No deployment change.
 Done.
   karaf@root(feature)>
    
    As for installed bundles, I do have the apache.commons/commons-dbcp2 version 2.5.0 installed that matches my commons dependency in my POM    
          <dependency>
     <groupId>org.apache.commons</groupId>
     <artifactId>commons-dbcp2</artifactId>
     <version>2.5.0</version>
     </dependency>
 
   Perhaps commons should be installed as a "feature" and not a "bundle"?   I haven't been able to find a reference as to the name of it.   
   Thanks all!   
 
 On Thursday, October 25, 2018, 12:20:25 AM EDT, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote: 
 
 
 
 
 
 Hi, 
 
 you can please try using feature:install -v and send the complete output ? 
 
 Thanks 
 Regards 
 JB 
 
 On 24/10/2018 19:37, bohnjerry wrote: 
 > I am trying to install a maven Camel project and I get this error: 
 > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing 
 > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)] 
 > osgi.wiring.package; 
 > (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))] 
 > Unresolved requirements: 
 > 
 > I've tried to install every package and feature even remotely related (that 
 > I could find).. still no dice. 
 > Ideas? 
 > 
 > 
 > 
 > 
 > -- 
 > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html 
 > 
 
  
       
       
       
     
  

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Do you have a features xml ?

IMHO the bundle statements are not fully correct.

I can fix that for you.

Regards
JB

Le 25 oct. 2018 à 21:38, à 21:38, "John F. Berry" <bo...@yahoo.com> a écrit:
>but my POM references 2.21.1 (i thought)    
><groupId>org.apache.camel</groupId>
>     <artifactId>camel-mllp</artifactId>
>     <version>2.21.1</version>
>    </dependency>
>
>    <!-- Project stuff -->
>    <dependency>
>     <groupId>org.apache.camel</groupId>
>     <artifactId>camel-hl7</artifactId>
>     <version>2.21.1</version>
>    </dependency>
>
>    <dependency>
>     <groupId>org.apache.camel</groupId>
>     <artifactId>camel-netty4</artifactId>
>     <version>2.21.1</version>
>    </dependency>
>
>    <dependency>
>    <groupId>org.apache.camel</groupId>
>    <artifactId>camel-base64</artifactId>
>    <version>2.21.1</version>
>    </dependency>
>
>my camel-core doesn't have a version on it... Should I declare 2.21.1 ?
>
>    <dependency>
>      <groupId>org.apache.camel</groupId>
>      <artifactId>camel-core</artifactId>
>    </dependency>
>    <dependency>
>      <groupId>org.apache.camel</groupId>
>      <artifactId>camel-blueprint</artifactId>
>    </dependency>
>
>
>
>On Thursday, October 25, 2018, 1:06:07 PM EDT, Francois Papon
><fr...@openobject.fr> wrote:  
> 
>  
>Your project EDMtoPSoft-java  required camel version >= 2.22.0 and you
>added the 2.21.1
> 
>If you don't add the version it will install the latest :
> 
>"feature:repo-add camel"
> 
>regards,
> 
> François Papon
>fpapon@apache.org Le 25/10/2018 à 20:32, John F. Berry a écrit :
>  
> 
>I couldn't install camel-hl7 until I performed a "install:repo-add
>camel 2.21.1" then I installed: camel-core camel-hl7 camel-blueprint 
>but now Karaf complains now when I install my package that it's missing
>camel: org.osgi.framework.BundleException: Unable to resolve
>EDMtoPSoft-java [45](R 45.0): missing requirement [EDMtoPSoft-java
>[45](R 45.0)]
>osgi.wiring.package;(&(osgi.wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))
>Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)]
>osgi.wiring.package; (&(osgi
>.wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))]
>  
>  
>On Thursday, October 25, 2018, 10:07:41 AM EDT, Francois Papon
><fr...@openobject.fr> wrote:  
>  
>     
>Yes, you have to install camel features :
> 
>karaf@root()> feature:install camel-hl7
> 
>regards,
> 
> François Papon
>fpapon@apache.org Le 25/10/2018 à 18:01, John F. Berry a écrit :
>  
> 
>Thanks.. I moved the data folder off (just for reference) and created a
>new data folder. I now have no bundles (well besides the default one)..
>karaf@root()> bundle:list
> START LEVEL 100 , List Threshold: 50
> ID | State  | Lvl | Version | Name
>---+--------+-----+---------+------------------------------------------
>  23 | Active |  80 | 4.2.1   | Apache Karaf :: OSGi Services :: Event
>  
>Now I'm back to missing a reference to ca.uhn.hl7v2 which earlier in
>this thread I was instructed to install the bundle for.  Should I be
>installing a feature?
>  
>Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)]
>osgi.wiring.package; (osgi.wiring.package=ca.uhn.hl7v2.model)
>    
>On Thursday, October 25, 2018, 9:48:40 AM EDT, Francois Papon
><fr...@openobject.fr> wrote:  
>  
>     
>I think it's better to remove the "data" directory and re-install your
>project ;)
> 
>regards,
> 
> François Papon
>fpapon@apache.org Le 25/10/2018 à 17:34, John F. Berry a écrit :
>  
> 
>    Thank you Francois,  Here is the result of installing (-v switch): 
>  karaf@root()> feature:install -v pax-jdbc-pool-dbcp2
> Adding features: pax-jdbc-pool-dbcp2/[1.3.0,1.3.0]
> Changes to perform:
>   Region: root
>     Bundles to install:
>       mvn:org.apache.commons/commons-dbcp2/2.1.1
>       mvn:org.apache.commons/commons-pool2/2.5.0
>     mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
> Stopping bundles:
>   org.apache.camel.karaf.camel-karaf-commands/2.22.1
>   org.apache.camel.camel-commands-core/2.22.1
>   org.apache.camel.camel-sql/2.22.1
>   org.apache.camel.camel-stream/2.22.1
>   org.apache.camel.camel-blueprint/2.22.1
>   org.apache.camel.camel-core/2.22.1
>   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
> Installing bundles:
>   mvn:org.apache.commons/commons-dbcp2/2.1.1
>   mvn:org.apache.commons/commons-pool2/2.5.0
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
> Refreshing bundles:
>    org.apache.camel.camel-blueprint/2.22.1 (Wired to
>org.apache.camel.camel-core/2.22.1 which is being refreshed)
>    org.apache.camel.camel-commands-core/2.22.1 (Wired to
>org.apache.camel.camel-core/2.22.1 which is being refreshed)
>    org.apache.camel.camel-core/2.22.1 (Wired
>toorg.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is
>being refreshed)
>    org.apache.camel.camel-sql/2.22.1 (Wired
>toorg.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is
>being refreshed)
>    org.apache.camel.camel-stream/2.22.1 (Wired to
>org.apache.camel.camel-core/2.22.1 which is being refreshed)
>    org.apache.camel.karaf.camel-karaf-commands/2.22.1 (Wired to
>org.apache.camel.camel-core/2.22.1 which is being refreshed)
>    org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 (Should be
>wired to:  org.apache.commons.pool2/2.5.0 (through
>[org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1] 
>osgi.wiring.package
>;
>resolution:=optional;filter:="(&(osgi.wiring.package=org.apache.commons.pool2)(version>=2.4.0)(!(version>=3.0.0)))"))
>    org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1 (Wired
>to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is
>being refreshed)
>    org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 (Wired
>to  org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is
>being refreshed)
>   
>org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>(Wired to  org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>which is being refreshed)
>    org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 (Should
>be wired to:  org.apache.servicemix.bundles.cglib/3.2.4.1 (through
>[org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1] osgi
>.wiring.package;
>resolution:=optional;filter:="(&(osgi.wiring.package=net.sf.cglib.beans)(version>=3.0.0)(!(version>=4.0.0)))"))
>    org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>(Wired to  org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>which is being refreshed)
>    org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1 (Wired to
>org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 which is
>being refreshed)
>    org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 (Wired to
>org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is being
>refreshed)
> Starting bundles:
>   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>   org.apache.camel.camel-core/2.22.1
>   org.apache.camel.camel-blueprint/2.22.1
>   org.apache.camel.camel-stream/2.22.1
>   org.apache.camel.camel-sql/2.22.1
>   org.apache.servicemix.bundles.cglib/3.2.4.1
>   org.apache.commons.pool2/2.5.0
>   org.apache.commons.dbcp2/2.1.1
>   org.ops4j.pax.jdbc.pool.common/1.3.0
>   org.ops4j.pax.jdbc.pool.dbcp2/1.3.0
>   org.apache.camel.camel-commands-core/2.22.1
>   org.apache.camel.karaf.camel-karaf-commands/2.22.1
>  Done.
>  
>I am still getting a missing requirement, caused by Unable to resolve
>org.apache.commons.commons-dbcp2 [79] Should I uninstall the bundle
>since I installed the feature? Thanks
>    
>On Thursday, October 25, 2018, 9:26:25 AM EDT, Francois Papon
><fr...@openobject.fr> wrote:  
>  
>     
>Hi,
> 
>You can install this feature :
> 
>pax-jdbc-pool-dbcp2
> 
>regards,
> 
> François Papon
>fpapon@apache.org Le 25/10/2018 à 17:18, John F. Berry a écrit :
>  
> 
>Thanks for the help Jean-Baptiste, I've been learning so much through 
>this process. On which feature do you want me to "install -v" on?   The
>pax=jdbc* ?  I did those below, just in case.
>  Here are my installed features:
> 
> karaf@root(feature)> feature:list -i
>Name            | Version         | Required | State   |
>Repository               | Description
>----------------+-----------------+----------+---------+--------------------------+--------------------------------------------------
>pax-jdbc-spec   | 1.3.0           |          | Started |
>org.ops4j.pax.jdbc-1.3.0 | Provides OSGi JDBC Service spec
>pax-jdbc-jtds   | 1.3.0           | x        | Started |
>org.ops4j.pax.jdbc-1.3.0 | Provides JDBC jTDS DataSourceFactory
>xml-specs-api   | 2.9.0           |          | Started |
>camel-2.21.1             |
>aries-proxy     | 4.2.1           |          | Started |
>standard-4.2.1           | Aries Proxy
>aries-blueprint | 4.2.1           | x        | Started |
>standard-4.2.1           | Aries Blueprint
>feature         | 4.2.1           | x        | Started |
>standard-4.2.1           | Features Support
>shell           | 4.2.1           | x        | Started |
>standard-4.2.1           | Karaf Shell
>deployer        | 4.2.1           | x        | Started |
>standard-4.2.1           | Karaf Deployer
>wrapper         | 4.2.1           |          | Started |
>standard-4.2.1           | Provide OS integration
>service-wrapper | 4.2.1           | x        | Started |
>standard-4.2.1           | Provide OS integration (alias to wrapper
>feature)
>bundle          | 4.2.1           | x        | Started |
>standard-4.2.1           | Provide Bundle support
>config          | 4.2.1           | x        | Started |
>standard-4.2.1           | Provide OSGi ConfigAdmin support
>diagnostic      | 4.2.1           | x        | Started |
>standard-4.2.1           | Provide Diagnostic support
>instance        | 4.2.1           | x        | Started |
>standard-4.2.1           | Provide Instance support
>jaas            | 4.2.1           | x        | Started |
>standard-4.2.1           | Provide JAAS support
>log             | 4.2.1           | x        | Started |
>standard-4.2.1           | Provide Log support
>package         | 4.2.1           | x        | Started |
>standard-4.2.1           | Package commands and mbeans
>service         | 4.2.1           | x        | Started |
>standard-4.2.1           | Provide Service support
>system          | 4.2.1           | x        | Started |
>standard-4.2.1           | Provide System support
>kar             | 4.2.1           | x        | Started |
>standard-4.2.1           | Provide KAR (KARaf archive) support
>ssh             | 4.2.1           | x        | Started |
>standard-4.2.1           | Provide a SSHd server on Karaf
>management      | 4.2.1           | x        | Started |
>standard-4.2.1           | Provide a JMX MBeanServer and a set of
>MBeans in
>eventadmin      | 4.2.1           | x        | Started |
>standard-4.2.1           | OSGi Event Admin service specification for
>event-
>wrap            | 2.5.4           | x        | Started |
>standard-4.2.1           | Wrap URL handler
>spring          | 5.0.8.RELEASE_1 |          | Started |
>spring-4.2.1             | Spring 5.0.x support
>spring-jdbc     | 5.0.8.RELEASE_1 |          | Started |
>spring-4.2.1             | Spring 5.0.x JDBC support
>spring-tx       | 5.0.8.RELEASE_1 |          | Started |
>spring-4.2.1             | Spring 5.0.x Transaction (TX) support
>xml-specs-api   | 2.9.0           |          | Started |
>camel-2.22.1             |
>camel           | 2.22.1          | x        | Started |
>camel-2.22.1             |
>camel-core      | 2.22.1          |          | Started |
>camel-2.22.1             |
>camel-blueprint | 2.22.1          | x        | Started |
>camel-2.22.1             |
>camel-sql       | 2.22.1          | x        | Started |
>camel-2.22.1             |
>camel-stream    | 2.22.1          | x        | Started |
>camel-2.22.1             |
>xml-specs-api   | 2.9.0           |          | Started |
>camel-2.20.0             |
> 
> 
> karaf@root(feature)> feature:install -v pax-jdbc-spec
> Adding features: pax-jdbc-spec/[1.3.0,1.3.0]
> No deployment change.
> Done.
>karaf@root(feature)> feature:install -v pax-jdbc-jtds
> Adding features: pax-jdbc-jtds/[1.3.0,1.3.0]
> No deployment change.
> Done.
>  karaf@root(feature)>
>  
>As for installed bundles, I do have theapache.commons/commons-dbcp2
>version 2.5.0 installed that matches my  commons dependency in my POM 
>        <dependency>
>     <groupId>org.apache.commons</groupId>
>     <artifactId>commons-dbcp2</artifactId>
>     <version>2.5.0</version>
>     </dependency>
> 
>Perhaps commons should be installed as a "feature" and not a  "bundle"?
>I haven't been able to find a reference as to the name of it. 
>  Thanks all!  
> 
>On Thursday, October 25, 2018, 12:20:25 AM EDT,  Jean-Baptiste Onofré
><jb...@nanthrax.net> wrote: 
> 
> 
> 
> 
> 
> Hi,
> 
>you can please try using feature:install -v and send  the complete
>output ?
> 
> Thanks
> Regards
> JB
> 
> On 24/10/2018 19:37, bohnjerry wrote:
> > I am trying to install a maven Camel project and I get this error:
>> Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0):
>missing
> > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
> > osgi.wiring.package;
>>(&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
> > Unresolved requirements:
> > 
>> I've tried to install every package and feature even remotely related
>(that
> > I could find).. still no dice. 
> > Ideas?
> > 
> > 
> > 
> > 
> > --
> > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> > 
> 
>  
>       
>       
>       
>   

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by "John F. Berry" <bo...@yahoo.com>.
 but my POM references 2.21.1 (i thought)     <groupId>org.apache.camel</groupId>
     <artifactId>camel-mllp</artifactId>
     <version>2.21.1</version>
    </dependency>

    <!-- Project stuff -->
    <dependency>
     <groupId>org.apache.camel</groupId>
     <artifactId>camel-hl7</artifactId>
     <version>2.21.1</version>
    </dependency>

    <dependency>
     <groupId>org.apache.camel</groupId>
     <artifactId>camel-netty4</artifactId>
     <version>2.21.1</version>
    </dependency>

    <dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-base64</artifactId>
    <version>2.21.1</version>
    </dependency>

my camel-core doesn't have a version on it... Should I declare 2.21.1 ?

    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-blueprint</artifactId>
    </dependency>



    On Thursday, October 25, 2018, 1:06:07 PM EDT, Francois Papon <fr...@openobject.fr> wrote:  
 
  
Your project EDMtoPSoft-java  required camel version >= 2.22.0 and you added the 2.21.1
 
If you don't add the version it will install the latest :
 
"feature:repo-add camel"
 
regards,
 
 François Papon
fpapon@apache.org Le 25/10/2018 à 20:32, John F. Berry a écrit :
  
 
 I couldn't install camel-hl7 until I performed a "install:repo-add camel 2.21.1" then I installed: camel-core camel-hl7 camel-blueprint 
  but now Karaf complains now when I install my package that it's missing camel: org.osgi.framework.BundleException: Unable to resolve EDMtoPSoft-java [45](R 45.0): missing requirement [EDMtoPSoft-java [45](R 45.0)] osgi.wiring.package;(&(osgi.wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0))) Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)] osgi.wiring.package; (&(osgi
.wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))]
  
  
      On Thursday, October 25, 2018, 10:07:41 AM EDT, Francois Papon <fr...@openobject.fr> wrote:  
  
     
Yes, you have to install camel features :
 
karaf@root()> feature:install camel-hl7
 
regards,
 
 François Papon
fpapon@apache.org Le 25/10/2018 à 18:01, John F. Berry a écrit :
  
 
     Thanks.. I moved the data folder off (just for reference) and created a new data folder. I now have no bundles (well besides the default one).. karaf@root()> bundle:list
 START LEVEL 100 , List Threshold: 50
 ID | State  | Lvl | Version | Name
---+--------+-----+---------+------------------------------------------
  23 | Active |  80 | 4.2.1   | Apache Karaf :: OSGi Services :: Event
  
   Now I'm back to missing a reference to ca.uhn.hl7v2 which earlier in this thread I was instructed to install the bundle for.  Should I be installing a feature?
  
  Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)] osgi.wiring.package; (osgi.wiring.package=ca.uhn.hl7v2.model)
    
      On Thursday, October 25, 2018, 9:48:40 AM EDT, Francois Papon <fr...@openobject.fr> wrote:  
  
     
I think it's better to remove the "data" directory and re-install your project ;)
 
regards,
 
 François Papon
fpapon@apache.org Le 25/10/2018 à 17:34, John F. Berry a écrit :
  
 
     Thank you Francois,  Here is the result of installing (-v switch): 
  karaf@root()> feature:install -v pax-jdbc-pool-dbcp2
 Adding features: pax-jdbc-pool-dbcp2/[1.3.0,1.3.0]
 Changes to perform:
   Region: root
     Bundles to install:
       mvn:org.apache.commons/commons-dbcp2/2.1.1
       mvn:org.apache.commons/commons-pool2/2.5.0
      mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
 Stopping bundles:
   org.apache.camel.karaf.camel-karaf-commands/2.22.1
   org.apache.camel.camel-commands-core/2.22.1
   org.apache.camel.camel-sql/2.22.1
   org.apache.camel.camel-stream/2.22.1
   org.apache.camel.camel-blueprint/2.22.1
   org.apache.camel.camel-core/2.22.1
   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
 Installing bundles:
   mvn:org.apache.commons/commons-dbcp2/2.1.1
   mvn:org.apache.commons/commons-pool2/2.5.0
  mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
 Refreshing bundles:
     org.apache.camel.camel-blueprint/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.camel.camel-commands-core/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.camel.camel-core/2.22.1 (Wired toorg.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.camel.camel-sql/2.22.1 (Wired toorg.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.camel.camel-stream/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.camel.karaf.camel-karaf-commands/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 (Should be wired to:  org.apache.commons.pool2/2.5.0 (through [org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1]  osgi.wiring.package
 ; resolution:=optional;filter:="(&(osgi.wiring.package=org.apache.commons.pool2)(version>=2.4.0)(!(version>=3.0.0)))"))
     org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 (Wired to  org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1 (Wired to  org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 (Should be wired to:  org.apache.servicemix.bundles.cglib/3.2.4.1 (through [org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1] osgi
 .wiring.package; resolution:=optional;filter:="(&(osgi.wiring.package=net.sf.cglib.beans)(version>=3.0.0)(!(version>=4.0.0)))"))
     org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1 (Wired to  org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is being refreshed)
 Starting bundles:
   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
   org.apache.camel.camel-core/2.22.1
   org.apache.camel.camel-blueprint/2.22.1
   org.apache.camel.camel-stream/2.22.1
   org.apache.camel.camel-sql/2.22.1
   org.apache.servicemix.bundles.cglib/3.2.4.1
   org.apache.commons.pool2/2.5.0
   org.apache.commons.dbcp2/2.1.1
   org.ops4j.pax.jdbc.pool.common/1.3.0
   org.ops4j.pax.jdbc.pool.dbcp2/1.3.0
   org.apache.camel.camel-commands-core/2.22.1
   org.apache.camel.karaf.camel-karaf-commands/2.22.1
  Done.
  
   I am still getting a missing requirement, caused by Unable to resolve org.apache.commons.commons-dbcp2 [79] Should I uninstall the bundle since I installed the feature? Thanks
    
      On Thursday, October 25, 2018, 9:26:25 AM EDT, Francois Papon <fr...@openobject.fr> wrote:  
  
     
Hi,
 
You can install this feature :
 
pax-jdbc-pool-dbcp2
 
regards,
 
 François Papon
fpapon@apache.org Le 25/10/2018 à 17:18, John F. Berry a écrit :
  
 
     Thanks for the help Jean-Baptiste, I've been learning so much through  this process. On which feature do you want me to "install -v" on?   The pax=jdbc* ?  I did those below, just in case.
  Here are my installed features:
 
 karaf@root(feature)> feature:list -i
 Name            | Version         | Required | State   | Repository               | Description
----------------+-----------------+----------+---------+--------------------------+--------------------------------------------------
 pax-jdbc-spec   | 1.3.0           |          | Started | org.ops4j.pax.jdbc-1.3.0 | Provides OSGi JDBC Service spec
 pax-jdbc-jtds   | 1.3.0           | x        | Started | org.ops4j.pax.jdbc-1.3.0 | Provides JDBC jTDS DataSourceFactory
 xml-specs-api   | 2.9.0           |          | Started | camel-2.21.1             |
 aries-proxy     | 4.2.1           |          | Started | standard-4.2.1           | Aries Proxy
 aries-blueprint | 4.2.1           | x        | Started | standard-4.2.1           | Aries Blueprint
 feature         | 4.2.1           | x        | Started | standard-4.2.1           | Features Support
 shell           | 4.2.1           | x        | Started | standard-4.2.1           | Karaf Shell
 deployer        | 4.2.1           | x        | Started | standard-4.2.1           | Karaf Deployer
 wrapper         | 4.2.1           |          | Started | standard-4.2.1           | Provide OS integration
 service-wrapper | 4.2.1           | x        | Started | standard-4.2.1           | Provide OS integration (alias to wrapper feature)
 bundle          | 4.2.1           | x        | Started | standard-4.2.1           | Provide Bundle support
 config          | 4.2.1           | x        | Started | standard-4.2.1           | Provide OSGi ConfigAdmin support
 diagnostic      | 4.2.1           | x        | Started | standard-4.2.1           | Provide Diagnostic support
 instance        | 4.2.1           | x        | Started | standard-4.2.1           | Provide Instance support
 jaas            | 4.2.1           | x        | Started | standard-4.2.1           | Provide JAAS support
 log             | 4.2.1           | x        | Started | standard-4.2.1           | Provide Log support
 package         | 4.2.1           | x        | Started | standard-4.2.1           | Package commands and mbeans
 service         | 4.2.1           | x        | Started | standard-4.2.1           | Provide Service support
 system          | 4.2.1           | x        | Started | standard-4.2.1           | Provide System support
 kar             | 4.2.1           | x        | Started | standard-4.2.1           | Provide KAR (KARaf archive) support
 ssh             | 4.2.1           | x        | Started | standard-4.2.1           | Provide a SSHd server on Karaf
 management      | 4.2.1           | x        | Started | standard-4.2.1           | Provide a JMX MBeanServer and a set of MBeans in
 eventadmin      | 4.2.1           | x        | Started | standard-4.2.1           | OSGi Event Admin service specification for event-
 wrap            | 2.5.4           | x        | Started | standard-4.2.1           | Wrap URL handler
 spring          | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x support
 spring-jdbc     | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x JDBC support
 spring-tx       | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x Transaction (TX) support
 xml-specs-api   | 2.9.0           |          | Started | camel-2.22.1             |
 camel           | 2.22.1          | x        | Started | camel-2.22.1             |
 camel-core      | 2.22.1          |          | Started | camel-2.22.1             |
 camel-blueprint | 2.22.1          | x        | Started | camel-2.22.1             |
 camel-sql       | 2.22.1          | x        | Started | camel-2.22.1             |
 camel-stream    | 2.22.1          | x        | Started | camel-2.22.1             |
 xml-specs-api   | 2.9.0           |          | Started | camel-2.20.0             |
 
 
 karaf@root(feature)> feature:install -v pax-jdbc-spec
 Adding features: pax-jdbc-spec/[1.3.0,1.3.0]
 No deployment change.
 Done.
karaf@root(feature)> feature:install -v pax-jdbc-jtds
 Adding features: pax-jdbc-jtds/[1.3.0,1.3.0]
 No deployment change.
 Done.
  karaf@root(feature)>
  
   As for installed bundles, I do have theapache.commons/commons-dbcp2 version 2.5.0 installed that matches my  commons dependency in my POM 
        <dependency>
     <groupId>org.apache.commons</groupId>
     <artifactId>commons-dbcp2</artifactId>
     <version>2.5.0</version>
     </dependency>
 
  Perhaps commons should be installed as a "feature" and not a  "bundle"? I haven't been able to find a reference as to the name of it. 
  Thanks all!  
 
 On Thursday, October 25, 2018, 12:20:25 AM EDT,  Jean-Baptiste Onofré <jb...@nanthrax.net> wrote: 
 
 
 
 
 
 Hi,
 
 you can please try using feature:install -v and send  the complete output ?
 
 Thanks
 Regards
 JB
 
 On 24/10/2018 19:37, bohnjerry wrote:
 > I am trying to install a maven Camel project and I get this error:
 > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing
 > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
 > osgi.wiring.package;
 >(&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
 > Unresolved requirements:
 > 
 > I've tried to install every package and feature even remotely related (that
 > I could find).. still no dice. 
 > Ideas?
 > 
 > 
 > 
 > 
 > --
 > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
 > 
 
  
       
       
       
   

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Francois Papon <fr...@openobject.fr>.
Your projectEDMtoPSoft-java  required camel version >= 2.22.0 and you
added the 2.21.1

If you don't add the version it will install the latest :

"feature:repo-add camel"

regards,

François Papon
fpapon@apache.org

Le 25/10/2018 à 20:32, John F. Berry a écrit :
> I couldn't install camel-hl7 until I performed a "install:repo-add
> camel 2.21.1"
> then I installed:
> camel-core
> camel-hl7
> camel-blueprint
>
> but now Karaf complains now when I install my package that it's
> missing camel:
> org.osgi.framework.BundleException: Unable to resolve EDMtoPSoft-java
> [45](R 45.0): missing requirement [EDMtoPSoft-java [45](R 45.0)]
> osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))
> Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)]
> osgi.wiring.package; (&(osgi
> .wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))]
>
>
> On Thursday, October 25, 2018, 10:07:41 AM EDT, Francois Papon
> <fr...@openobject.fr> wrote:
>
>
> Yes, you have to install camel features :
>
> karaf@root()> feature:install camel-hl7
>
> regards,
>
> François Papon
> fpapon@apache.org <ma...@apache.org>
> Le 25/10/2018 à 18:01, John F. Berry a écrit :
> Thanks..
> I moved the data folder off (just for reference) and created a new
> data folder.
> I now have no bundles (well besides the default one)..
> karaf@root()> bundle:list
> START LEVEL 100 , List Threshold: 50
> ID | State  | Lvl | Version | Name
> ---+--------+-----+---------+------------------------------------------
> 23 | Active |  80 | 4.2.1   | Apache Karaf :: OSGi Services :: Event
>
> Now I'm back to missing a reference to ca.uhn.hl7v2 which earlier in
> this thread I was instructed to install the bundle for.  Should I be
> installing a feature?
>
> Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)]
> osgi.wiring.package; (osgi.wiring.package=ca.uhn.hl7v2.model)
>
> On Thursday, October 25, 2018, 9:48:40 AM EDT, Francois Papon
> <fr...@openobject.fr> <ma...@openobject.fr>
> wrote:
>
>
> I think it's better to remove the "data" directory and re-install your
> project ;)
>
> regards,
>
> François Papon
> fpapon@apache.org <ma...@apache.org>
> Le 25/10/2018 à 17:34, John F. Berry a écrit :
> Thank you Francois,
> Here is the result of installing (-v switch):
>
> karaf@root()> feature:install -v pax-jdbc-pool-dbcp2
> Adding features: pax-jdbc-pool-dbcp2/[1.3.0,1.3.0]
> Changes to perform:
>   Region: root
>     Bundles to install:
>       mvn:org.apache.commons/commons-dbcp2/2.1.1
>       mvn:org.apache.commons/commons-pool2/2.5.0
>      
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
> Stopping bundles:
>   org.apache.camel.karaf.camel-karaf-commands/2.22.1
>   org.apache.camel.camel-commands-core/2.22.1
>   org.apache.camel.camel-sql/2.22.1
>   org.apache.camel.camel-stream/2.22.1
>   org.apache.camel.camel-blueprint/2.22.1
>   org.apache.camel.camel-core/2.22.1
>   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
> Installing bundles:
>   mvn:org.apache.commons/commons-dbcp2/2.1.1
>   mvn:org.apache.commons/commons-pool2/2.5.0
>  
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
> Refreshing bundles:
>     org.apache.camel.camel-blueprint/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.camel.camel-commands-core/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.camel.camel-core/2.22.1 (Wired to
> org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being
> refreshed)
>     org.apache.camel.camel-sql/2.22.1 (Wired to
> org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being
> refreshed)
>     org.apache.camel.camel-stream/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.camel.karaf.camel-karaf-commands/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 (Should
> be wired to: org.apache.commons.pool2/2.5.0 (through
> [org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1]
> osgi.wiring.package
> ; resolution:=optional;
> filter:="(&(osgi.wiring.package=org.apache.commons.pool2)(version>=2.4.0)(!(version>=3.0.0)))"))
>     org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1 (Wired
> to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is
> being refreshed)
>     org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
> (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
> which is being refreshed)
>    
> org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
> (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
> which is being refreshed)
>     org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 (Should
> be wired to: org.apache.servicemix.bundles.cglib/3.2.4.1 (through
> [org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1] osgi
> .wiring.package; resolution:=optional;
> filter:="(&(osgi.wiring.package=net.sf.cglib.beans)(version>=3.0.0)(!(version>=4.0.0)))"))
>     org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
> (Wired to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
> which is being refreshed)
>     org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1 (Wired
> to org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 which
> is being refreshed)
>     org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 (Wired to
> org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is
> being refreshed)
> Starting bundles:
>   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>   org.apache.camel.camel-core/2.22.1
>   org.apache.camel.camel-blueprint/2.22.1
>   org.apache.camel.camel-stream/2.22.1
>   org.apache.camel.camel-sql/2.22.1
>   org.apache.servicemix.bundles.cglib/3.2.4.1
>   org.apache.commons.pool2/2.5.0
>   org.apache.commons.dbcp2/2.1.1
>   org.ops4j.pax.jdbc.pool.common/1.3.0
>   org.ops4j.pax.jdbc.pool.dbcp2/1.3.0
>   org.apache.camel.camel-commands-core/2.22.1
>   org.apache.camel.karaf.camel-karaf-commands/2.22.1
> Done.
>
> I am still getting a missing requirement, caused by Unable to resolve
> org.apache.commons.commons-dbcp2 [79]
> Should I uninstall the bundle since I installed the feature?
> Thanks
>
> On Thursday, October 25, 2018, 9:26:25 AM EDT, Francois Papon
> <fr...@openobject.fr> <ma...@openobject.fr>
> wrote:
>
>
> Hi,
>
> You can install this feature :
>
> pax-jdbc-pool-dbcp2
>
> regards,
>
> François Papon
> fpapon@apache.org <ma...@apache.org>
> Le 25/10/2018 à 17:18, John F. Berry a écrit :
> Thanks for the help Jean-Baptiste, I've been learning so much through
> this process.
> On which feature do you want me to "install -v" on?   The pax=jdbc* ? 
> I did those below, just in case.
> Here are my installed features:
>
> karaf@root(feature)> feature:list -i
> Name            | Version         | Required | State   |
> Repository               | Description
> ----------------+-----------------+----------+---------+--------------------------+--------------------------------------------------
> pax-jdbc-spec   | 1.3.0           |          | Started |
> org.ops4j.pax.jdbc-1.3.0 | Provides OSGi JDBC Service spec
> pax-jdbc-jtds   | 1.3.0           | x        | Started |
> org.ops4j.pax.jdbc-1.3.0 | Provides JDBC jTDS DataSourceFactory
> xml-specs-api   | 2.9.0           |          | Started |
> camel-2.21.1             |
> aries-proxy     | 4.2.1           |          | Started |
> standard-4.2.1           | Aries Proxy
> aries-blueprint | 4.2.1           | x        | Started |
> standard-4.2.1           | Aries Blueprint
> feature         | 4.2.1           | x        | Started |
> standard-4.2.1           | Features Support
> shell           | 4.2.1           | x        | Started |
> standard-4.2.1           | Karaf Shell
> deployer        | 4.2.1           | x        | Started |
> standard-4.2.1           | Karaf Deployer
> wrapper         | 4.2.1           |          | Started |
> standard-4.2.1           | Provide OS integration
> service-wrapper | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide OS integration (alias to wrapper
> feature)
> bundle          | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Bundle support
> config          | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide OSGi ConfigAdmin support
> diagnostic      | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Diagnostic support
> instance        | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Instance support
> jaas            | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide JAAS support
> log             | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Log support
> package         | 4.2.1           | x        | Started |
> standard-4.2.1           | Package commands and mbeans
> service         | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Service support
> system          | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide System support
> kar             | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide KAR (KARaf archive) support
> ssh             | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide a SSHd server on Karaf
> management      | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide a JMX MBeanServer and a set of
> MBeans in
> eventadmin      | 4.2.1           | x        | Started |
> standard-4.2.1           | OSGi Event Admin service specification for
> event-
> wrap            | 2.5.4           | x        | Started |
> standard-4.2.1           | Wrap URL handler
> spring          | 5.0.8.RELEASE_1 |          | Started |
> spring-4.2.1             | Spring 5.0.x support
> spring-jdbc     | 5.0.8.RELEASE_1 |          | Started |
> spring-4.2.1             | Spring 5.0.x JDBC support
> spring-tx       | 5.0.8.RELEASE_1 |          | Started |
> spring-4.2.1             | Spring 5.0.x Transaction (TX) support
> xml-specs-api   | 2.9.0           |          | Started |
> camel-2.22.1             |
> camel           | 2.22.1          | x        | Started |
> camel-2.22.1             |
> camel-core      | 2.22.1          |          | Started |
> camel-2.22.1             |
> camel-blueprint | 2.22.1          | x        | Started |
> camel-2.22.1             |
> camel-sql       | 2.22.1          | x        | Started |
> camel-2.22.1             |
> camel-stream    | 2.22.1          | x        | Started |
> camel-2.22.1             |
> xml-specs-api   | 2.9.0           |          | Started |
> camel-2.20.0             |
>
>
> karaf@root(feature)> feature:install -v pax-jdbc-spec
> Adding features: pax-jdbc-spec/[1.3.0,1.3.0]
> No deployment change.
> Done.
> karaf@root(feature)> feature:install -v pax-jdbc-jtds
> Adding features: pax-jdbc-jtds/[1.3.0,1.3.0]
> No deployment change.
> Done.
> karaf@root(feature)>
>
> As for installed bundles, I do have the apache.commons/commons-dbcp2
> version 2.5.0 installed that matches my commons dependency in my POM
>
>     <dependency>
>     <groupId>org.apache.commons</groupId>
>     <artifactId>commons-dbcp2</artifactId>
>     <version>2.5.0</version>
>     </dependency>
>
> Perhaps commons should be installed as a "feature" and not a "bundle"?
> I haven't been able to find a reference as to the name of it.
>
> Thanks all!
>
>
> On Thursday, October 25, 2018, 12:20:25 AM EDT, Jean-Baptiste Onofré
> <jb...@nanthrax.net> <ma...@nanthrax.net> wrote:
>
>
>
>
>
> Hi,
>
> you can please try using feature:install -v and send the complete output ?
>
> Thanks
> Regards
> JB
>
> On 24/10/2018 19:37, bohnjerry wrote:
> > I am trying to install a maven Camel project and I get this error:
> > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing
> > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
> > osgi.wiring.package;
> >
> (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
> > Unresolved requirements:
> >
> > I've tried to install every package and feature even remotely
> related (that
> > I could find).. still no dice.
> > Ideas?
> >
> >
> >
> >
> > --
> > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> >
>
>
>
>


Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by "John F. Berry" <bo...@yahoo.com>.
 I couldn't install camel-hl7 until I performed a "install:repo-add camel 2.21.1"then I installed:camel-corecamel-hl7camel-blueprint
but now Karaf complains now when I install my package that it's missing camel:org.osgi.framework.BundleException: Unable to resolve EDMtoPSoft-java [45](R 45.0): missing requirement [EDMtoPSoft-java [45](R 45.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0))) Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)] osgi.wiring.package; (&(osgi
.wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))]


    On Thursday, October 25, 2018, 10:07:41 AM EDT, Francois Papon <fr...@openobject.fr> wrote:  
 
  
Yes, you have to install camel features :
 
karaf@root()> feature:install camel-hl7
 
regards,
 
 François Papon
fpapon@apache.org Le 25/10/2018 à 18:01, John F. Berry a écrit :
  
 
 Thanks.. I moved the data folder off (just for reference) and created a new data folder. I now have no bundles (well besides the default one).. karaf@root()> bundle:list
 START LEVEL 100 , List Threshold: 50
 ID | State  | Lvl | Version | Name
---+--------+-----+---------+------------------------------------------
  23 | Active |  80 | 4.2.1   | Apache Karaf :: OSGi Services :: Event
  
   Now I'm back to missing a reference to ca.uhn.hl7v2 which earlier in this thread I was instructed to install the bundle for.  Should I be installing a feature?
  
  Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)] osgi.wiring.package; (osgi.wiring.package=ca.uhn.hl7v2.model)
    
      On Thursday, October 25, 2018, 9:48:40 AM EDT, Francois Papon <fr...@openobject.fr> wrote:  
  
     
I think it's better to remove the "data" directory and re-install your project ;)
 
regards,
 
 François Papon
fpapon@apache.org Le 25/10/2018 à 17:34, John F. Berry a écrit :
  
 
     Thank you Francois,  Here is the result of installing (-v switch): 
  karaf@root()> feature:install -v pax-jdbc-pool-dbcp2
 Adding features: pax-jdbc-pool-dbcp2/[1.3.0,1.3.0]
 Changes to perform:
   Region: root
     Bundles to install:
       mvn:org.apache.commons/commons-dbcp2/2.1.1
       mvn:org.apache.commons/commons-pool2/2.5.0
      mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
 Stopping bundles:
   org.apache.camel.karaf.camel-karaf-commands/2.22.1
   org.apache.camel.camel-commands-core/2.22.1
   org.apache.camel.camel-sql/2.22.1
   org.apache.camel.camel-stream/2.22.1
   org.apache.camel.camel-blueprint/2.22.1
   org.apache.camel.camel-core/2.22.1
   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
 Installing bundles:
   mvn:org.apache.commons/commons-dbcp2/2.1.1
   mvn:org.apache.commons/commons-pool2/2.5.0
  mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
 Refreshing bundles:
     org.apache.camel.camel-blueprint/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.camel.camel-commands-core/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.camel.camel-core/2.22.1 (Wired toorg.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.camel.camel-sql/2.22.1 (Wired toorg.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.camel.camel-stream/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.camel.karaf.camel-karaf-commands/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 (Should be wired to: org.apache.commons.pool2/2.5.0 (through [org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1] osgi.wiring.package
 ; resolution:=optional;filter:="(&(osgi.wiring.package=org.apache.commons.pool2)(version>=2.4.0)(!(version>=3.0.0)))"))
     org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 (Should be wired to: org.apache.servicemix.bundles.cglib/3.2.4.1 (through [org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1] osgi
 .wiring.package; resolution:=optional;filter:="(&(osgi.wiring.package=net.sf.cglib.beans)(version>=3.0.0)(!(version>=4.0.0)))"))
     org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is being refreshed)
 Starting bundles:
   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
   org.apache.camel.camel-core/2.22.1
   org.apache.camel.camel-blueprint/2.22.1
   org.apache.camel.camel-stream/2.22.1
   org.apache.camel.camel-sql/2.22.1
   org.apache.servicemix.bundles.cglib/3.2.4.1
   org.apache.commons.pool2/2.5.0
   org.apache.commons.dbcp2/2.1.1
   org.ops4j.pax.jdbc.pool.common/1.3.0
   org.ops4j.pax.jdbc.pool.dbcp2/1.3.0
   org.apache.camel.camel-commands-core/2.22.1
   org.apache.camel.karaf.camel-karaf-commands/2.22.1
  Done.
  
   I am still getting a missing requirement, caused by Unable to resolve org.apache.commons.commons-dbcp2 [79] Should I uninstall the bundle since I installed the feature? Thanks
    
      On Thursday, October 25, 2018, 9:26:25 AM EDT, Francois Papon <fr...@openobject.fr> wrote:  
  
     
Hi,
 
You can install this feature :
 
pax-jdbc-pool-dbcp2
 
regards,
 
 François Papon
fpapon@apache.org Le 25/10/2018 à 17:18, John F. Berry a écrit :
  
 
     Thanks for the help Jean-Baptiste, I've been learning so much through this process. On which feature do you want me to "install -v" on?   The pax=jdbc* ?  I did those below, just in case.
  Here are my installed features:
 
 karaf@root(feature)> feature:list -i
 Name            | Version         | Required | State   | Repository               | Description
----------------+-----------------+----------+---------+--------------------------+--------------------------------------------------
 pax-jdbc-spec   | 1.3.0           |          | Started | org.ops4j.pax.jdbc-1.3.0 | Provides OSGi JDBC Service spec
 pax-jdbc-jtds   | 1.3.0           | x        | Started | org.ops4j.pax.jdbc-1.3.0 | Provides JDBC jTDS DataSourceFactory
 xml-specs-api   | 2.9.0           |          | Started | camel-2.21.1             |
 aries-proxy     | 4.2.1           |          | Started | standard-4.2.1           | Aries Proxy
 aries-blueprint | 4.2.1           | x        | Started | standard-4.2.1           | Aries Blueprint
 feature         | 4.2.1           | x        | Started | standard-4.2.1           | Features Support
 shell           | 4.2.1           | x        | Started | standard-4.2.1           | Karaf Shell
 deployer        | 4.2.1           | x        | Started | standard-4.2.1           | Karaf Deployer
 wrapper         | 4.2.1           |          | Started | standard-4.2.1           | Provide OS integration
 service-wrapper | 4.2.1           | x        | Started | standard-4.2.1           | Provide OS integration (alias to wrapper feature)
 bundle          | 4.2.1           | x        | Started | standard-4.2.1           | Provide Bundle support
 config          | 4.2.1           | x        | Started | standard-4.2.1           | Provide OSGi ConfigAdmin support
 diagnostic      | 4.2.1           | x        | Started | standard-4.2.1           | Provide Diagnostic support
 instance        | 4.2.1           | x        | Started | standard-4.2.1           | Provide Instance support
 jaas            | 4.2.1           | x        | Started | standard-4.2.1           | Provide JAAS support
 log             | 4.2.1           | x        | Started | standard-4.2.1           | Provide Log support
 package         | 4.2.1           | x        | Started | standard-4.2.1           | Package commands and mbeans
 service         | 4.2.1           | x        | Started | standard-4.2.1           | Provide Service support
 system          | 4.2.1           | x        | Started | standard-4.2.1           | Provide System support
 kar             | 4.2.1           | x        | Started | standard-4.2.1           | Provide KAR (KARaf archive) support
 ssh             | 4.2.1           | x        | Started | standard-4.2.1           | Provide a SSHd server on Karaf
 management      | 4.2.1           | x        | Started | standard-4.2.1           | Provide a JMX MBeanServer and a set of MBeans in
 eventadmin      | 4.2.1           | x        | Started | standard-4.2.1           | OSGi Event Admin service specification for event-
 wrap            | 2.5.4           | x        | Started | standard-4.2.1           | Wrap URL handler
 spring          | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x support
 spring-jdbc     | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x JDBC support
 spring-tx       | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x Transaction (TX) support
 xml-specs-api   | 2.9.0           |          | Started | camel-2.22.1             |
 camel           | 2.22.1          | x        | Started | camel-2.22.1             |
 camel-core      | 2.22.1          |          | Started | camel-2.22.1             |
 camel-blueprint | 2.22.1          | x        | Started | camel-2.22.1             |
 camel-sql       | 2.22.1          | x        | Started | camel-2.22.1             |
 camel-stream    | 2.22.1          | x        | Started | camel-2.22.1             |
 xml-specs-api   | 2.9.0           |          | Started | camel-2.20.0             |
 
 
 karaf@root(feature)> feature:install -v pax-jdbc-spec
 Adding features: pax-jdbc-spec/[1.3.0,1.3.0]
 No deployment change.
 Done.
 karaf@root(feature)> feature:install -v pax-jdbc-jtds
 Adding features: pax-jdbc-jtds/[1.3.0,1.3.0]
 No deployment change.
 Done.
  karaf@root(feature)>
  
   As for installed bundles, I do have the apache.commons/commons-dbcp2  version 2.5.0 installed that matches my commons dependency in my POM 
        <dependency>
     <groupId>org.apache.commons</groupId>
     <artifactId>commons-dbcp2</artifactId>
     <version>2.5.0</version>
     </dependency>
 
  Perhaps commons should be installed as a "feature" and not a "bundle"? I haven't been able to find a reference as to the name of it. 
  Thanks all!  
 
 On Thursday, October 25, 2018, 12:20:25 AM EDT, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote: 
 
 
 
 
 
 Hi,
 
 you can please try using feature:install -v and send the complete output ?
 
 Thanks
 Regards
 JB
 
 On 24/10/2018 19:37, bohnjerry wrote:
 > I am trying to install a maven Camel project and I get this error:
 > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing
 > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
 > osgi.wiring.package;
 >(&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
 > Unresolved requirements:
 > 
 > I've tried to install every package and feature even remotely related (that
 > I could find).. still no dice. 
 > Ideas?
 > 
 > 
 > 
 > 
 > --
 > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
 > 
 
  
       
       
   

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Francois Papon <fr...@openobject.fr>.
Yes, you have to install camel features :

karaf@root()> feature:install camel-hl7

regards,

François Papon
fpapon@apache.org

Le 25/10/2018 à 18:01, John F. Berry a écrit :
> Thanks..
> I moved the data folder off (just for reference) and created a new
> data folder.
> I now have no bundles (well besides the default one)..
> karaf@root()> bundle:list
> START LEVEL 100 , List Threshold: 50
> ID | State  | Lvl | Version | Name
> ---+--------+-----+---------+------------------------------------------
> 23 | Active |  80 | 4.2.1   | Apache Karaf :: OSGi Services :: Event
>
> Now I'm back to missing a reference to ca.uhn.hl7v2 which earlier in
> this thread I was instructed to install the bundle for.  Should I be
> installing a feature?
>
> Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)]
> osgi.wiring.package; (osgi.wiring.package=ca.uhn.hl7v2.model)
>
> On Thursday, October 25, 2018, 9:48:40 AM EDT, Francois Papon
> <fr...@openobject.fr> wrote:
>
>
> I think it's better to remove the "data" directory and re-install your
> project ;)
>
> regards,
>
> François Papon
> fpapon@apache.org <ma...@apache.org>
> Le 25/10/2018 à 17:34, John F. Berry a écrit :
> Thank you Francois,
> Here is the result of installing (-v switch):
>
> karaf@root()> feature:install -v pax-jdbc-pool-dbcp2
> Adding features: pax-jdbc-pool-dbcp2/[1.3.0,1.3.0]
> Changes to perform:
>   Region: root
>     Bundles to install:
>       mvn:org.apache.commons/commons-dbcp2/2.1.1
>       mvn:org.apache.commons/commons-pool2/2.5.0
>      
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
> Stopping bundles:
>   org.apache.camel.karaf.camel-karaf-commands/2.22.1
>   org.apache.camel.camel-commands-core/2.22.1
>   org.apache.camel.camel-sql/2.22.1
>   org.apache.camel.camel-stream/2.22.1
>   org.apache.camel.camel-blueprint/2.22.1
>   org.apache.camel.camel-core/2.22.1
>   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
> Installing bundles:
>   mvn:org.apache.commons/commons-dbcp2/2.1.1
>   mvn:org.apache.commons/commons-pool2/2.5.0
>  
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
> Refreshing bundles:
>     org.apache.camel.camel-blueprint/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.camel.camel-commands-core/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.camel.camel-core/2.22.1 (Wired to
> org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being
> refreshed)
>     org.apache.camel.camel-sql/2.22.1 (Wired to
> org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being
> refreshed)
>     org.apache.camel.camel-stream/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.camel.karaf.camel-karaf-commands/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 (Should
> be wired to: org.apache.commons.pool2/2.5.0 (through
> [org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1]
> osgi.wiring.package
> ; resolution:=optional;
> filter:="(&(osgi.wiring.package=org.apache.commons.pool2)(version>=2.4.0)(!(version>=3.0.0)))"))
>     org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1 (Wired
> to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is
> being refreshed)
>     org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
> (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
> which is being refreshed)
>    
> org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
> (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
> which is being refreshed)
>     org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 (Should
> be wired to: org.apache.servicemix.bundles.cglib/3.2.4.1 (through
> [org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1] osgi
> .wiring.package; resolution:=optional;
> filter:="(&(osgi.wiring.package=net.sf.cglib.beans)(version>=3.0.0)(!(version>=4.0.0)))"))
>     org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
> (Wired to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
> which is being refreshed)
>     org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1 (Wired
> to org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 which
> is being refreshed)
>     org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 (Wired to
> org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is
> being refreshed)
> Starting bundles:
>   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>   org.apache.camel.camel-core/2.22.1
>   org.apache.camel.camel-blueprint/2.22.1
>   org.apache.camel.camel-stream/2.22.1
>   org.apache.camel.camel-sql/2.22.1
>   org.apache.servicemix.bundles.cglib/3.2.4.1
>   org.apache.commons.pool2/2.5.0
>   org.apache.commons.dbcp2/2.1.1
>   org.ops4j.pax.jdbc.pool.common/1.3.0
>   org.ops4j.pax.jdbc.pool.dbcp2/1.3.0
>   org.apache.camel.camel-commands-core/2.22.1
>   org.apache.camel.karaf.camel-karaf-commands/2.22.1
> Done.
>
> I am still getting a missing requirement, caused by Unable to resolve
> org.apache.commons.commons-dbcp2 [79]
> Should I uninstall the bundle since I installed the feature?
> Thanks
>
> On Thursday, October 25, 2018, 9:26:25 AM EDT, Francois Papon
> <fr...@openobject.fr> <ma...@openobject.fr>
> wrote:
>
>
> Hi,
>
> You can install this feature :
>
> pax-jdbc-pool-dbcp2
>
> regards,
>
> François Papon
> fpapon@apache.org <ma...@apache.org>
> Le 25/10/2018 à 17:18, John F. Berry a écrit :
> Thanks for the help Jean-Baptiste, I've been learning so much through
> this process.
> On which feature do you want me to "install -v" on?   The pax=jdbc* ? 
> I did those below, just in case.
> Here are my installed features:
>
> karaf@root(feature)> feature:list -i
> Name            | Version         | Required | State   |
> Repository               | Description
> ----------------+-----------------+----------+---------+--------------------------+--------------------------------------------------
> pax-jdbc-spec   | 1.3.0           |          | Started |
> org.ops4j.pax.jdbc-1.3.0 | Provides OSGi JDBC Service spec
> pax-jdbc-jtds   | 1.3.0           | x        | Started |
> org.ops4j.pax.jdbc-1.3.0 | Provides JDBC jTDS DataSourceFactory
> xml-specs-api   | 2.9.0           |          | Started |
> camel-2.21.1             |
> aries-proxy     | 4.2.1           |          | Started |
> standard-4.2.1           | Aries Proxy
> aries-blueprint | 4.2.1           | x        | Started |
> standard-4.2.1           | Aries Blueprint
> feature         | 4.2.1           | x        | Started |
> standard-4.2.1           | Features Support
> shell           | 4.2.1           | x        | Started |
> standard-4.2.1           | Karaf Shell
> deployer        | 4.2.1           | x        | Started |
> standard-4.2.1           | Karaf Deployer
> wrapper         | 4.2.1           |          | Started |
> standard-4.2.1           | Provide OS integration
> service-wrapper | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide OS integration (alias to wrapper
> feature)
> bundle          | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Bundle support
> config          | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide OSGi ConfigAdmin support
> diagnostic      | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Diagnostic support
> instance        | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Instance support
> jaas            | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide JAAS support
> log             | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Log support
> package         | 4.2.1           | x        | Started |
> standard-4.2.1           | Package commands and mbeans
> service         | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Service support
> system          | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide System support
> kar             | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide KAR (KARaf archive) support
> ssh             | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide a SSHd server on Karaf
> management      | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide a JMX MBeanServer and a set of
> MBeans in
> eventadmin      | 4.2.1           | x        | Started |
> standard-4.2.1           | OSGi Event Admin service specification for
> event-
> wrap            | 2.5.4           | x        | Started |
> standard-4.2.1           | Wrap URL handler
> spring          | 5.0.8.RELEASE_1 |          | Started |
> spring-4.2.1             | Spring 5.0.x support
> spring-jdbc     | 5.0.8.RELEASE_1 |          | Started |
> spring-4.2.1             | Spring 5.0.x JDBC support
> spring-tx       | 5.0.8.RELEASE_1 |          | Started |
> spring-4.2.1             | Spring 5.0.x Transaction (TX) support
> xml-specs-api   | 2.9.0           |          | Started |
> camel-2.22.1             |
> camel           | 2.22.1          | x        | Started |
> camel-2.22.1             |
> camel-core      | 2.22.1          |          | Started |
> camel-2.22.1             |
> camel-blueprint | 2.22.1          | x        | Started |
> camel-2.22.1             |
> camel-sql       | 2.22.1          | x        | Started |
> camel-2.22.1             |
> camel-stream    | 2.22.1          | x        | Started |
> camel-2.22.1             |
> xml-specs-api   | 2.9.0           |          | Started |
> camel-2.20.0             |
>
>
> karaf@root(feature)> feature:install -v pax-jdbc-spec
> Adding features: pax-jdbc-spec/[1.3.0,1.3.0]
> No deployment change.
> Done.
> karaf@root(feature)> feature:install -v pax-jdbc-jtds
> Adding features: pax-jdbc-jtds/[1.3.0,1.3.0]
> No deployment change.
> Done.
> karaf@root(feature)>
>
> As for installed bundles, I do have the apache.commons/commons-dbcp2
> version 2.5.0 installed that matches my commons dependency in my POM
>
>     <dependency>
>     <groupId>org.apache.commons</groupId>
>     <artifactId>commons-dbcp2</artifactId>
>     <version>2.5.0</version>
>     </dependency>
>
> Perhaps commons should be installed as a "feature" and not a "bundle"?
> I haven't been able to find a reference as to the name of it.
>
> Thanks all!
>
>
> On Thursday, October 25, 2018, 12:20:25 AM EDT, Jean-Baptiste Onofré
> <jb...@nanthrax.net> <ma...@nanthrax.net> wrote:
>
>
>
>
>
> Hi,
>
> you can please try using feature:install -v and send the complete output ?
>
> Thanks
> Regards
> JB
>
> On 24/10/2018 19:37, bohnjerry wrote:
> > I am trying to install a maven Camel project and I get this error:
> > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing
> > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
> > osgi.wiring.package;
> >
> (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
> > Unresolved requirements:
> >
> > I've tried to install every package and feature even remotely
> related (that
> > I could find).. still no dice.
> > Ideas?
> >
> >
> >
> >
> > --
> > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> >
>
>
>


Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by "John F. Berry" <bo...@yahoo.com>.
 Thanks..I moved the data folder off (just for reference) and created a new data folder.I now have no bundles (well besides the default one)..karaf@root()> bundle:list
START LEVEL 100 , List Threshold: 50
ID | State  | Lvl | Version | Name
---+--------+-----+---------+------------------------------------------
23 | Active |  80 | 4.2.1   | Apache Karaf :: OSGi Services :: Event

Now I'm back to missing a reference to ca.uhn.hl7v2 which earlier in this thread I was instructed to install the bundle for.  Should I be installing a feature?

Unresolved requirements: [[EDMtoPSoft-java [45](R 45.0)] osgi.wiring.package; (osgi.wiring.package=ca.uhn.hl7v2.model)

    On Thursday, October 25, 2018, 9:48:40 AM EDT, Francois Papon <fr...@openobject.fr> wrote:  
 
  
I think it's better to remove the "data" directory and re-install your project ;)
 
regards,
 
 François Papon
fpapon@apache.org Le 25/10/2018 à 17:34, John F. Berry a écrit :
  
 
 Thank you Francois,  Here is the result of installing (-v switch): 
  karaf@root()> feature:install -v pax-jdbc-pool-dbcp2
 Adding features: pax-jdbc-pool-dbcp2/[1.3.0,1.3.0]
 Changes to perform:
   Region: root
     Bundles to install:
       mvn:org.apache.commons/commons-dbcp2/2.1.1
       mvn:org.apache.commons/commons-pool2/2.5.0
      mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
 Stopping bundles:
   org.apache.camel.karaf.camel-karaf-commands/2.22.1
   org.apache.camel.camel-commands-core/2.22.1
   org.apache.camel.camel-sql/2.22.1
   org.apache.camel.camel-stream/2.22.1
   org.apache.camel.camel-blueprint/2.22.1
   org.apache.camel.camel-core/2.22.1
   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
 Installing bundles:
   mvn:org.apache.commons/commons-dbcp2/2.1.1
   mvn:org.apache.commons/commons-pool2/2.5.0
  mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
 Refreshing bundles:
     org.apache.camel.camel-blueprint/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.camel.camel-commands-core/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.camel.camel-core/2.22.1 (Wired to org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.camel.camel-sql/2.22.1 (Wired to org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.camel.camel-stream/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.camel.karaf.camel-karaf-commands/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
     org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 (Should be wired to: org.apache.commons.pool2/2.5.0 (through [org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1] osgi.wiring.package
 ; resolution:=optional;filter:="(&(osgi.wiring.package=org.apache.commons.pool2)(version>=2.4.0)(!(version>=3.0.0)))"))
     org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1  which is being refreshed)
     org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 (Should be wired to: org.apache.servicemix.bundles.cglib/3.2.4.1 (through  [org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1] osgi
 .wiring.package; resolution:=optional;filter:="(&(osgi.wiring.package=net.sf.cglib.beans)(version>=3.0.0)(!(version>=4.0.0)))"))
     org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1  which is being refreshed)
     org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 which is being refreshed)
     org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is being refreshed)
 Starting bundles:
   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
   org.apache.camel.camel-core/2.22.1
   org.apache.camel.camel-blueprint/2.22.1
   org.apache.camel.camel-stream/2.22.1
   org.apache.camel.camel-sql/2.22.1
   org.apache.servicemix.bundles.cglib/3.2.4.1
   org.apache.commons.pool2/2.5.0
   org.apache.commons.dbcp2/2.1.1
   org.ops4j.pax.jdbc.pool.common/1.3.0
   org.ops4j.pax.jdbc.pool.dbcp2/1.3.0
   org.apache.camel.camel-commands-core/2.22.1
   org.apache.camel.karaf.camel-karaf-commands/2.22.1
  Done.
  
   I am still getting a missing requirement, caused by Unable to resolve org.apache.commons.commons-dbcp2 [79] Should I uninstall the bundle since I installed the feature? Thanks
    
      On Thursday, October 25, 2018, 9:26:25 AM EDT, Francois Papon <fr...@openobject.fr> wrote:  
  
     
Hi,
 
You can install this feature :
 
pax-jdbc-pool-dbcp2
 
regards,
 
 François Papon
fpapon@apache.org Le 25/10/2018 à 17:18, John F. Berry a écrit :
  
 
     Thanks for the help Jean-Baptiste, I've been learning so much through this process. On which feature do you want me to "install -v" on?   The pax=jdbc* ?  I did those below, just in case.
  Here are my installed features:
 
 karaf@root(feature)> feature:list -i
 Name            | Version         | Required | State   | Repository               | Description
----------------+-----------------+----------+---------+--------------------------+--------------------------------------------------
 pax-jdbc-spec   | 1.3.0           |          | Started | org.ops4j.pax.jdbc-1.3.0 | Provides OSGi JDBC Service spec
 pax-jdbc-jtds   | 1.3.0           | x        | Started | org.ops4j.pax.jdbc-1.3.0 | Provides JDBC jTDS DataSourceFactory
 xml-specs-api   | 2.9.0           |          | Started | camel-2.21.1             |
 aries-proxy     | 4.2.1           |          | Started | standard-4.2.1           | Aries Proxy
 aries-blueprint | 4.2.1           | x        | Started | standard-4.2.1           | Aries Blueprint
 feature         | 4.2.1           | x        | Started | standard-4.2.1           | Features Support
 shell           | 4.2.1           | x        | Started | standard-4.2.1           | Karaf Shell
 deployer        | 4.2.1           | x        | Started | standard-4.2.1           | Karaf Deployer
 wrapper         | 4.2.1           |          | Started | standard-4.2.1           | Provide OS integration
 service-wrapper | 4.2.1           | x        | Started | standard-4.2.1           | Provide OS integration (alias to wrapper feature)
 bundle          | 4.2.1           | x        | Started | standard-4.2.1           | Provide Bundle support
 config          | 4.2.1           | x        | Started | standard-4.2.1           | Provide OSGi ConfigAdmin support
 diagnostic      | 4.2.1           | x        | Started | standard-4.2.1           | Provide Diagnostic support
 instance        | 4.2.1           | x        | Started | standard-4.2.1           | Provide Instance support
 jaas            | 4.2.1           | x        | Started | standard-4.2.1           | Provide JAAS support
 log             | 4.2.1           | x        | Started | standard-4.2.1           | Provide Log support
 package         | 4.2.1           | x        | Started | standard-4.2.1           | Package commands and mbeans
 service         | 4.2.1           | x        | Started | standard-4.2.1           | Provide Service support
 system          | 4.2.1           | x        | Started | standard-4.2.1           | Provide System support
 kar             | 4.2.1           | x        | Started | standard-4.2.1           | Provide KAR (KARaf archive) support
 ssh             | 4.2.1           | x        | Started | standard-4.2.1           | Provide a SSHd server on Karaf
 management      | 4.2.1           | x        | Started | standard-4.2.1           | Provide a JMX MBeanServer and a set of MBeans in
 eventadmin      | 4.2.1           | x        | Started | standard-4.2.1           | OSGi Event Admin service specification for event-
 wrap            | 2.5.4           | x        | Started | standard-4.2.1           | Wrap URL handler
 spring          | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x support
 spring-jdbc     | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x JDBC support
 spring-tx       | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x Transaction (TX) support
 xml-specs-api   | 2.9.0           |          | Started | camel-2.22.1             |
 camel           | 2.22.1          | x        | Started | camel-2.22.1             |
 camel-core      | 2.22.1          |          | Started | camel-2.22.1             |
 camel-blueprint | 2.22.1          | x        | Started | camel-2.22.1             |
 camel-sql       | 2.22.1          | x        | Started | camel-2.22.1             |
 camel-stream    | 2.22.1          | x        | Started | camel-2.22.1             |
 xml-specs-api   | 2.9.0           |          | Started | camel-2.20.0             |
 
 
 karaf@root(feature)> feature:install -v pax-jdbc-spec
 Adding features: pax-jdbc-spec/[1.3.0,1.3.0]
 No deployment change.
 Done.
 karaf@root(feature)> feature:install -v pax-jdbc-jtds
 Adding features: pax-jdbc-jtds/[1.3.0,1.3.0]
 No deployment change.
 Done.
  karaf@root(feature)>
  
   As for installed bundles, I do have the apache.commons/commons-dbcp2 version 2.5.0 installed that matches my commons dependency in my POM 
        <dependency>
     <groupId>org.apache.commons</groupId>
     <artifactId>commons-dbcp2</artifactId>
     <version>2.5.0</version>
     </dependency>
 
  Perhaps commons should be installed as a "feature" and not a "bundle"? I haven't been able to find a reference as to the name of it. 
  Thanks all!  
 
 On Thursday, October 25, 2018, 12:20:25 AM EDT, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote: 
 
 
 
 
 
 Hi,
 
 you can please try using feature:install -v and send the complete output ?
 
 Thanks
 Regards
 JB
 
 On 24/10/2018 19:37, bohnjerry wrote:
 > I am trying to install a maven Camel project and I get this error:
 > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing
 > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
 > osgi.wiring.package;
 >(&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
 > Unresolved requirements:
 > 
 > I've tried to install every package and feature even remotely related (that
 > I could find).. still no dice. 
 > Ideas?
 > 
 > 
 > 
 > 
 > --
 > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
 > 
 
  
       
   

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Francois Papon <fr...@openobject.fr>.
I think it's better to remove the "data" directory and re-install your
project ;)

regards,

François Papon
fpapon@apache.org

Le 25/10/2018 à 17:34, John F. Berry a écrit :
> Thank you Francois,
> Here is the result of installing (-v switch):
>
> karaf@root()> feature:install -v pax-jdbc-pool-dbcp2
> Adding features: pax-jdbc-pool-dbcp2/[1.3.0,1.3.0]
> Changes to perform:
>   Region: root
>     Bundles to install:
>       mvn:org.apache.commons/commons-dbcp2/2.1.1
>       mvn:org.apache.commons/commons-pool2/2.5.0
>      
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>       mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
> Stopping bundles:
>   org.apache.camel.karaf.camel-karaf-commands/2.22.1
>   org.apache.camel.camel-commands-core/2.22.1
>   org.apache.camel.camel-sql/2.22.1
>   org.apache.camel.camel-stream/2.22.1
>   org.apache.camel.camel-blueprint/2.22.1
>   org.apache.camel.camel-core/2.22.1
>   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
> Installing bundles:
>   mvn:org.apache.commons/commons-dbcp2/2.1.1
>   mvn:org.apache.commons/commons-pool2/2.5.0
>  
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
>   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
>   mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
> Refreshing bundles:
>     org.apache.camel.camel-blueprint/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.camel.camel-commands-core/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.camel.camel-core/2.22.1 (Wired to
> org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being
> refreshed)
>     org.apache.camel.camel-sql/2.22.1 (Wired to
> org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being
> refreshed)
>     org.apache.camel.camel-stream/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.camel.karaf.camel-karaf-commands/2.22.1 (Wired to
> org.apache.camel.camel-core/2.22.1 which is being refreshed)
>     org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 (Should
> be wired to: org.apache.commons.pool2/2.5.0 (through
> [org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1]
> osgi.wiring.package
> ; resolution:=optional;
> filter:="(&(osgi.wiring.package=org.apache.commons.pool2)(version>=2.4.0)(!(version>=3.0.0)))"))
>     org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1 (Wired
> to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is
> being refreshed)
>     org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
> (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
> which is being refreshed)
>    
> org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
> (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
> which is being refreshed)
>     org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 (Should
> be wired to: org.apache.servicemix.bundles.cglib/3.2.4.1 (through
> [org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1] osgi
> .wiring.package; resolution:=optional;
> filter:="(&(osgi.wiring.package=net.sf.cglib.beans)(version>=3.0.0)(!(version>=4.0.0)))"))
>     org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
> (Wired to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
> which is being refreshed)
>     org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1 (Wired
> to org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 which
> is being refreshed)
>     org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 (Wired to
> org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is
> being refreshed)
> Starting bundles:
>   org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
>   org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
>   org.apache.camel.camel-core/2.22.1
>   org.apache.camel.camel-blueprint/2.22.1
>   org.apache.camel.camel-stream/2.22.1
>   org.apache.camel.camel-sql/2.22.1
>   org.apache.servicemix.bundles.cglib/3.2.4.1
>   org.apache.commons.pool2/2.5.0
>   org.apache.commons.dbcp2/2.1.1
>   org.ops4j.pax.jdbc.pool.common/1.3.0
>   org.ops4j.pax.jdbc.pool.dbcp2/1.3.0
>   org.apache.camel.camel-commands-core/2.22.1
>   org.apache.camel.karaf.camel-karaf-commands/2.22.1
> Done.
>
> I am still getting a missing requirement, caused by Unable to resolve
> org.apache.commons.commons-dbcp2 [79]
> Should I uninstall the bundle since I installed the feature?
> Thanks
>
> On Thursday, October 25, 2018, 9:26:25 AM EDT, Francois Papon
> <fr...@openobject.fr> wrote:
>
>
> Hi,
>
> You can install this feature :
>
> pax-jdbc-pool-dbcp2
>
> regards,
>
> François Papon
> fpapon@apache.org <ma...@apache.org>
> Le 25/10/2018 à 17:18, John F. Berry a écrit :
> Thanks for the help Jean-Baptiste, I've been learning so much through
> this process.
> On which feature do you want me to "install -v" on?   The pax=jdbc* ? 
> I did those below, just in case.
> Here are my installed features:
>
> karaf@root(feature)> feature:list -i
> Name            | Version         | Required | State   |
> Repository               | Description
> ----------------+-----------------+----------+---------+--------------------------+--------------------------------------------------
> pax-jdbc-spec   | 1.3.0           |          | Started |
> org.ops4j.pax.jdbc-1.3.0 | Provides OSGi JDBC Service spec
> pax-jdbc-jtds   | 1.3.0           | x        | Started |
> org.ops4j.pax.jdbc-1.3.0 | Provides JDBC jTDS DataSourceFactory
> xml-specs-api   | 2.9.0           |          | Started |
> camel-2.21.1             |
> aries-proxy     | 4.2.1           |          | Started |
> standard-4.2.1           | Aries Proxy
> aries-blueprint | 4.2.1           | x        | Started |
> standard-4.2.1           | Aries Blueprint
> feature         | 4.2.1           | x        | Started |
> standard-4.2.1           | Features Support
> shell           | 4.2.1           | x        | Started |
> standard-4.2.1           | Karaf Shell
> deployer        | 4.2.1           | x        | Started |
> standard-4.2.1           | Karaf Deployer
> wrapper         | 4.2.1           |          | Started |
> standard-4.2.1           | Provide OS integration
> service-wrapper | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide OS integration (alias to wrapper
> feature)
> bundle          | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Bundle support
> config          | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide OSGi ConfigAdmin support
> diagnostic      | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Diagnostic support
> instance        | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Instance support
> jaas            | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide JAAS support
> log             | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Log support
> package         | 4.2.1           | x        | Started |
> standard-4.2.1           | Package commands and mbeans
> service         | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Service support
> system          | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide System support
> kar             | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide KAR (KARaf archive) support
> ssh             | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide a SSHd server on Karaf
> management      | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide a JMX MBeanServer and a set of
> MBeans in
> eventadmin      | 4.2.1           | x        | Started |
> standard-4.2.1           | OSGi Event Admin service specification for
> event-
> wrap            | 2.5.4           | x        | Started |
> standard-4.2.1           | Wrap URL handler
> spring          | 5.0.8.RELEASE_1 |          | Started |
> spring-4.2.1             | Spring 5.0.x support
> spring-jdbc     | 5.0.8.RELEASE_1 |          | Started |
> spring-4.2.1             | Spring 5.0.x JDBC support
> spring-tx       | 5.0.8.RELEASE_1 |          | Started |
> spring-4.2.1             | Spring 5.0.x Transaction (TX) support
> xml-specs-api   | 2.9.0           |          | Started |
> camel-2.22.1             |
> camel           | 2.22.1          | x        | Started |
> camel-2.22.1             |
> camel-core      | 2.22.1          |          | Started |
> camel-2.22.1             |
> camel-blueprint | 2.22.1          | x        | Started |
> camel-2.22.1             |
> camel-sql       | 2.22.1          | x        | Started |
> camel-2.22.1             |
> camel-stream    | 2.22.1          | x        | Started |
> camel-2.22.1             |
> xml-specs-api   | 2.9.0           |          | Started |
> camel-2.20.0             |
>
>
> karaf@root(feature)> feature:install -v pax-jdbc-spec
> Adding features: pax-jdbc-spec/[1.3.0,1.3.0]
> No deployment change.
> Done.
> karaf@root(feature)> feature:install -v pax-jdbc-jtds
> Adding features: pax-jdbc-jtds/[1.3.0,1.3.0]
> No deployment change.
> Done.
> karaf@root(feature)>
>
> As for installed bundles, I do have the apache.commons/commons-dbcp2
> version 2.5.0 installed that matches my commons dependency in my POM
>
>     <dependency>
>     <groupId>org.apache.commons</groupId>
>     <artifactId>commons-dbcp2</artifactId>
>     <version>2.5.0</version>
>     </dependency>
>
> Perhaps commons should be installed as a "feature" and not a "bundle"?
> I haven't been able to find a reference as to the name of it.
>
> Thanks all!
>
>
> On Thursday, October 25, 2018, 12:20:25 AM EDT, Jean-Baptiste Onofré
> <jb...@nanthrax.net> <ma...@nanthrax.net> wrote:
>
>
>
>
>
> Hi,
>
> you can please try using feature:install -v and send the complete output ?
>
> Thanks
> Regards
> JB
>
> On 24/10/2018 19:37, bohnjerry wrote:
> > I am trying to install a maven Camel project and I get this error:
> > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing
> > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
> > osgi.wiring.package;
> >
> (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
> > Unresolved requirements:
> >
> > I've tried to install every package and feature even remotely
> related (that
> > I could find).. still no dice.
> > Ideas?
> >
> >
> >
> >
> > --
> > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> >
>
>


Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by "John F. Berry" <bo...@yahoo.com>.
 Thank you Francois, Here is the result of installing (-v switch):
karaf@root()> feature:install -v pax-jdbc-pool-dbcp2
Adding features: pax-jdbc-pool-dbcp2/[1.3.0,1.3.0]
Changes to perform:
  Region: root
    Bundles to install:
      mvn:org.apache.commons/commons-dbcp2/2.1.1
      mvn:org.apache.commons/commons-pool2/2.5.0
      mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
      mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
      mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
Stopping bundles:
  org.apache.camel.karaf.camel-karaf-commands/2.22.1
  org.apache.camel.camel-commands-core/2.22.1
  org.apache.camel.camel-sql/2.22.1
  org.apache.camel.camel-stream/2.22.1
  org.apache.camel.camel-blueprint/2.22.1
  org.apache.camel.camel-core/2.22.1
  org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
  org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
  org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
  org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
  org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
  org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
  org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
  org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
Installing bundles:
  mvn:org.apache.commons/commons-dbcp2/2.1.1
  mvn:org.apache.commons/commons-pool2/2.5.0
  mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cglib/3.2.4_1
  mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.3.0
  mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-dbcp2/1.3.0
Refreshing bundles:
    org.apache.camel.camel-blueprint/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
    org.apache.camel.camel-commands-core/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
    org.apache.camel.camel-core/2.22.1 (Wired to org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being refreshed)
    org.apache.camel.camel-sql/2.22.1 (Wired to org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 which is being refreshed)
    org.apache.camel.camel-stream/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
    org.apache.camel.karaf.camel-karaf-commands/2.22.1 (Wired to org.apache.camel.camel-core/2.22.1 which is being refreshed)
    org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 (Should be wired to: org.apache.commons.pool2/2.5.0 (through [org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1] osgi.wiring.package
; resolution:=optional; filter:="(&(osgi.wiring.package=org.apache.commons.pool2)(version>=2.4.0)(!(version>=3.0.0)))"))
    org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is being refreshed)
    org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is being refreshed)
    org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is being refreshed)
    org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 (Should be wired to: org.apache.servicemix.bundles.cglib/3.2.4.1 (through [org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1] osgi
.wiring.package; resolution:=optional; filter:="(&(osgi.wiring.package=net.sf.cglib.beans)(version>=3.0.0)(!(version>=4.0.0)))"))
    org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1 which is being refreshed)
    org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1 which is being refreshed)
    org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1 which is being refreshed)
Starting bundles:
  org.apache.servicemix.bundles.spring-core/5.0.8.RELEASE_1
  org.apache.servicemix.bundles.spring-beans/5.0.8.RELEASE_1
  org.apache.servicemix.bundles.spring-aop/5.0.8.RELEASE_1
  org.apache.servicemix.bundles.spring-expression/5.0.8.RELEASE_1
  org.apache.servicemix.bundles.spring-context/5.0.8.RELEASE_1
  org.apache.servicemix.bundles.spring-tx/5.0.8.RELEASE_1
  org.apache.servicemix.bundles.spring-jdbc/5.0.8.RELEASE_1
  org.apache.servicemix.bundles.spring-context-support/5.0.8.RELEASE_1
  org.apache.camel.camel-core/2.22.1
  org.apache.camel.camel-blueprint/2.22.1
  org.apache.camel.camel-stream/2.22.1
  org.apache.camel.camel-sql/2.22.1
  org.apache.servicemix.bundles.cglib/3.2.4.1
  org.apache.commons.pool2/2.5.0
  org.apache.commons.dbcp2/2.1.1
  org.ops4j.pax.jdbc.pool.common/1.3.0
  org.ops4j.pax.jdbc.pool.dbcp2/1.3.0
  org.apache.camel.camel-commands-core/2.22.1
  org.apache.camel.karaf.camel-karaf-commands/2.22.1
Done.

I am still getting a missing requirement, caused by Unable to resolve org.apache.commons.commons-dbcp2 [79]Should I uninstall the bundle since I installed the feature?Thanks

    On Thursday, October 25, 2018, 9:26:25 AM EDT, Francois Papon <fr...@openobject.fr> wrote:  
 
  
Hi,
 
You can install this feature :
 
pax-jdbc-pool-dbcp2
 
regards,
 
 François Papon
fpapon@apache.org Le 25/10/2018 à 17:18, John F. Berry a écrit :
  
 
 Thanks for the help Jean-Baptiste, I've been learning so much through this process. On which feature do you want me to "install -v" on?   The pax=jdbc* ?  I did those below, just in case.
  Here are my installed features:
 
 karaf@root(feature)> feature:list -i
 Name            | Version         | Required | State   | Repository               | Description
----------------+-----------------+----------+---------+--------------------------+--------------------------------------------------
 pax-jdbc-spec   | 1.3.0           |          | Started | org.ops4j.pax.jdbc-1.3.0 | Provides OSGi JDBC Service spec
 pax-jdbc-jtds   | 1.3.0           | x        | Started | org.ops4j.pax.jdbc-1.3.0 | Provides JDBC jTDS DataSourceFactory
 xml-specs-api   | 2.9.0           |          | Started | camel-2.21.1             |
 aries-proxy     | 4.2.1           |          | Started | standard-4.2.1           | Aries Proxy
 aries-blueprint | 4.2.1           | x        | Started | standard-4.2.1           | Aries Blueprint
 feature         | 4.2.1           | x        | Started | standard-4.2.1           | Features Support
 shell           | 4.2.1           | x        | Started | standard-4.2.1           | Karaf Shell
 deployer        | 4.2.1           | x        | Started | standard-4.2.1           | Karaf Deployer
 wrapper         | 4.2.1           |          | Started | standard-4.2.1           | Provide OS integration
 service-wrapper | 4.2.1           | x        | Started | standard-4.2.1           | Provide OS integration (alias to wrapper feature)
 bundle          | 4.2.1           | x        | Started | standard-4.2.1           | Provide Bundle support
 config          | 4.2.1           | x        | Started | standard-4.2.1           | Provide OSGi ConfigAdmin support
 diagnostic      | 4.2.1           | x        | Started | standard-4.2.1           | Provide Diagnostic support
 instance        | 4.2.1           | x        | Started | standard-4.2.1           | Provide Instance support
 jaas            | 4.2.1           | x        | Started | standard-4.2.1           | Provide JAAS support
 log             | 4.2.1           | x        | Started | standard-4.2.1           | Provide Log support
 package         | 4.2.1           | x        | Started | standard-4.2.1           | Package commands and mbeans
 service         | 4.2.1           | x        | Started | standard-4.2.1           | Provide Service support
 system          | 4.2.1           | x        | Started | standard-4.2.1           | Provide System support
 kar             | 4.2.1           | x        | Started | standard-4.2.1           | Provide KAR (KARaf archive) support
 ssh             | 4.2.1           | x        | Started | standard-4.2.1           | Provide a SSHd server on Karaf
 management      | 4.2.1           | x        | Started | standard-4.2.1           | Provide a JMX MBeanServer and a set of MBeans in
 eventadmin      | 4.2.1           | x        | Started | standard-4.2.1           | OSGi Event Admin service specification for event-
 wrap            | 2.5.4           | x        | Started | standard-4.2.1           | Wrap URL handler
 spring          | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x support
 spring-jdbc     | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x JDBC support
 spring-tx       | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x Transaction (TX) support
 xml-specs-api   | 2.9.0           |          | Started | camel-2.22.1             |
 camel           | 2.22.1          | x        | Started | camel-2.22.1             |
 camel-core      | 2.22.1          |          | Started | camel-2.22.1             |
 camel-blueprint | 2.22.1          | x        | Started | camel-2.22.1             |
 camel-sql       | 2.22.1          | x        | Started | camel-2.22.1             |
 camel-stream    | 2.22.1          | x        | Started | camel-2.22.1             |
 xml-specs-api   | 2.9.0           |          | Started | camel-2.20.0             |
 
 
 karaf@root(feature)> feature:install -v pax-jdbc-spec
 Adding features: pax-jdbc-spec/[1.3.0,1.3.0]
 No deployment change.
 Done.
 karaf@root(feature)> feature:install -v pax-jdbc-jtds
 Adding features: pax-jdbc-jtds/[1.3.0,1.3.0]
 No deployment change.
 Done.
  karaf@root(feature)>
  
   As for installed bundles, I do have the apache.commons/commons-dbcp2 version 2.5.0 installed that matches my commons dependency in my POM 
        <dependency>
     <groupId>org.apache.commons</groupId>
     <artifactId>commons-dbcp2</artifactId>
     <version>2.5.0</version>
     </dependency>
 
  Perhaps commons should be installed as a "feature" and not a "bundle"? I haven't been able to find a reference as to the name of it. 
  Thanks all!  
 
 On Thursday, October 25, 2018, 12:20:25 AM EDT, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote: 
 
 
 
 
 
 Hi,
 
 you can please try using feature:install -v and send the complete output ?
 
 Thanks
 Regards
 JB
 
 On 24/10/2018 19:37, bohnjerry wrote:
 > I am trying to install a maven Camel project and I get this error:
 > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing
 > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
 > osgi.wiring.package;
 >(&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
 > Unresolved requirements:
 > 
 > I've tried to install every package and feature even remotely related (that
 > I could find).. still no dice. 
 > Ideas?
 > 
 > 
 > 
 > 
 > --
 > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
 > 
 
  
   

Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Francois Papon <fr...@openobject.fr>.
Hi,

You can install this feature :

pax-jdbc-pool-dbcp2

regards,

François Papon
fpapon@apache.org

Le 25/10/2018 à 17:18, John F. Berry a écrit :
> Thanks for the help Jean-Baptiste, I've been learning so much through
> this process.
> On which feature do you want me to "install -v" on?   The pax=jdbc* ? 
> I did those below, just in case.
> Here are my installed features:
>
> karaf@root(feature)> feature:list -i
> Name            | Version         | Required | State   |
> Repository               | Description
> ----------------+-----------------+----------+---------+--------------------------+--------------------------------------------------
> pax-jdbc-spec   | 1.3.0           |          | Started |
> org.ops4j.pax.jdbc-1.3.0 | Provides OSGi JDBC Service spec
> pax-jdbc-jtds   | 1.3.0           | x        | Started |
> org.ops4j.pax.jdbc-1.3.0 | Provides JDBC jTDS DataSourceFactory
> xml-specs-api   | 2.9.0           |          | Started |
> camel-2.21.1             |
> aries-proxy     | 4.2.1           |          | Started |
> standard-4.2.1           | Aries Proxy
> aries-blueprint | 4.2.1           | x        | Started |
> standard-4.2.1           | Aries Blueprint
> feature         | 4.2.1           | x        | Started |
> standard-4.2.1           | Features Support
> shell           | 4.2.1           | x        | Started |
> standard-4.2.1           | Karaf Shell
> deployer        | 4.2.1           | x        | Started |
> standard-4.2.1           | Karaf Deployer
> wrapper         | 4.2.1           |          | Started |
> standard-4.2.1           | Provide OS integration
> service-wrapper | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide OS integration (alias to wrapper
> feature)
> bundle          | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Bundle support
> config          | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide OSGi ConfigAdmin support
> diagnostic      | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Diagnostic support
> instance        | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Instance support
> jaas            | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide JAAS support
> log             | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Log support
> package         | 4.2.1           | x        | Started |
> standard-4.2.1           | Package commands and mbeans
> service         | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide Service support
> system          | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide System support
> kar             | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide KAR (KARaf archive) support
> ssh             | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide a SSHd server on Karaf
> management      | 4.2.1           | x        | Started |
> standard-4.2.1           | Provide a JMX MBeanServer and a set of
> MBeans in
> eventadmin      | 4.2.1           | x        | Started |
> standard-4.2.1           | OSGi Event Admin service specification for
> event-
> wrap            | 2.5.4           | x        | Started |
> standard-4.2.1           | Wrap URL handler
> spring          | 5.0.8.RELEASE_1 |          | Started |
> spring-4.2.1             | Spring 5.0.x support
> spring-jdbc     | 5.0.8.RELEASE_1 |          | Started |
> spring-4.2.1             | Spring 5.0.x JDBC support
> spring-tx       | 5.0.8.RELEASE_1 |          | Started |
> spring-4.2.1             | Spring 5.0.x Transaction (TX) support
> xml-specs-api   | 2.9.0           |          | Started |
> camel-2.22.1             |
> camel           | 2.22.1          | x        | Started |
> camel-2.22.1             |
> camel-core      | 2.22.1          |          | Started |
> camel-2.22.1             |
> camel-blueprint | 2.22.1          | x        | Started |
> camel-2.22.1             |
> camel-sql       | 2.22.1          | x        | Started |
> camel-2.22.1             |
> camel-stream    | 2.22.1          | x        | Started |
> camel-2.22.1             |
> xml-specs-api   | 2.9.0           |          | Started |
> camel-2.20.0             |
>
>
> karaf@root(feature)> feature:install -v pax-jdbc-spec
> Adding features: pax-jdbc-spec/[1.3.0,1.3.0]
> No deployment change.
> Done.
> karaf@root(feature)> feature:install -v pax-jdbc-jtds
> Adding features: pax-jdbc-jtds/[1.3.0,1.3.0]
> No deployment change.
> Done.
> karaf@root(feature)>
>
> As for installed bundles, I do have the apache.commons/commons-dbcp2
> version 2.5.0 installed that matches my commons dependency in my POM
>
>     <dependency>
>     <groupId>org.apache.commons</groupId>
>     <artifactId>commons-dbcp2</artifactId>
>     <version>2.5.0</version>
>     </dependency>
>
> Perhaps commons should be installed as a "feature" and not a "bundle"?
> I haven't been able to find a reference as to the name of it.
>
> Thanks all!
>
>
> On Thursday, October 25, 2018, 12:20:25 AM EDT, Jean-Baptiste Onofré
> <jb...@nanthrax.net> wrote:
>
>
>
>
>
> Hi,
>
> you can please try using feature:install -v and send the complete output ?
>
> Thanks
> Regards
> JB
>
> On 24/10/2018 19:37, bohnjerry wrote:
> > I am trying to install a maven Camel project and I get this error:
> > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing
> > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
> > osgi.wiring.package;
> >
> (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
> > Unresolved requirements:
> >
> > I've tried to install every package and feature even remotely
> related (that
> > I could find).. still no dice.
> > Ideas?
> >
> >
> >
> >
> > --
> > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> >
>


Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by "John F. Berry" <bo...@yahoo.com>.
Thanks for the help Jean-Baptiste, I've been learning so much through this process.On which feature do you want me to "install -v" on?   The pax=jdbc* ?  I did those below, just in case.
Here are my installed features:

karaf@root(feature)> feature:list -i
Name            | Version         | Required | State   | Repository               | Description
----------------+-----------------+----------+---------+--------------------------+--------------------------------------------------
pax-jdbc-spec   | 1.3.0           |          | Started | org.ops4j.pax.jdbc-1.3.0 | Provides OSGi JDBC Service spec
pax-jdbc-jtds   | 1.3.0           | x        | Started | org.ops4j.pax.jdbc-1.3.0 | Provides JDBC jTDS DataSourceFactory
xml-specs-api   | 2.9.0           |          | Started | camel-2.21.1             |
aries-proxy     | 4.2.1           |          | Started | standard-4.2.1           | Aries Proxy
aries-blueprint | 4.2.1           | x        | Started | standard-4.2.1           | Aries Blueprint
feature         | 4.2.1           | x        | Started | standard-4.2.1           | Features Support
shell           | 4.2.1           | x        | Started | standard-4.2.1           | Karaf Shell
deployer        | 4.2.1           | x        | Started | standard-4.2.1           | Karaf Deployer
wrapper         | 4.2.1           |          | Started | standard-4.2.1           | Provide OS integration
service-wrapper | 4.2.1           | x        | Started | standard-4.2.1           | Provide OS integration (alias to wrapper feature)
bundle          | 4.2.1           | x        | Started | standard-4.2.1           | Provide Bundle support
config          | 4.2.1           | x        | Started | standard-4.2.1           | Provide OSGi ConfigAdmin support
diagnostic      | 4.2.1           | x        | Started | standard-4.2.1           | Provide Diagnostic support
instance        | 4.2.1           | x        | Started | standard-4.2.1           | Provide Instance support
jaas            | 4.2.1           | x        | Started | standard-4.2.1           | Provide JAAS support
log             | 4.2.1           | x        | Started | standard-4.2.1           | Provide Log support
package         | 4.2.1           | x        | Started | standard-4.2.1           | Package commands and mbeans
service         | 4.2.1           | x        | Started | standard-4.2.1           | Provide Service support
system          | 4.2.1           | x        | Started | standard-4.2.1           | Provide System support
kar             | 4.2.1           | x        | Started | standard-4.2.1           | Provide KAR (KARaf archive) support
ssh             | 4.2.1           | x        | Started | standard-4.2.1           | Provide a SSHd server on Karaf
management      | 4.2.1           | x        | Started | standard-4.2.1           | Provide a JMX MBeanServer and a set of MBeans in
eventadmin      | 4.2.1           | x        | Started | standard-4.2.1           | OSGi Event Admin service specification for event-
wrap            | 2.5.4           | x        | Started | standard-4.2.1           | Wrap URL handler
spring          | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x support
spring-jdbc     | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x JDBC support
spring-tx       | 5.0.8.RELEASE_1 |          | Started | spring-4.2.1             | Spring 5.0.x Transaction (TX) support
xml-specs-api   | 2.9.0           |          | Started | camel-2.22.1             |
camel           | 2.22.1          | x        | Started | camel-2.22.1             |
camel-core      | 2.22.1          |          | Started | camel-2.22.1             |
camel-blueprint | 2.22.1          | x        | Started | camel-2.22.1             |
camel-sql       | 2.22.1          | x        | Started | camel-2.22.1             |
camel-stream    | 2.22.1          | x        | Started | camel-2.22.1             |
xml-specs-api   | 2.9.0           |          | Started | camel-2.20.0             |


karaf@root(feature)> feature:install -v pax-jdbc-spec
Adding features: pax-jdbc-spec/[1.3.0,1.3.0]
No deployment change.
Done.
karaf@root(feature)> feature:install -v pax-jdbc-jtds
Adding features: pax-jdbc-jtds/[1.3.0,1.3.0]
No deployment change.
Done.
karaf@root(feature)>

As for installed bundles, I do have the apache.commons/commons-dbcp2 version 2.5.0 installed that matches my commons dependency in my POM
    <dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-dbcp2</artifactId>
    <version>2.5.0</version>
    </dependency>

Perhaps commons should be installed as a "feature" and not a "bundle"?I haven't been able to find a reference as to the name of it.
Thanks all!
 
 On Thursday, October 25, 2018, 12:20:25 AM EDT, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote: 





Hi,

you can please try using feature:install -v and send the complete output ?

Thanks
Regards
JB

On 24/10/2018 19:37, bohnjerry wrote:
> I am trying to install a maven Camel project and I get this error:
> Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing
> requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
> osgi.wiring.package;
> (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
> Unresolved requirements:
> 
> I've tried to install every package and feature even remotely related (that
> I could find).. still no dice. 
> Ideas?
> 
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 


Re: Karaf doesn't like Camel package with apache.commons.dbcp2

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

you can please try using feature:install -v and send the complete output ?

Thanks
Regards
JB

On 24/10/2018 19:37, bohnjerry wrote:
> I am trying to install a maven Camel project and I get this error:
> Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing
> requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)]
> osgi.wiring.package;
> (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))]
> Unresolved requirements:
> 
> I've tried to install every package and feature even remotely related (that
> I could find).. still no dice. 
> Ideas?
> 
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>