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

2018-10-25 Thread Jean-Baptiste Onofré
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
> fpa...@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      .
>> 10/12/2018  09:50 AM      ..
>> 10/12/2018  09:50 AM      enterprise
>> 10/12/2018  09:50 AM      framework
>> 10/12/2018  09:50 AM      org.apache.karaf.features.command
>> 10/12/2018  09:50 AM      org.apache.karaf.features.core
>> 10/12/2018  09:50 AM      org.apache.karaf.features.extension
>> 10/12/2018  09:50 AM      spring
>> 10/12/2018  09:50 AM      standard
>>
>>
>>  Directory of c:\karaf\system\org\apache
>>
>> 10/12/2018  09:50 AM      .
>> 10/12/2018  09:50 AM      ..
>> 10/12/2018  09:50 AM      aries
>> 10/12/2018  09:50 AM      felix
>> 10/12/2018  09:50 AM      karaf
>> 10/12/2018  09:49 AM      openjpa
>> 10/12/2018  09:50 AM      servicemix
>> 10/12/2018  09:50 AM      sshd
>>
>>
>> On Thursday, October 25, 2018, 1:53:11 PM EDT, Jean-Baptiste Onofré
>>  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" > > a écrit:
>>
>> but my POM references 2.21.1 (i thought)
>>  org.apache.camel
>>  camel-mllp
>>  2.21.1
>>     
>>
>>     
>>     
>>  org.apache.camel
>>  camel-hl7
>>  2.21.1
>>     
>>
>>     
>>  org.apache.camel
>>  camel-netty4
>>  2.21.1
>>     
>>
>>     
>>     org.apache.camel
>>     camel-base64
>>     2.21.1
>>     
>>
>> my camel-core doesn't have a version on it... Should I declare
>> 2.21.1 ?
>>
>>
>>     
>>   org.apache.camel
>>   camel-core
>>     
>>     
>>   org.apache.camel
>>   camel-blueprint
>>     
>>
>>
>>
>> On Thursday, October 25, 2018, 1:06:07 PM EDT, Francois Papon
>>  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
>> fpa...@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
>> 
>>  wrote:
>>
>>
>> Yes, you have to install camel features :
>>
>> karaf@root()> feature:install camel-hl7
>>
>> regards,
>>
>> François Papon
>> fpa...@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 

Re: Command not found: Error in Karaf shell

2018-10-25 Thread Jean-Baptiste Onofré
Don't you have a refresh happen after feature:install or bundle:start ?

Do you have a test case to reproduce it ?

Thanks,
Regards
JB

On 25/10/2018 13:00, Oleg Cohen wrote:
> Hi JB,
> 
> What happens is that from that point on, no command works. I did try
> the fully qualified name. No luck. What I noticed this happens after
> either feature:install or bundle:start. I don’t notice anything in the
> logs that points to any specific Karaf failure.
> 
> Thank you,
> Oleg
> 
>> On Oct 25, 2018, at 12:26 AM, Jean-Baptiste Onofré  wrote:
>>
>> Hi Oleg,
>>
>> can you please if the full qualified name of the command still works ?
>>
>> Instead of restart, try bundle:restart for instance.
>>
>> I never had any issue on that kind.
>>
>> Regards
>> JB
>>
>>> On 24/10/2018 18:00, Oleg Cohen wrote:
>>> Greetings,
>>>
>>> I run Karaf 4.2.1 on Mac in an iTerm2 window from the command line:
>>>
 ./bin/karaf debug
>>>
>>> All works fine, but sometimes, and I can’t determine what leads to it 
>>> commands stop working. Name completion works, but when I execute a command, 
>>> for example restart 182, I get the following message:
>>>
>>> Command not found: restart
>>>
>>> I need to stop Karaf and re-launch. I am wondering if anybody ran into a 
>>> similar issue and if there is a way to diagnose/troubleshoot the system.
>>>
>>> Thank you!
>>> Oleg
>>>


Re: Error while sending email because of javax.activation

2018-10-25 Thread Jean-Baptiste Onofré
Thanks Nicolas,

this is related to the changes we did for Java 9/11 support. We gonna
fix that for Karaf 4.2.2.

Regards
JB

On 25/10/2018 14:20, DUTERTRY Nicolas wrote:
> Hi,
> 
>  
> 
> It is not possible to send email in Karaf 4.2 with javax.mail API. When
> an email is sent, this exception is raised :
> 
>  
> 
> javax.mail.MessagingException: IOException while sending message;
> 
>   nested exception is:
> 
>  javax.activation.UnsupportedDataTypeException: no object DCH for
> MIME type multipart/mixed;
> 
>  
> 
> I’ve found that it is because the Activation Framework
> (javax.activation) is not OSGI compliant. In the previous Karaf version
> (4.1) a servicemix implementation of the Activation Framework was
> included but it is not the case anymore.
> 
>  
> 
> The solution to have a working Activation Framework is to remove
> javax.activation references in jre.properties and to install the bundle
> org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0.
> 
>  
> 
> For the future Karaf 4.2.2 can you please :
> 
> -  Remove javax.activation from jre.properties
> 
> -  Remove activation-1.1.1.jar from directory lib/boot
> 
> -  Let the user install
> org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0
> if needed
> 
>  
> 
> Regards,
> 
> --
> 
> Nicolas Dutertry
> 
> Sopra HR Software - http://www.soprahr.com/
> 


Re: Decanter MongoDB appender doesn't work

2018-10-25 Thread Jean-Baptiste Onofré
Hi Mario,

do you have something in the log when you type log:display ?

Do you have only the log collector installed ?

Could you check:

1. etc/org.ops4j.pax.logging.cfg has * as filter for PaxOsgi appender:

