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é
<[email protected]> 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" <[email protected]> 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
<[email protected]> 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
[email protected] 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
<[email protected]> wrote:
Yes, you have to install camel features :
karaf@root()> feature:install camel-hl7
regards,
François Papon
[email protected] 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
<[email protected]> wrote:
I think it's better to remove the "data" directory and re-install your project
;)
regards,
François Papon
[email protected] 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
<[email protected]> wrote:
Hi,
You can install this feature :
pax-jdbc-pool-dbcp2
regards,
François Papon
[email protected] 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é
<[email protected]> 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
>