log4j2.appender.osgi.type = PaxOsgi
log4j2.appender.osgi.name = PaxOsgi
log4j2.appender.osgi.filter = *

2. Can you create a log manually using log:log "foo" log message.

Thanks,
Regards
JB

On 25/10/2018 16:56, mariobuonocore wrote:
> Hi all,
> after installing Karaf, Decanter and MongoDB appender on Ubuntu 18.04
> virtual machine, I cannot find logs or anything else on db collection in
> MongoDB.
> I can work normally with MongoDB from command line and with Robo3T.
> 
> However, when I start or stop Karaf, or I generate an error or I install
> some new bundle, I cannot see anything saved on MongoDB.
> 
> What am I wrong?
> 
> Those are my mongo features installed on karaf:
> 
> 
> karaf@root()> list -t 0 | grep -i mongo
> 126 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
> Appender :: MongoDB
> 136 │ Active   │  80 │ 3.8.2  │ mongo-java-driver
> 
> 
> And this is my Karaf etc/org.apache.karaf.decanter.appender.mongodb.cfg :
> 
> 
> 
> # Decanter MongoDB Configuration
> 
> 
> # MongoDB connection URI
> uri=mongodb://localhost:27017
> 
> # MongoDB database name
> database=decanter
> 
> # MongoDB collection name
> collection=decanter
> 
> # Marshaller to use (json is recommended)
> marshaller.target=(dataFormat=json)
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 


Re: Enabling HTTPS

2018-10-25 Thread Jean-Baptiste Onofré
Hi Scott,

you can take a look on this blog post:

http://blog.nanthrax.net/?p=316

It's a step by step HTTPs configuration (with mutual auth optionally).

Regards
JB

On 25/10/2018 17:59, Leschke, Scott wrote:
> I’m attempting to get https working by following the instructions at:
> https://karaf.apache.org/manual/latest/webcontainer
> 
> I’m confused by the setting for *org.ops4j.pax.web.ssl.password*
> 
> What is that intended to be. How is it defined?
> 
>  
> 
> Also, what’s the difference between these:
> 
> *org.osgi.service.http.secure.enabled=true*
> 
> and
> 
> *org.osgi.service.https.enabled=true* ?
> 
>  
> 
> Anyway, I’m getting the following:
> 
> Caused by: java.security.UnrecoverableKeyException: failed to decrypt
> safe contents entry: javax.crypto.BadPaddingException: Given final block
> not properly padded. Such issues can arise if a bad key is used during
> decryption.
> 
>  
> 
> My org.ops4j.pax.web.cfg (slightly obfuscated) is shown below.
> 
>  
> 
> Scott
> 
>  
> 
>  
> 
> org.osgi.service.http.enabled=false
> 
> org.osgi.service.http.port=8181
> 
>  
> 
> org.osgi.service.http.port.secure=8443
> 
> org.osgi.service.http.secure.enabled=true
> 
> org.osgi.service.https.enabled=true
> 
>  
> 
> org.ops4j.pax.web.config.file=${karaf.etc}/jetty.xml
> 
> org.apache.karaf.features.configKey=org.ops4j.pax.web
> 
>  
> 
> org.ops4j.pax.web.ssl.keystore=c:/KeyStorePath
> 
> org.ops4j.pax.web.ssl.password=??  Not sure what this is exactly
> 
> org.ops4j.pax.web.ssl.keypassword=MyKeystorePWD
> 
>  
> 
> javax.servlet.context.tempdir=${karaf.data}/pax-web-jsp
> 


Re: Karaf 4.2.1 + JRE 8 + STAX

2018-10-25 Thread Jean-Baptiste Onofré
Hi Javier,

this is already fixed and it will be included in Karaf 4.2.2. As
workaround, you can add stax jar manually in the lib/endorsed folder.

Regards
JB

On 26/10/2018 02:22, Javier Delgadillo wrote:
> I’m trying to upgrade our application from Karaf 4.1.1 to 4.2.1 (running
> with JRE 1.8.0_102).
> 
>  
> 
> Just about everything is working, but I can’t seem to get fasterxml to
> work correctly. 
> 
>  
> 
> I have a bundle that calls:
> 
>  
> 
> XmlMapper xmlMapper = new
> com.fasterxml.jackson.dataformat.xml.XmlMapper.XmlMapper();
> 
>  
> 
>  
> 
> But when run inside of Karaf, I see the following stack trace:
> 
>  
> 
> Caused by: java.util.ServiceConfigurationError:
> javax.xml.stream.XMLInputFactory: Provider
> com.ctc.wstx.stax.WstxInputFactory not found
> 
>     at java.util.ServiceLoader.fail(ServiceLoader.java:239) ~[?:?]
> 
>     at java.util.ServiceLoader.access$300(ServiceLoader.java:185) ~[?:?]
> 
>     at
> java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:372)
> ~[?:?]
> 
>     at
> java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404) ~[?:?]
> 
>     at java.util.ServiceLoader$1.next(ServiceLoader.java:480) ~[?:?]
> 
>     at
> javax.xml.stream.$FactoryFinder.lambda$findServiceProvider$3($FactoryFinder.java:186)
> ~[?:?]
> 
>     at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
> 
>     at
> javax.xml.stream.$FactoryFinder.findServiceProvider($FactoryFinder.java:181)
> ~[?:?]
> 
>     at javax.xml.stream.$FactoryFinder.find($FactoryFinder.java:164)
> ~[?:?]
> 
>     at javax.xml.stream.$FactoryFinder.find($FactoryFinder.java:106)
> ~[?:?]
> 
>     at
> javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:52) ~[?:?]
> 
>     at
> com.fasterxml.jackson.dataformat.xml.XmlFactory.(XmlFactory.java:113)
> ~[?:?]
> 
>     at
> com.fasterxml.jackson.dataformat.xml.XmlFactory.(XmlFactory.java:100)
> ~[?:?]
> 
>     at
> com.fasterxml.jackson.dataformat.xml.XmlFactory.(XmlFactory.java:84)
> ~[?:?]
> 
>     at
> com.fasterxml.jackson.dataformat.xml.XmlMapper.(XmlMapper.java:49)
> ~[?:?]
> 
>  
> 
> I have the Woodstox package installed via the CXF (3.2.6) Feature:
> 
>  
> 
> karaf@root()> headers 206
> 
>  
> 
> Woodstox (206)
> 
> --
> 
> Automatic-Module-Name = com.ctc.wstx
> 
> Bnd-LastModified = 1522460060119
> 
> Build-Jdk = 1.7.0_79
> 
> Built-By = tatu
> 
> Created-By = Apache Maven Bundle Plugin
> 
> Implementation-Build-Date = 2018-03-31 01:33:59+
> 
> Implementation-Title = Woodstox
> 
> Implementation-Vendor = FasterXML
> 
> Implementation-Vendor-Id = com.fasterxml.woodstox
> 
> Implementation-Version = 5.1.0
> 
> Manifest-Version = 1.0
> 
> Specification-Title = Woodstox
> 
> Specification-Vendor = FasterXML
> 
> Specification-Version = 5.1.0
> 
> Tool = Bnd-3.2.0.201605172007
> 
> X-Compile-Source-JDK = 1.6
> 
> X-Compile-Target-JDK = 1.6
> 
>  
> 
> Bundle-Description = Woodstox is a high-performance XML processor
> thatimplements Stax (JSR-173), SAX2 and Stax2 APIs
> 
> Bundle-DocURL = https://github.com/FasterXML/woodstox
> 
> Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt
> 
> Bundle-ManifestVersion = 2
> 
> Bundle-Name = Woodstox
> 
> Bundle-SymbolicName = com.fasterxml.woodstox.woodstox-core
> 
> Bundle-Vendor = FasterXML
> 
> Bundle-Version = 5.1.0
> 
>  
> 
> Require-Capability =
> 
>     osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.6))
> 
>  
> 
> Export-Package =
> 
>     com.ctc.wstx.api;
> 
>     uses:="com.ctc.wstx.cfg,
> 
>     com.ctc.wstx.dtd,
> 
>     com.ctc.wstx.ent,
> 
>     com.ctc.wstx.util,
> 
>     javax.xml.stream,
> 
>     org.codehaus.stax2.io,
> 
>     org.codehaus.stax2.validation";
> 
>     version=5.1.0,
> 
>     com.ctc.wstx.cfg;uses:=javax.xml.stream;version=5.1.0,
> 
>     com.ctc.wstx.compat;uses:=javax.xml.namespace;version=5.1.0,
> 
>     com.ctc.wstx.dom;
> 
>     uses:="com.ctc.wstx.api,
> 
>     com.ctc.wstx.sw,
> 
>     javax.xml.namespace,
> 
>     javax.xml.stream,
> 
>     javax.xml.transform.dom,
> 
>     org.codehaus.stax2.ri.dom,
> 
>     org.w3c.dom";
> 
>     version=5.1.0,
> 
>     com.ctc.wstx.dtd;
> 
>     uses:="com.ctc.wstx.api,
> 
>     com.ctc.wstx.ent,
> 
>     com.ctc.wstx.io,
> 
>     com.ctc.wstx.sr,
> 
>     com.ctc.wstx.util,
> 
>     javax.xml.stream,
> 
>     javax.xml.stream.events,
> 
>     org.codehaus.stax2.validation";
> 
>     version=5.1.0,
> 
>    
> 

Karaf 4.2.1 + JRE 8 + STAX

2018-10-25 Thread Javier Delgadillo
I’m trying to upgrade our application from Karaf 4.1.1 to 4.2.1 (running with 
JRE 1.8.0_102).

Just about everything is working, but I can’t seem to get fasterxml to work 
correctly.

I have a bundle that calls:

XmlMapper xmlMapper = new 
com.fasterxml.jackson.dataformat.xml.XmlMapper.XmlMapper();


But when run inside of Karaf, I see the following stack trace:

Caused by: java.util.ServiceConfigurationError: 
javax.xml.stream.XMLInputFactory: Provider com.ctc.wstx.stax.WstxInputFactory 
not found
at java.util.ServiceLoader.fail(ServiceLoader.java:239) ~[?:?]
at java.util.ServiceLoader.access$300(ServiceLoader.java:185) ~[?:?]
at 
java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:372) ~[?:?]
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404) 
~[?:?]
at java.util.ServiceLoader$1.next(ServiceLoader.java:480) ~[?:?]
at 
javax.xml.stream.$FactoryFinder.lambda$findServiceProvider$3($FactoryFinder.java:186)
 ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at 
javax.xml.stream.$FactoryFinder.findServiceProvider($FactoryFinder.java:181) 
~[?:?]
at javax.xml.stream.$FactoryFinder.find($FactoryFinder.java:164) ~[?:?]
at javax.xml.stream.$FactoryFinder.find($FactoryFinder.java:106) ~[?:?]
at 
javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:52) ~[?:?]
at 
com.fasterxml.jackson.dataformat.xml.XmlFactory.(XmlFactory.java:113) 
~[?:?]
at 
com.fasterxml.jackson.dataformat.xml.XmlFactory.(XmlFactory.java:100) 
~[?:?]
at 
com.fasterxml.jackson.dataformat.xml.XmlFactory.(XmlFactory.java:84) 
~[?:?]
at 
com.fasterxml.jackson.dataformat.xml.XmlMapper.(XmlMapper.java:49) ~[?:?]

I have the Woodstox package installed via the CXF (3.2.6) Feature:

karaf@root()> headers 206

Woodstox (206)
--
Automatic-Module-Name = com.ctc.wstx
Bnd-LastModified = 1522460060119
Build-Jdk = 1.7.0_79
Built-By = tatu
Created-By = Apache Maven Bundle Plugin
Implementation-Build-Date = 2018-03-31 01:33:59+
Implementation-Title = Woodstox
Implementation-Vendor = FasterXML
Implementation-Vendor-Id = com.fasterxml.woodstox
Implementation-Version = 5.1.0
Manifest-Version = 1.0
Specification-Title = Woodstox
Specification-Vendor = FasterXML
Specification-Version = 5.1.0
Tool = Bnd-3.2.0.201605172007
X-Compile-Source-JDK = 1.6
X-Compile-Target-JDK = 1.6

Bundle-Description = Woodstox is a high-performance XML processor 
thatimplements Stax (JSR-173), SAX2 and Stax2 APIs
Bundle-DocURL = 
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_FasterXML_woodstox=DwIGaQ=n6-cguzQvX_tUIrZOS_4Og=j74NjbEJzoIrj_1sLoV7yciEIYg7NCaPyz-_dK7IpDY=SZAycHiWDDUGziC0i8AEcNobLYVia7D7z35IqiR-VQ0=NQfhYJe64S-PnbcS7Y6pgT2Lw1GZLioTfqab7yTrvq8=
Bundle-License = 
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.apache.org_licenses_LICENSE-2D2.0.txt=DwIGaQ=n6-cguzQvX_tUIrZOS_4Og=j74NjbEJzoIrj_1sLoV7yciEIYg7NCaPyz-_dK7IpDY=SZAycHiWDDUGziC0i8AEcNobLYVia7D7z35IqiR-VQ0=jqQjnj7CyY5ZeifSlilWLmg8EO9OcZEKtjCbhog27H4=
Bundle-ManifestVersion = 2
Bundle-Name = Woodstox
Bundle-SymbolicName = com.fasterxml.woodstox.woodstox-core
Bundle-Vendor = FasterXML
Bundle-Version = 5.1.0

Require-Capability =
osgi.ee;filter:=(&(osgi.ee=JavaSE)(version=1.6))

Export-Package =
com.ctc.wstx.api;
uses:="com.ctc.wstx.cfg,
com.ctc.wstx.dtd,
com.ctc.wstx.ent,
com.ctc.wstx.util,
javax.xml.stream,
org.codehaus.stax2.io,
org.codehaus.stax2.validation";
version=5.1.0,
com.ctc.wstx.cfg;uses:=javax.xml.stream;version=5.1.0,
com.ctc.wstx.compat;uses:=javax.xml.namespace;version=5.1.0,
com.ctc.wstx.dom;
uses:="com.ctc.wstx.api,
com.ctc.wstx.sw,
javax.xml.namespace,
javax.xml.stream,
javax.xml.transform.dom,
org.codehaus.stax2.ri.dom,
org.w3c.dom";
version=5.1.0,
com.ctc.wstx.dtd;
uses:="com.ctc.wstx.api,
com.ctc.wstx.ent,
com.ctc.wstx.io,
com.ctc.wstx.sr,
com.ctc.wstx.util,
javax.xml.stream,
javax.xml.stream.events,
org.codehaus.stax2.validation";
version=5.1.0,

com.ctc.wstx.ent;uses:="com.ctc.wstx.api,com.ctc.wstx.evt,com.ctc.wstx.io,javax.xml.stream";version=5.1.0,
   com.ctc.wstx.evt;
uses:="com.ctc.wstx.dtd,
com.ctc.wstx.sr,
com.ctc.wstx.util,
javax.xml.namespace,

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

2018-10-25 Thread John F. Berry
 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      .
10/12/2018  09:50 AM      ..
10/12/2018  09:50 AM      enterprise
10/12/2018  09:50 AM      framework
10/12/2018  09:50 AM      org.apache.karaf.features.command
10/12/2018  09:50 AM      org.apache.karaf.features.core
10/12/2018  09:50 AM      org.apache.karaf.features.extension
10/12/2018  09:50 AM      spring
10/12/2018  09:50 AM      standard


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

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


On Thursday, October 25, 2018, 1:53:11 PM EDT, Jean-Baptiste Onofré 
 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"  a écrit:
   but my POM references 2.21.1 (i thought)    
org.apache.camel
 camel-mllp
 2.21.1
    

    
    
 org.apache.camel
 camel-hl7
 2.21.1
    

    
 org.apache.camel
 camel-netty4
 2.21.1
    

    
    org.apache.camel
    camel-base64
    2.21.1
      
   
my camel-core doesn't have a version on it... Should I declare 2.21.1 ?   
   
       
  org.apache.camel
  camel-core
    
    
  org.apache.camel
  camel-blueprint
     
  
   
   
On Thursday, October 25, 2018, 1:06:07 PM EDT, Francois Papon 
 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
fpa...@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 
 wrote:   
   
 
Yes, you have to install camel features :
 
karaf@root()> feature:install camel-hl7
 
regards,
 
 François Papon
fpa...@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 
 wrote:   
   
 
I think it's better to remove the "data" directory and re-install your project 
;)
 
regards,
 
 François Papon
fpa...@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
   

unsubscribe

2018-10-25 Thread Jason Pratt
unsubscribe


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

2018-10-25 Thread Jean-Baptiste Onofré
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"  a écrit:
>but my POM references 2.21.1 (i thought)
>org.apache.camel
> camel-mllp
> 2.21.1
>    
>
>    
>    
> org.apache.camel
> camel-hl7
> 2.21.1
>    
>
>    
> org.apache.camel
> camel-netty4
> 2.21.1
>    
>
>    
>    org.apache.camel
>    camel-base64
>    2.21.1
>    
>
>my camel-core doesn't have a version on it... Should I declare 2.21.1 ?
>
>    
>  org.apache.camel
>  camel-core
>    
>    
>  org.apache.camel
>  camel-blueprint
>    
>
>
>
>On Thursday, October 25, 2018, 1:06:07 PM EDT, Francois Papon
> 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
>fpa...@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
> wrote:
>
>
>Yes, you have to install camel features :
>
>karaf@root()> feature:install camel-hl7
>
>regards,
>
> François Papon
>fpa...@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
> wrote:
>
>
>I think it's better to remove the "data" directory and re-install your
>project ;)
>
>regards,
>
> François Papon
>fpa...@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

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

2018-10-25 Thread Jean-Baptiste Onofré
Afair we have an example in the distro. Let me check.

Regards
JB

Le 25 oct. 2018 à 21:49, à 21:49, Francois Papon  
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
>fpa...@apache.org
>
>Le 25/10/2018 à 21:38, John F. Berry a écrit :
>> but my POM references 2.21.1 (i thought)
>>  org.apache.camel
>>  camel-mllp
>>  2.21.1
>>     
>>
>>     
>>     
>>  org.apache.camel
>>  camel-hl7
>>  2.21.1
>>     
>>
>>     
>>  org.apache.camel
>>  camel-netty4
>>  2.21.1
>>     
>>
>>     
>>     org.apache.camel
>>     camel-base64
>>     2.21.1
>>     
>>
>> my camel-core doesn't have a version on it... Should I declare 2.21.1
>?
>>
>>
>>     
>>   org.apache.camel
>>   camel-core
>>     
>>     
>>   org.apache.camel
>>   camel-blueprint
>>     
>>
>>
>>
>> On Thursday, October 25, 2018, 1:06:07 PM EDT, Francois Papon
>>  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
>> fpa...@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
>>  
>> wrote:
>>
>>
>> Yes, you have to install camel features :
>>
>> karaf@root()> feature:install camel-hl7
>>
>> regards,
>>
>> François Papon
>> fpa...@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
>>  
>> wrote:
>>
>>
>> I think it's better to remove the "data" directory and re-install
>your
>> project ;)
>>
>> regards,
>>
>> François Papon
>> fpa...@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
>>   

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

2018-10-25 Thread Francois Papon
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
fpa...@apache.org

Le 25/10/2018 à 21:38, John F. Berry a écrit :
> but my POM references 2.21.1 (i thought)
>  org.apache.camel
>  camel-mllp
>  2.21.1
>     
>
>     
>     
>  org.apache.camel
>  camel-hl7
>  2.21.1
>     
>
>     
>  org.apache.camel
>  camel-netty4
>  2.21.1
>     
>
>     
>     org.apache.camel
>     camel-base64
>     2.21.1
>     
>
> my camel-core doesn't have a version on it... Should I declare 2.21.1 ?
>
>
>     
>   org.apache.camel
>   camel-core
>     
>     
>   org.apache.camel
>   camel-blueprint
>     
>
>
>
> On Thursday, October 25, 2018, 1:06:07 PM EDT, Francois Papon
>  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
> fpa...@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
>  
> wrote:
>
>
> Yes, you have to install camel features :
>
> karaf@root()> feature:install camel-hl7
>
> regards,
>
> François Papon
> fpa...@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
>  
> wrote:
>
>
> I think it's better to remove the "data" directory and re-install your
> project ;)
>
> regards,
>
> François Papon
> fpa...@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
> 

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

2018-10-25 Thread John F. Berry
 but my POM references 2.21.1 (i thought) 
org.apache.camel
 camel-mllp
 2.21.1
    

    
    
 org.apache.camel
 camel-hl7
 2.21.1
    

    
 org.apache.camel
 camel-netty4
 2.21.1
    

    
    org.apache.camel
    camel-base64
    2.21.1
    

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

    
  org.apache.camel
  camel-core
    
    
  org.apache.camel
  camel-blueprint
    



On Thursday, October 25, 2018, 1:06:07 PM EDT, Francois Papon 
 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
fpa...@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 
 wrote:  
  
 
Yes, you have to install camel features :
 
karaf@root()> feature:install camel-hl7
 
regards,
 
 François Papon
fpa...@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 
 wrote:  
  
 
I think it's better to remove the "data" directory and re-install your project 
;)
 
regards,
 
 François Papon
fpa...@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 

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

2018-10-25 Thread Francois Papon
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
fpa...@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
>  wrote:
>
>
> Yes, you have to install camel features :
>
> karaf@root()> feature:install camel-hl7
>
> regards,
>
> François Papon
> fpa...@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
>  
> wrote:
>
>
> I think it's better to remove the "data" directory and re-install your
> project ;)
>
> regards,
>
> François Papon
> fpa...@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;
> 

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

2018-10-25 Thread John F. Berry
 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 
 wrote:  
 
  
Yes, you have to install camel features :
 
karaf@root()> feature:install camel-hl7
 
regards,
 
 François Papon
fpa...@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 
 wrote:  
  
 
I think it's better to remove the "data" directory and re-install your project 
;)
 
regards,
 
 François Papon
fpa...@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 

RE: Enabling HTTPS

2018-10-25 Thread Leschke, Scott
Actually,

I saw most of that information at:  
https://ops4j1.jira.com/wiki/spaces/paxweb/pages/12059277/SSL+Configuration

It says, Password used for keystore integrity check.

Where does that pwd come from?  The example in the Karaf doc doesn’t show (it’s 
foo).

From: Achim Nierbeck 
Sent: Thursday, October 25, 2018 11:09 AM
To: user@karaf.apache.org
Subject: Re: Enabling HTTPS

Hi,

I'm sure you'll find some of your questions answered here:
http://ops4j.github.io/pax/web/SNAPSHOT/User-Guide.html#ssl-configuration

regards, Achim

Am Do., 25. Okt. 2018 um 17:59 Uhr schrieb Leschke, Scott 
mailto:slesc...@medline.com>>:
I’m attempting to get https working by following the instructions at: 
https://karaf.apache.org/manual/latest/webcontainer
I’m confused by the setting for org.ops4j.pax.web.ssl.password
What is that intended to be. How is it defined?

Also, what’s the difference between these:
org.osgi.service.http.secure.enabled=true
and
org.osgi.service.https.enabled=true ?

Anyway, I’m getting the following:
Caused by: java.security.UnrecoverableKeyException: failed to decrypt safe 
contents entry: javax.crypto.BadPaddingException: Given final block not 
properly padded. Such issues can arise if a bad key is used during decryption.

My org.ops4j.pax.web.cfg (slightly obfuscated) is shown below.

Scott


org.osgi.service.http.enabled=false
org.osgi.service.http.port=8181

org.osgi.service.http.port.secure=8443
org.osgi.service.http.secure.enabled=true
org.osgi.service.https.enabled=true

org.ops4j.pax.web.config.file=${karaf.etc}/jetty.xml
org.apache.karaf.features.configKey=org.ops4j.pax.web

org.ops4j.pax.web.ssl.keystore=c:/KeyStorePath
org.ops4j.pax.web.ssl.password=??  Not sure what this is exactly
org.ops4j.pax.web.ssl.keypassword=MyKeystorePWD

javax.servlet.context.tempdir=${karaf.data}/pax-web-jsp


--

Apache Member
Apache Karaf  Committer & PMC
OPS4J Pax Web  Committer & 
Project Lead
blog 
Co-Author of Apache Karaf Cookbook 

Software Architect / Project Manager / Scrum Master



Re: Enabling HTTPS

2018-10-25 Thread Achim Nierbeck
Hi,

I'm sure you'll find some of your questions answered here:
http://ops4j.github.io/pax/web/SNAPSHOT/User-Guide.html#ssl-configuration

regards, Achim

Am Do., 25. Okt. 2018 um 17:59 Uhr schrieb Leschke, Scott <
slesc...@medline.com>:

> I’m attempting to get https working by following the instructions at:
> https://karaf.apache.org/manual/latest/webcontainer
>
> I’m confused by the setting for *org.ops4j.pax.web.ssl.password*
>
> What is that intended to be. How is it defined?
>
>
>
> Also, what’s the difference between these:
>
> *org.osgi.service.http.secure.enabled=true*
>
> and
>
> *org.osgi.service.https.enabled=true* ?
>
>
>
> Anyway, I’m getting the following:
>
> Caused by: java.security.UnrecoverableKeyException: failed to decrypt safe
> contents entry: javax.crypto.BadPaddingException: Given final block not
> properly padded. Such issues can arise if a bad key is used during
> decryption.
>
>
>
> My org.ops4j.pax.web.cfg (slightly obfuscated) is shown below.
>
>
>
> Scott
>
>
>
>
>
> org.osgi.service.http.enabled=false
>
> org.osgi.service.http.port=8181
>
>
>
> org.osgi.service.http.port.secure=8443
>
> org.osgi.service.http.secure.enabled=true
>
> org.osgi.service.https.enabled=true
>
>
>
> org.ops4j.pax.web.config.file=${karaf.etc}/jetty.xml
>
> org.apache.karaf.features.configKey=org.ops4j.pax.web
>
>
>
> org.ops4j.pax.web.ssl.keystore=c:/KeyStorePath
>
> org.ops4j.pax.web.ssl.password=??  Not sure what this is exactly
>
> org.ops4j.pax.web.ssl.keypassword=MyKeystorePWD
>
>
>
> javax.servlet.context.tempdir=${karaf.data}/pax-web-jsp
>


-- 

Apache Member
Apache Karaf  Committer & PMC
OPS4J Pax Web  Committer &
Project Lead
blog 
Co-Author of Apache Karaf Cookbook 

Software Architect / Project Manager / Scrum Master


Enabling HTTPS

2018-10-25 Thread Leschke, Scott
I'm attempting to get https working by following the instructions at: 
https://karaf.apache.org/manual/latest/webcontainer
I'm confused by the setting for org.ops4j.pax.web.ssl.password
What is that intended to be. How is it defined?

Also, what's the difference between these:
org.osgi.service.http.secure.enabled=true
and
org.osgi.service.https.enabled=true ?

Anyway, I'm getting the following:
Caused by: java.security.UnrecoverableKeyException: failed to decrypt safe 
contents entry: javax.crypto.BadPaddingException: Given final block not 
properly padded. Such issues can arise if a bad key is used during decryption.

My org.ops4j.pax.web.cfg (slightly obfuscated) is shown below.

Scott


org.osgi.service.http.enabled=false
org.osgi.service.http.port=8181

org.osgi.service.http.port.secure=8443
org.osgi.service.http.secure.enabled=true
org.osgi.service.https.enabled=true

org.ops4j.pax.web.config.file=${karaf.etc}/jetty.xml
org.apache.karaf.features.configKey=org.ops4j.pax.web

org.ops4j.pax.web.ssl.keystore=c:/KeyStorePath
org.ops4j.pax.web.ssl.password=??  Not sure what this is exactly
org.ops4j.pax.web.ssl.keypassword=MyKeystorePWD

javax.servlet.context.tempdir=${karaf.data}/pax-web-jsp


Re: Decanter MongoDB appender doesn't work

2018-10-25 Thread Francois Papon
Ok, you are using Karaf 4.2.1 ?

I will try to reproduce

regards,

François Papon
fpa...@apache.org

Le 25/10/2018 à 19:18, mariobuonocore a écrit :
> Hi fpapon,
> thank you for your reply.
> Yes, i have installed it:
>
> karaf@root()> list -t 0 | grep -i decanter
> 108 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter :: API
> *109 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
> Collector :: Log*
> 110 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
> Marshaller :: CSV
> 111 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
> Marshaller :: Json
> 125 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
> Collector :: EventAdmin
> 126 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
> Appender :: MongoDB
> 127 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
> Alerting :: Checker
> 129 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
> Alerting :: Command
> 130 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
> Alerting :: e-mail
> 131 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
> Alerting :: Management
> 139 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
> Collector :: JMX
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html



Re: Decanter MongoDB appender doesn't work

2018-10-25 Thread mariobuonocore
Hi fpapon,
thank you for your reply.
Yes, i have installed it:

karaf@root()> list -t 0 | grep -i decanter
108 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter :: API
*109 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
Collector :: Log*
110 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
Marshaller :: CSV
111 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
Marshaller :: Json
125 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
Collector :: EventAdmin
126 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
Appender :: MongoDB
127 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
Alerting :: Checker
129 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
Alerting :: Command
130 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
Alerting :: e-mail
131 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
Alerting :: Management
139 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
Collector :: JMX



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


Re: Decanter MongoDB appender doesn't work

2018-10-25 Thread Francois Papon
My mistake,

decanter-collector-log ;)

regards,

François Papon
fpa...@apache.org

Le 25/10/2018 à 18:59, Francois Papon a écrit :
> Hi,
>
> Did you install the decanter-connector-log ?
>
> regards,
>
> François Papon
> fpa...@apache.org
>
> Le 25/10/2018 à 18:56, mariobuonocore a écrit :
>> Hi all,
>> after installing Karaf, Decanter and MongoDB appender on Ubuntu 18.04
>> virtual machine, I cannot find logs or anything else on db collection in
>> MongoDB.
>> I can work normally with MongoDB from command line and with Robo3T.
>>
>> However, when I start or stop Karaf, or I generate an error or I install
>> some new bundle, I cannot see anything saved on MongoDB.
>>
>> What am I wrong?
>>
>> Those are my mongo features installed on karaf:
>>
>>
>> karaf@root()> list -t 0 | grep -i mongo
>> 126 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
>> Appender :: MongoDB
>> 136 │ Active   │  80 │ 3.8.2  │ mongo-java-driver
>>
>>
>> And this is my Karaf etc/org.apache.karaf.decanter.appender.mongodb.cfg :
>>
>>
>> 
>> # Decanter MongoDB Configuration
>> 
>>
>> # MongoDB connection URI
>> uri=mongodb://localhost:27017
>>
>> # MongoDB database name
>> database=decanter
>>
>> # MongoDB collection name
>> collection=decanter
>>
>> # Marshaller to use (json is recommended)
>> marshaller.target=(dataFormat=json)
>>
>>
>>
>> --
>> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html



Re: Decanter MongoDB appender doesn't work

2018-10-25 Thread Francois Papon
Hi,

Did you install the decanter-connector-log ?

regards,

François Papon
fpa...@apache.org

Le 25/10/2018 à 18:56, mariobuonocore a écrit :
> Hi all,
> after installing Karaf, Decanter and MongoDB appender on Ubuntu 18.04
> virtual machine, I cannot find logs or anything else on db collection in
> MongoDB.
> I can work normally with MongoDB from command line and with Robo3T.
>
> However, when I start or stop Karaf, or I generate an error or I install
> some new bundle, I cannot see anything saved on MongoDB.
>
> What am I wrong?
>
> Those are my mongo features installed on karaf:
>
>
> karaf@root()> list -t 0 | grep -i mongo
> 126 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
> Appender :: MongoDB
> 136 │ Active   │  80 │ 3.8.2  │ mongo-java-driver
>
>
> And this is my Karaf etc/org.apache.karaf.decanter.appender.mongodb.cfg :
>
>
> 
> # Decanter MongoDB Configuration
> 
>
> # MongoDB connection URI
> uri=mongodb://localhost:27017
>
> # MongoDB database name
> database=decanter
>
> # MongoDB collection name
> collection=decanter
>
> # Marshaller to use (json is recommended)
> marshaller.target=(dataFormat=json)
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html



Decanter MongoDB appender doesn't work

2018-10-25 Thread mariobuonocore
Hi all,
after installing Karaf, Decanter and MongoDB appender on Ubuntu 18.04
virtual machine, I cannot find logs or anything else on db collection in
MongoDB.
I can work normally with MongoDB from command line and with Robo3T.

However, when I start or stop Karaf, or I generate an error or I install
some new bundle, I cannot see anything saved on MongoDB.

What am I wrong?

Those are my mongo features installed on karaf:


karaf@root()> list -t 0 | grep -i mongo
126 │ Active   │  80 │ 2.0.0  │ Apache Karaf :: Decanter ::
Appender :: MongoDB
136 │ Active   │  80 │ 3.8.2  │ mongo-java-driver


And this is my Karaf etc/org.apache.karaf.decanter.appender.mongodb.cfg :



# Decanter MongoDB Configuration


# MongoDB connection URI
uri=mongodb://localhost:27017

# MongoDB database name
database=decanter

# MongoDB collection name
collection=decanter

# Marshaller to use (json is recommended)
marshaller.target=(dataFormat=json)



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


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

2018-10-25 Thread Francois Papon
Yes, you have to install camel features :

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

regards,

François Papon
fpa...@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
>  wrote:
>
>
> I think it's better to remove the "data" directory and re-install your
> project ;)
>
> regards,
>
> François Papon
> fpa...@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)
>     

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

2018-10-25 Thread John F. Berry
 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 
 wrote:  
 
  
I think it's better to remove the "data" directory and re-install your project 
;)
 
regards,
 
 François Papon
fpa...@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:
   

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

2018-10-25 Thread Francois Papon
I think it's better to remove the "data" directory and re-install your
project ;)

regards,

François Papon
fpa...@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
>   

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

2018-10-25 Thread Francois Papon
Hi,

You can install this feature :

pax-jdbc-pool-dbcp2

regards,

François Papon
fpa...@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
>
>     
>     org.apache.commons
>     commons-dbcp2
>     2.5.0
>     
>
> Perhaps commons should be installed as a "feature" and not a "bundle"?
> I haven't been able to find a reference as to 

RE: Error while sending email because of javax.activation

2018-10-25 Thread DUTERTRY Nicolas
I’ve created the jira ticket : https://issues.apache.org/jira/browse/KARAF-5989
--
Nicolas Dutertry

De : Freeman Fang 
Envoyé : jeudi 25 octobre 2018 14:58
À : user@karaf.apache.org
Objet : Re: Error while sending email because of javax.activation

Thanks for reporting this.

Could you please  create a jira ticket and I will take care of it.
-
Freeman(Yue) Fang

Red Hat, Inc.
FuseSource is now part of Red Hat



On Oct 25, 2018, at 8:20 PM, DUTERTRY Nicolas 
mailto:nicolas.duter...@soprahr.com>> wrote:

Hi,

It is not possible to send email in Karaf 4.2 with javax.mail API. When an 
email is sent, this exception is raised :

javax.mail.MessagingException: IOException while sending message;
  nested exception is:
 javax.activation.UnsupportedDataTypeException: no object DCH for MIME type 
multipart/mixed;

I’ve found that it is because the Activation Framework (javax.activation) is 
not OSGI compliant. In the previous Karaf version (4.1) a servicemix 
implementation of the Activation Framework was included but it is not the case 
anymore.

The solution to have a working Activation Framework is to remove 
javax.activation references in jre.properties and to install the bundle 
org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0.

For the future Karaf 4.2.2 can you please :
-  Remove javax.activation from jre.properties
-  Remove activation-1.1.1.jar from directory lib/boot
-  Let the user install 
org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0
 if needed

Regards,
--
Nicolas Dutertry
Sopra HR Software - http://www.soprahr.com/



Re: Error while sending email because of javax.activation

2018-10-25 Thread Freeman Fang
Thanks for reporting this.

Could you please  create a jira ticket and I will take care of it.
-
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat



> On Oct 25, 2018, at 8:20 PM, DUTERTRY Nicolas  
> wrote:
> 
> Hi,
>  
> It is not possible to send email in Karaf 4.2 with javax.mail API. When an 
> email is sent, this exception is raised :
>  
> javax.mail.MessagingException: IOException while sending message;
>   nested exception is:
>  javax.activation.UnsupportedDataTypeException: no object DCH for MIME 
> type multipart/mixed;
>  
> I’ve found that it is because the Activation Framework (javax.activation) is 
> not OSGI compliant. In the previous Karaf version (4.1) a servicemix 
> implementation of the Activation Framework was included but it is not the 
> case anymore.
>  
> The solution to have a working Activation Framework is to remove 
> javax.activation references in jre.properties and to install the bundle 
> org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0.
>  
> For the future Karaf 4.2.2 can you please :
> -  Remove javax.activation from jre.properties
> -  Remove activation-1.1.1.jar from directory lib/boot
> -  Let the user install 
> org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0
>  if needed
>  
> Regards,
> --
> Nicolas Dutertry
> Sopra HR Software - http://www.soprahr.com/ 


Error while sending email because of javax.activation

2018-10-25 Thread DUTERTRY Nicolas
Hi,

It is not possible to send email in Karaf 4.2 with javax.mail API. When an 
email is sent, this exception is raised :

javax.mail.MessagingException: IOException while sending message;
  nested exception is:
 javax.activation.UnsupportedDataTypeException: no object DCH for MIME type 
multipart/mixed;

I've found that it is because the Activation Framework (javax.activation) is 
not OSGI compliant. In the previous Karaf version (4.1) a servicemix 
implementation of the Activation Framework was included but it is not the case 
anymore.

The solution to have a working Activation Framework is to remove 
javax.activation references in jre.properties and to install the bundle 
org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0.

For the future Karaf 4.2.2 can you please :

-  Remove javax.activation from jre.properties

-  Remove activation-1.1.1.jar from directory lib/boot

-  Let the user install 
org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0
 if needed

Regards,
--
Nicolas Dutertry
Sopra HR Software - http://www.soprahr.com/


Re: Reload/restart bundle when installed with file://

2018-10-25 Thread Oleg Cohen
Thank you, JB! This works.

Best,
Oleg

> On Oct 24, 2018, at 11:43 PM, Jean-Baptiste Onofré  wrote:
>
> Hi Oleg,
>
> If the bundle is located in the same location (as I'm assuming as you
> use the eclipse workspace, you can double check with bundle:list -l),
> then simply bundle:update works.
>
> In your case bundle:watch won't work as it's related to maven URL.
>
> So you have to use bundle:update command (generally or with the bundle id).
>
> Regards
> JB
>
>> On 25/10/2018 02:11, Oleg Cohen wrote:
>> Hello,
>>
>> I have a number of bundles that I installed using the following command:
>>
>> install reference:file://$eclipse_worspace_path/bundleA
>> 
>>
>> All works well until I change code and recompile the project in Eclipse.
>> What command should I use to refresh/reload/restart bundleA to pick up
>> the changes?
>>
>> I know there is an option to install by pointing to a JAR file in the
>> maven repo and use bundle:watch, but some of my bundles take a while to
>> be bundled and deploy, especially WAB ones.
>>
>> Thank you,
>> Oleg
>>
>>
>>