Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Jean-Baptiste Onofré
HiI gonna check with Achim but I think it makes sense to have a doodle (or mailing) just to have a rough number of attendees. Regards JBLe ven. 21 f?vr. 2020 ? 08:43, Kushal Gautam  a ?crit :






Hello everyone. Thanks for the update on the meetup. I am excited to join.


Btw... is there a registration process for this event?




Regards,
Kushal.



From: Jean-Baptiste Onofre 
Sent: Friday, February 21, 2020 8:34:21 AM
To: user@karaf.apache.org 
Subject: Re: Apache Karaf community Meetup in April and CFP
 


It sounds great ;)


Thanks for all Achim ! Much appreciated ;)


Looking forward Karaf Meetup !


Regards
JB


Le 21 f?vr. 2020 ? 08:28, Achim Nierbeck  a ?crit :



Oh we have plenty of beer here. 

Mostly the world famous Tannenz?pfle from the Schwarzwald ;) 

But also non-alcoholic beverages 

I'm really looking forward to it


best regards, Achim 




Am Do., 20. Feb. 2020 um 21:03 Uhr schrieb Jean-Baptiste Onofr? :



Awesome ! Looking forward to have beers with you !


Cheers
JB



Le jeu. 20 f?vr. 2020 ? 19:55, Mike Hummel  a ?crit :


Hi, 

30.04. would be possible for me too. I'm not part of the core community but working a lot with karaf and currently moving the productive systems to kubernetes. I have a bunch of problems with it currently and could contribute solutions for it.

And I like beer and good tech talks ;) 

Regards, Mike 

> On 20. Feb 2020, at 19:44, Maurice Betzel  wrote:
> 
> JB, i left my smiley away so it was up to you if you would like to punch me 
> in the face or I could buy you a beer or two . Happy to add a smiley here. 
> 
> 
> 
> -- 
> Sent from: 
http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html 








-- 




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
















Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Kushal Gautam
Hello everyone. Thanks for the update on the meetup. I am excited to join.

Btw... is there a registration process for this event?

Regards,
Kushal.

From: Jean-Baptiste Onofre 
Sent: Friday, February 21, 2020 8:34:21 AM
To: user@karaf.apache.org 
Subject: Re: Apache Karaf community Meetup in April and CFP

It sounds great ;)

Thanks for all Achim ! Much appreciated ;)

Looking forward Karaf Meetup !

Regards
JB

Le 21 févr. 2020 à 08:28, Achim Nierbeck 
mailto:bcanh...@googlemail.com>> a écrit :

Oh we have plenty of beer here.
Mostly the world famous Tannenzäpfle from the Schwarzwald ;)
But also non-alcoholic beverages
I'm really looking forward to it

best regards, Achim

Am Do., 20. Feb. 2020 um 21:03 Uhr schrieb Jean-Baptiste Onofré 
mailto:j...@nanthrax.net>>:
Awesome ! Looking forward to have beers with you !

Cheers
JB

Le jeu. 20 f?vr. 2020 ? 19:55, Mike Hummel mailto:m...@mhus.de>> 
a ?crit :
Hi,

30.04. would be possible for me too. I'm not part of the core community but 
working a lot with karaf and currently moving the productive systems to 
kubernetes. I have a bunch of problems with it currently and could contribute 
solutions for it.

And I like beer and good tech talks ;)

Regards, Mike

> On 20. Feb 2020, at 19:44, Maurice Betzel 
> mailto:m.bet...@gaston-schul.com>> wrote:
>
> JB, i left my smiley away so it was up to you if you would like to punch me
> in the face or I could buy you a beer or two . Happy to add a smiley here.
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html



--

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




Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Jean-Baptiste Onofre
It sounds great ;)

Thanks for all Achim ! Much appreciated ;)

Looking forward Karaf Meetup !

Regards
JB

> Le 21 févr. 2020 à 08:28, Achim Nierbeck  a écrit :
> 
> Oh we have plenty of beer here. 
> Mostly the world famous Tannenzäpfle from the Schwarzwald ;) 
> But also non-alcoholic beverages 
> I'm really looking forward to it
> 
> best regards, Achim 
> 
> Am Do., 20. Feb. 2020 um 21:03 Uhr schrieb Jean-Baptiste Onofré 
> mailto:j...@nanthrax.net>>:
> Awesome ! Looking forward to have beers with you !
> 
> Cheers
> JB
> 
> Le jeu. 20 f?vr. 2020 ? 19:55, Mike Hummel  > a ?crit :
> Hi, 
> 
> 30.04. would be possible for me too. I'm not part of the core community but 
> working a lot with karaf and currently moving the productive systems to 
> kubernetes. I have a bunch of problems with it currently and could contribute 
> solutions for it. 
> 
> And I like beer and good tech talks ;) 
> 
> Regards, Mike 
> 
> > On 20. Feb 2020, at 19:44, Maurice Betzel  > > wrote: 
> > 
> > JB, i left my smiley away so it was up to you if you would like to punch me 
> > in the face or I could buy you a beer or two . Happy to add a smiley here. 
> > 
> > 
> > 
> > -- 
> > Sent from: http://karaf.922171.n3.nabble.com/ 
> > Karaf-User-f930749.html 
> 
> 
> 
> -- 
> 
> Apache Member
> Apache Karaf > Committer 
> & PMC
> OPS4J Pax Web  > Committer & Project Lead
> blog >
> Co-Author of Apache Karaf Cookbook  >
> 



Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Achim Nierbeck
Oh we have plenty of beer here.
Mostly the world famous Tannenzäpfle from the Schwarzwald ;)
But also non-alcoholic beverages
I'm really looking forward to it

best regards, Achim

Am Do., 20. Feb. 2020 um 21:03 Uhr schrieb Jean-Baptiste Onofré <
j...@nanthrax.net>:

> Awesome ! Looking forward to have beers with you !
>
> Cheers
> JB
>
> Le jeu. 20 f?vr. 2020 ? 19:55, Mike Hummel  a ?crit :
>
>> Hi,
>>
>> 30.04. would be possible for me too. I'm not part of the core community
>> but working a lot with karaf and currently moving the productive systems to
>> kubernetes. I have a bunch of problems with it currently and could
>> contribute solutions for it.
>>
>> And I like beer and good tech talks ;)
>>
>> Regards, Mike
>>
>> > On 20. Feb 2020, at 19:44, Maurice Betzel 
>> wrote:
>> >
>> > JB, i left my smiley away so it was up to you if you would like to
>> punch me
>> > in the face or I could buy you a beer or two . Happy to add a smiley
>> here.
>> >
>> >
>> >
>> > --
>> > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>>
>>

-- 

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


Re: Karaf 4.2.8 and Java 13 (Was: Error parsing system bundle export statement (Java 13))

2020-02-20 Thread Alex Soto
Notice that the error I am getting while validating the Features XML is this:

Unable to resolve root: missing requirement [root] osgi.identity; 
osgi.identity=framework; type=karaf.feature; 
filter:="(&(osgi.identity=framework)(type=karaf.feature))" [caused by: Unable 
to resolve framework/4.2.8: missing requirement [framework/4.2.8] 
osgi.identity; osgi.identity=org.ops4j.pax.logging.pax-logging-api; 
type=osgi.bundle; version="[1.11.4,1.11.4]"; resolution:=mandatory [caused by: 
Unable to resolve org.ops4j.pax.logging.pax-logging-api/1.11.4: missing 
requirement [org.ops4j.pax.logging.pax-logging-api/1.11.4] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.xml.parsers)”]]


And that, apparently, is required by  pax-logging-api (not my code), so I would 
think that the correct dependency (providing javax.xml.parsers) would be 
included in one of the Karaf’s features, or not?


Best regards,
Alex soto




> On Feb 20, 2020, at 3:07 PM, Jean-Baptiste Onofré  wrote:
> 
> You have to provide jaxb bundle as it?s now module so not included in jdk 
> (like ?add-module). 
> So tour feature should reference jaxb dep. 
> 
> Regards 
> JB
> 
> Le jeu. 20 f?vr. 2020 ? 16:58, Alex Soto  a ?crit :
> More info:
> 
> If I specify:
>   
>   1.8
> 
> In the karaf-maven-plugin configuration, then I get error:
> 
>   missing requirement [xxx] osgi.ee; 
> filter:="(&(osgi.ee=JavaSE)(version=13))"
> 
> And, if I specify:
> 
>   13  or
>   1.13
> 
> Then I get error:
> 
>   missing requirement [xxx] osgi.wiring.package; 
> filter:="(osgi.wiring.package=javax.xml.parsers)?
> 
> Any hint will be appreciated.
> Best regards,
> Alex soto
> 
> 
> 
> 
> On Feb 20, 2020, at 9:44 AM, Alex Soto  > wrote:
> 
> Anybody?s done migration of Karaf app to Java 13?  (I said 11 before, but it 
> is actually 13)
> 
> Some of the errors I am getting from karaf-maven-plugin:4.2.8:verify:
> 
> 
> [WARNING] Unable to resolve root: missing requirement [root] osgi.identity; 
> osgi.identity=framework; type=karaf.feature; 
> filter:="(&(osgi.identity=framework)(type=karaf.feature))" [caused by: Unable 
> to resolve framework/4.2.8: missing requirement [framework/4.2.8] 
> osgi.identity; osgi.identity=org.ops4j.pax.logging.pax-logging-api; 
> type=osgi.bundle; version="[1.11.4,1.11.4]"; resolution:=mandatory [caused 
> by: Unable to resolve org.ops4j.pax.logging.pax-logging-api/1.11.4: missing 
> requirement [org.ops4j.pax.logging.pax-logging-api/1.11.4] 
> osgi.wiring.package; filter:="(osgi.wiring.package=javax.xml.parsers)"]]
> 
> 
> 
> 
> Best regards,
> Alex soto
> 
> 
> 
> 
> On Feb 19, 2020, at 1:26 PM, Alex Soto  > wrote:
> 
> Hello,
> 
> I am migrating to Java 11 (from Java 8).  Everything builds successfully, but 
> running Pax-Exam integration tests produces this error:
> 
> 
> WARNING: package org.apache.karaf.specs.locator not in java.base
> ERROR: Error parsing system bundle export statement: 
> org.osgi.dto;version="1.0",org.osgi.resource;version="1.0",org.osgi.resource.dto;version="1.0";uses:="org.osgi.dto",org.osgi.framework;version="1.8",org.osgi.framework.dto;version="1.8";uses:="org.osgi.dto",org.osgi.framework.hooks.bundle;version="1.1";uses:="org.osgi.framework",org.osgi.framework.hooks.resolver;version="1.0";uses:="org.osgi.framework.wiring",org.osgi.framework.hooks.service;version="1.1";uses:="org.osgi.framework",org.osgi.framework.hooks.weaving;version="1.1";uses:="org.osgi.framework.wiring",org.osgi.framework.launch;version="1.2";uses:="org.osgi.framework",org.osgi.framework.namespace;version="1.1";uses:="org.osgi.resource",org.osgi.framework.startlevel;version="1.0";uses:="org.osgi.framework",org.osgi.framework.startlevel.dto;version="1.0";uses:="org.osgi.dto",org.osgi.framework.wiring;version="1.2";uses:="org.osgi.framework,org.osgi.resource",org.osgi.framework.wiring.dto;version="1.2";uses:="org.osgi.dto,org.osgi.resource.dto",org.osgi.service.co
>  
> ndpermadmin;version="1.1.1";uses:="org.osgi.framework,org.osgi.service.permissionadmin",org.osgi.service.packageadmin;version="1.2";uses:="org.osgi.framework",org.osgi.service.permissionadmin;version="1.2",org.osgi.service.resolver;version="1.0";uses:="org.osgi.resource",org.osgi.service.startlevel;version="1.1";uses:="org.osgi.framework",org.osgi.service.url;version="1.0",org.osgi.util.tracker;version="1.5.1";uses:="org.osgi.framework",org.apache.karaf.version;version="4.2.8",org.apache.karaf.jaas.boot.principal;uses:=javax.security.auth;version="4.2.8",org.apache.karaf.jaas.boot;uses:="javax.security.auth,javax.security.auth.callback,javax.security.auth.login,javax.security.auth.spi,org.osgi.framework";version="4.2.8",org.apache.karaf.info
>  ;version="4.2.8",,org.apache.karaf.branding, 
> sun.misc, com.sun.jmx.remote.protocol, com.sun.jmx.remote.protocol.jmxmp, 
> org.apache.karaf.jaas.boot;uses:="javax.security.auth,javax.sec

Re: Karaf 4.2.8 and Java 13 (Was: Error parsing system bundle export statement (Java 13))

2020-02-20 Thread Alex Soto
JB,  

I've added:


jakarta.xml.bind
jakarta.xml.bind-api


org.glassfish.jaxb
jaxb-runtime
provided


But these contain javax.xml.bind not javax.xml.parsers,  do you know what to 
add for this?


Best regards,
Alex soto




> On Feb 20, 2020, at 3:07 PM, Jean-Baptiste Onofré  wrote:
> 
> You have to provide jaxb bundle as it?s now module so not included in jdk 
> (like ?add-module). 
> So tour feature should reference jaxb dep. 
> 
> Regards 
> JB
> 
> Le jeu. 20 f?vr. 2020 ? 16:58, Alex Soto  a ?crit :
> More info:
> 
> If I specify:
>   
>   1.8
> 
> In the karaf-maven-plugin configuration, then I get error:
> 
>   missing requirement [xxx] osgi.ee; 
> filter:="(&(osgi.ee=JavaSE)(version=13))"
> 
> And, if I specify:
> 
>   13  or
>   1.13
> 
> Then I get error:
> 
>   missing requirement [xxx] osgi.wiring.package; 
> filter:="(osgi.wiring.package=javax.xml.parsers)?
> 
> Any hint will be appreciated.
> Best regards,
> Alex soto
> 
> 
> 
> 
> On Feb 20, 2020, at 9:44 AM, Alex Soto  > wrote:
> 
> Anybody?s done migration of Karaf app to Java 13?  (I said 11 before, but it 
> is actually 13)
> 
> Some of the errors I am getting from karaf-maven-plugin:4.2.8:verify:
> 
> 
> [WARNING] Unable to resolve root: missing requirement [root] osgi.identity; 
> osgi.identity=framework; type=karaf.feature; 
> filter:="(&(osgi.identity=framework)(type=karaf.feature))" [caused by: Unable 
> to resolve framework/4.2.8: missing requirement [framework/4.2.8] 
> osgi.identity; osgi.identity=org.ops4j.pax.logging.pax-logging-api; 
> type=osgi.bundle; version="[1.11.4,1.11.4]"; resolution:=mandatory [caused 
> by: Unable to resolve org.ops4j.pax.logging.pax-logging-api/1.11.4: missing 
> requirement [org.ops4j.pax.logging.pax-logging-api/1.11.4] 
> osgi.wiring.package; filter:="(osgi.wiring.package=javax.xml.parsers)"]]
> 
> 
> 
> 
> Best regards,
> Alex soto
> 
> 
> 
> 
> On Feb 19, 2020, at 1:26 PM, Alex Soto  > wrote:
> 
> Hello,
> 
> I am migrating to Java 11 (from Java 8).  Everything builds successfully, but 
> running Pax-Exam integration tests produces this error:
> 
> 
> WARNING: package org.apache.karaf.specs.locator not in java.base
> ERROR: Error parsing system bundle export statement: 
> org.osgi.dto;version="1.0",org.osgi.resource;version="1.0",org.osgi.resource.dto;version="1.0";uses:="org.osgi.dto",org.osgi.framework;version="1.8",org.osgi.framework.dto;version="1.8";uses:="org.osgi.dto",org.osgi.framework.hooks.bundle;version="1.1";uses:="org.osgi.framework",org.osgi.framework.hooks.resolver;version="1.0";uses:="org.osgi.framework.wiring",org.osgi.framework.hooks.service;version="1.1";uses:="org.osgi.framework",org.osgi.framework.hooks.weaving;version="1.1";uses:="org.osgi.framework.wiring",org.osgi.framework.launch;version="1.2";uses:="org.osgi.framework",org.osgi.framework.namespace;version="1.1";uses:="org.osgi.resource",org.osgi.framework.startlevel;version="1.0";uses:="org.osgi.framework",org.osgi.framework.startlevel.dto;version="1.0";uses:="org.osgi.dto",org.osgi.framework.wiring;version="1.2";uses:="org.osgi.framework,org.osgi.resource",org.osgi.framework.wiring.dto;version="1.2";uses:="org.osgi.dto,org.osgi.resource.dto",org.osgi.service.co
>  
> ndpermadmin;version="1.1.1";uses:="org.osgi.framework,org.osgi.service.permissionadmin",org.osgi.service.packageadmin;version="1.2";uses:="org.osgi.framework",org.osgi.service.permissionadmin;version="1.2",org.osgi.service.resolver;version="1.0";uses:="org.osgi.resource",org.osgi.service.startlevel;version="1.1";uses:="org.osgi.framework",org.osgi.service.url;version="1.0",org.osgi.util.tracker;version="1.5.1";uses:="org.osgi.framework",org.apache.karaf.version;version="4.2.8",org.apache.karaf.jaas.boot.principal;uses:=javax.security.auth;version="4.2.8",org.apache.karaf.jaas.boot;uses:="javax.security.auth,javax.security.auth.callback,javax.security.auth.login,javax.security.auth.spi,org.osgi.framework";version="4.2.8",org.apache.karaf.info
>  ;version="4.2.8",,org.apache.karaf.branding, 
> sun.misc, com.sun.jmx.remote.protocol, com.sun.jmx.remote.protocol.jmxmp, 
> org.apache.karaf.jaas.boot;uses:="javax.security.auth,javax.security.auth.callback,javax.security.auth.login,javax.security.auth.spi,org.osgi.framework";version=4.2.8,
>  
> org.apache.karaf.jaas.boot.principal;uses:=javax.security.auth;version=4.2.8, 
> org.apache.karaf.diagnostic.core;uses:=org.osgi.framework;version=4.2.8, 
> org.apache.karaf.diagnostic.core.common;uses:=org.apache.karaf.diagnostic.core;version=4.2.8
> org.osgi.framework.BundleException: Exported package names cannot be zero 
> length.
>   at 
> org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeExport

Re: Karaf 4.2.8 and Java 13 (Was: Error parsing system bundle export statement (Java 13))

2020-02-20 Thread Jean-Baptiste Onofré
You have to provide jaxb bundle as it?s now module so not included in jdk (like ?add-module). So tour feature should reference jaxb dep. Regards JBLe jeu. 20 f?vr. 2020 ? 16:58, Alex Soto  a ?crit :More info:If I specify:		1.8In the karaf-maven-plugin configuration, then I get error:	missing requirement [xxx] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=13))"And, if I specify:	13      or	1.13Then I get error:	missing requirement [xxx] osgi.wiring.package; filter:="(osgi.wiring.package=javax.xml.parsers)?Any hint will be appreciated.Best regards,Alex soto


On Feb 20, 2020, at 9:44 AM, Alex Soto  wrote:Anybody?s done migration of Karaf app to Java 13?  (I said 11 before, but it is actually 13)Some of the errors I am getting from karaf-maven-plugin:4.2.8:verify:[WARNING] Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=framework; type=karaf.feature; filter:="(&(osgi.identity=framework)(type=karaf.feature))" [caused by: Unable to resolve framework/4.2.8: missing requirement [framework/4.2.8] osgi.identity; osgi.identity=org.ops4j.pax.logging.pax-logging-api; type=osgi.bundle; version="[1.11.4,1.11.4]"; resolution:=mandatory [caused by: Unable to resolve org.ops4j.pax.logging.pax-logging-api/1.11.4: missing requirement [org.ops4j.pax.logging.pax-logging-api/1.11.4] osgi.wiring.package; filter:="(osgi.wiring.package=javax.xml.parsers)"]]
Best regards,Alex soto


On Feb 19, 2020, at 1:26 PM, Alex Soto  wrote:Hello,I am migrating to Java 11 (from Java 8).  Everything builds successfully, but running Pax-Exam integration tests produces this error:WARNING: package org.apache.karaf.specs.locator not in java.baseERROR: Error parsing system bundle export statement: org.osgi.dto;version="1.0",org.osgi.resource;version="1.0",org.osgi.resource.dto;version="1.0";uses:="org.osgi.dto",org.osgi.framework;version="1.8",org.osgi.framework.dto;version="1.8";uses:="org.osgi.dto",org.osgi.framework.hooks.bundle;version="1.1";uses:="org.osgi.framework",org.osgi.framework.hooks.resolver;version="1.0";uses:="org.osgi.framework.wiring",org.osgi.framework.hooks.service;version="1.1";uses:="org.osgi.framework",org.osgi.framework.hooks.weaving;version="1.1";uses:="org.osgi.framework.wiring",org.osgi.framework.launch;version="1.2";uses:="org.osgi.framework",org.osgi.framework.namespace;version="1.1";uses:="org.osgi.resource",org.osgi.framework.startlevel;version="1.0";uses:="org.osgi.framework",org.osgi.framework.startlevel.dto;version="1.0";uses:="org.osgi.dto",org.osgi.framework.wiring;version="1.2";uses:="org.osgi.framework,org.osgi.resource",org.osgi.framework.wiring.dto;version="1.2";uses:="org.osgi.dto,org.osgi.resource.dto",org.osgi.service.condpermadmin;version="1.1.1";uses:="org.osgi.framework,org.osgi.service.permissionadmin",org.osgi.service.packageadmin;version="1.2";uses:="org.osgi.framework",org.osgi.service.permissionadmin;version="1.2",org.osgi.service.resolver;version="1.0";uses:="org.osgi.resource",org.osgi.service.startlevel;version="1.1";uses:="org.osgi.framework",org.osgi.service.url;version="1.0",org.osgi.util.tracker;version="1.5.1";uses:="org.osgi.framework",org.apache.karaf.version;version="4.2.8",org.apache.karaf.jaas.boot.principal;uses:=javax.security.auth;version="4.2.8",org.apache.karaf.jaas.boot;uses:="javax.security.auth,javax.security.auth.callback,javax.security.auth.login,javax.security.auth.spi,org.osgi.framework";version="4.2.8",org.apache.karaf.info;version="4.2.8",,org.apache.karaf.branding, sun.misc, com.sun.jmx.remote.protocol, com.sun.jmx.remote.protocol.jmxmp, org.apache.karaf.jaas.boot;uses:="javax.security.auth,javax.security.auth.callback,javax.security.auth.login,javax.security.auth.spi,org.osgi.framework";version=4.2.8, org.apache.karaf.jaas.boot.principal;uses:=javax.security.auth;version=4.2.8, org.apache.karaf.diagnostic.core;uses:=org.osgi.framework;version=4.2.8, org.apache.karaf.diagnostic.core.common;uses:=org.apache.karaf.diagnostic.core;version=4.2.8org.osgi.framework.BundleException: Exported package names cannot be zero length.	at org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeExportClauses(ManifestParser.java:876)	at org.apache.felix.framework.util.manifestparser.ManifestParser.(ManifestParser.java:215)	at org.apache.felix.framework.ExtensionManager.(ExtensionManager.java:261)	at org.apache.felix.framework.Felix.(Felix.java:429)	at org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28)	at org.apache.karaf.main.Main.launch(Main.java:256)	at org.apache.karaf.main.Main.main(Main.java:178)I understand there is an empty package export (two consecutive commas in red color above),  but I don?t know where it is coming from. Any ideas?
Best regards,Alex soto




Re: Karaf 4.2.x do not terminate for SIGTERM

2020-02-20 Thread Mike Hummel
Hi,

I did it ...

export KARAF_EXEC=exec
exec ./bin/karaf $@

... did the trick. Maybe it was set by default in a previous version. 

Thx for investigation,
Mike

> On 20. Feb 2020, at 20:49, Jean-Baptiste Onofré  wrote:
> 
> Hi
> 
> Hmmm weird it should work. Let me do a bisect. 
> 
> Regards 
> JB
> 
> Le jeu. 20 f?vr. 2020 ? 20:05, Mike Hummel  a ?crit :
> Hi, 
> 
> I'm using karaf in docker containers and prepared the start scripts to 
> forward signals to the karaf server. And I'm sure a older version (4.2.3) was 
> able to terminate with SIGTERM. But minimum since 4.2.6 up to 4.2.8 karaf 
> will not terminate. 
> 
> This prevents a graceful shutdown in docker and kubernetes. 
> 
> Is there a way to enable SIGTERM shutdown or maybe send another signal? 
> 
> Thx, 
> 
> Mike



Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Jean-Baptiste Onofré
Awesome ! Looking forward to have beers with you !CheersJBLe jeu. 20 f?vr. 2020 ? 19:55, Mike Hummel  a ?crit :Hi,

30.04. would be possible for me too. I'm not part of the core community but working a lot with karaf and currently moving the productive systems to kubernetes. I have a bunch of problems with it currently and could contribute solutions for it.

And I like beer and good tech talks ;)

Regards, Mike

> On 20. Feb 2020, at 19:44, Maurice Betzel  wrote:
> 
> JB, i left my smiley away so it was up to you if you would like to punch me
> in the face or I could buy you a beer or two . Happy to add a smiley here.
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html



Re: Karaf 4.2.x do not terminate for SIGTERM

2020-02-20 Thread Jean-Baptiste Onofré
HiHmmm weird it should work. Let me do a bisect. Regards JBLe jeu. 20 f?vr. 2020 ? 20:05, Mike Hummel  a ?crit :Hi,

I'm using karaf in docker containers and prepared the start scripts to forward signals to the karaf server. And I'm sure a older version (4.2.3) was able to terminate with SIGTERM. But minimum since 4.2.6 up to 4.2.8 karaf will not terminate.

This prevents a graceful shutdown in docker and kubernetes.

Is there a way to enable SIGTERM shutdown or maybe send another signal?

Thx,

Mike

Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Jean-Baptiste Onofré
Always +1 for a beer (or two or three or more ;) )Looking forward that ;)RegardsJBLe jeu. 20 f?vr. 2020 ? 19:44, Maurice Betzel  a ?crit :JB, i left my smiley away so it was up to you if you would like to punch me
in the face or I could buy you a beer or two . Happy to add a smiley here.



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


Karaf 4.2.x do not terminate for SIGTERM

2020-02-20 Thread Mike Hummel
Hi,

I'm using karaf in docker containers and prepared the start scripts to forward 
signals to the karaf server. And I'm sure a older version (4.2.3) was able to 
terminate with SIGTERM. But minimum since 4.2.6 up to 4.2.8 karaf will not 
terminate.

This prevents a graceful shutdown in docker and kubernetes.

Is there a way to enable SIGTERM shutdown or maybe send another signal?

Thx,

Mike

Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Mike Hummel
Hi,

30.04. would be possible for me too. I'm not part of the core community but 
working a lot with karaf and currently moving the productive systems to 
kubernetes. I have a bunch of problems with it currently and could contribute 
solutions for it.

And I like beer and good tech talks ;)

Regards, Mike

> On 20. Feb 2020, at 19:44, Maurice Betzel  wrote:
> 
> JB, i left my smiley away so it was up to you if you would like to punch me
> in the face or I could buy you a beer or two . Happy to add a smiley here.
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html



Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Maurice Betzel
JB, i left my smiley away so it was up to you if you would like to punch me
in the face or I could buy you a beer or two . Happy to add a smiley here.



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


Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Jean-Baptiste Onofré
Sorry the smileys have been converted as ? ;)RegardsJBLe jeu. 20 f?vr. 2020 ? 10:15, Jean-Baptiste Onofr?  a ?crit :Ahhh got it The schedule will be shared soon. We will start at 4pm up to late at night Regards JBLe jeu. 20 f?vr. 2020 ? 10:08, Maurice Betzel  a ?crit :Simply put, at what time should i be there?



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


Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Maurice Betzel
JB, i get it, but I am still coming.



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


Karaf 4.2.8 and Java 13 (Was: Error parsing system bundle export statement (Java 13))

2020-02-20 Thread Alex Soto
More info:

If I specify:

1.8

In the karaf-maven-plugin configuration, then I get error:

missing requirement [xxx] osgi.ee; 
filter:="(&(osgi.ee=JavaSE)(version=13))"

And, if I specify:

13  or
1.13

Then I get error:

missing requirement [xxx] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.xml.parsers)”

Any hint will be appreciated.
Best regards,
Alex soto




> On Feb 20, 2020, at 9:44 AM, Alex Soto  wrote:
> 
> Anybody’s done migration of Karaf app to Java 13?  (I said 11 before, but it 
> is actually 13)
> 
> Some of the errors I am getting from karaf-maven-plugin:4.2.8:verify:
> 
> 
> [WARNING] Unable to resolve root: missing requirement [root] osgi.identity; 
> osgi.identity=framework; type=karaf.feature; 
> filter:="(&(osgi.identity=framework)(type=karaf.feature))" [caused by: Unable 
> to resolve framework/4.2.8: missing requirement [framework/4.2.8] 
> osgi.identity; osgi.identity=org.ops4j.pax.logging.pax-logging-api; 
> type=osgi.bundle; version="[1.11.4,1.11.4]"; resolution:=mandatory [caused 
> by: Unable to resolve org.ops4j.pax.logging.pax-logging-api/1.11.4: missing 
> requirement [org.ops4j.pax.logging.pax-logging-api/1.11.4] 
> osgi.wiring.package; filter:="(osgi.wiring.package=javax.xml.parsers)"]]
> 
> 
> 
> 
> Best regards,
> Alex soto
> 
> 
> 
> 
>> On Feb 19, 2020, at 1:26 PM, Alex Soto > > wrote:
>> 
>> Hello,
>> 
>> I am migrating to Java 11 (from Java 8).  Everything builds successfully, 
>> but running Pax-Exam integration tests produces this error:
>> 
>> 
>> WARNING: package org.apache.karaf.specs.locator not in java.base
>> ERROR: Error parsing system bundle export statement: 
>> org.osgi.dto;version="1.0",org.osgi.resource;version="1.0",org.osgi.resource.dto;version="1.0";uses:="org.osgi.dto",org.osgi.framework;version="1.8",org.osgi.framework.dto;version="1.8";uses:="org.osgi.dto",org.osgi.framework.hooks.bundle;version="1.1";uses:="org.osgi.framework",org.osgi.framework.hooks.resolver;version="1.0";uses:="org.osgi.framework.wiring",org.osgi.framework.hooks.service;version="1.1";uses:="org.osgi.framework",org.osgi.framework.hooks.weaving;version="1.1";uses:="org.osgi.framework.wiring",org.osgi.framework.launch;version="1.2";uses:="org.osgi.framework",org.osgi.framework.namespace;version="1.1";uses:="org.osgi.resource",org.osgi.framework.startlevel;version="1.0";uses:="org.osgi.framework",org.osgi.framework.startlevel.dto;version="1.0";uses:="org.osgi.dto",org.osgi.framework.wiring;version="1.2";uses:="org.osgi.framework,org.osgi.resource",org.osgi.framework.wiring.dto;version="1.2";uses:="org.osgi.dto,org.osgi.resource.dto",org.osgi.service.co
>>  
>> ndpermadmin;version="1.1.1";uses:="org.osgi.framework,org.osgi.service.permissionadmin",org.osgi.service.packageadmin;version="1.2";uses:="org.osgi.framework",org.osgi.service.permissionadmin;version="1.2",org.osgi.service.resolver;version="1.0";uses:="org.osgi.resource",org.osgi.service.startlevel;version="1.1";uses:="org.osgi.framework",org.osgi.service.url;version="1.0",org.osgi.util.tracker;version="1.5.1";uses:="org.osgi.framework",org.apache.karaf.version;version="4.2.8",org.apache.karaf.jaas.boot.principal;uses:=javax.security.auth;version="4.2.8",org.apache.karaf.jaas.boot;uses:="javax.security.auth,javax.security.auth.callback,javax.security.auth.login,javax.security.auth.spi,org.osgi.framework";version="4.2.8",org.apache.karaf.info
>>  ;version="4.2.8",,org.apache.karaf.branding, 
>> sun.misc, com.sun.jmx.remote.protocol, com.sun.jmx.remote.protocol.jmxmp, 
>> org.apache.karaf.jaas.boot;uses:="javax.security.auth,javax.security.auth.callback,javax.security.auth.login,javax.security.auth.spi,org.osgi.framework";version=4.2.8,
>>  
>> org.apache.karaf.jaas.boot.principal;uses:=javax.security.auth;version=4.2.8,
>>  org.apache.karaf.diagnostic.core;uses:=org.osgi.framework;version=4.2.8, 
>> org.apache.karaf.diagnostic.core.common;uses:=org.apache.karaf.diagnostic.core;version=4.2.8
>> org.osgi.framework.BundleException: Exported package names cannot be zero 
>> length.
>>  at 
>> org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeExportClauses(ManifestParser.java:876)
>>  at 
>> org.apache.felix.framework.util.manifestparser.ManifestParser.(ManifestParser.java:215)
>>  at 
>> org.apache.felix.framework.ExtensionManager.(ExtensionManager.java:261)
>>  at org.apache.felix.framework.Felix.(Felix.java:429)
>>  at 
>> org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28)
>>  at org.apache.karaf.main.Main.launch(Main.java:256)
>>  at org.apache.karaf.main.Main.main(Main.java:178)
>> 
>> 
>> I understand there is an empty package export (two consecutive commas in red 
>> color above),  but I don’t know where it is coming from. Any ideas?
>> 
>> Best regards,
>> Alex soto
>> 
>> 
>> 
>> 
> 



Re: Error parsing system bundle export statement (Java 13)

2020-02-20 Thread Alex Soto
Anybody’s done migration of Karaf app to Java 13?  (I said 11 before, but it is 
actually 13)

Some of the errors I am getting from karaf-maven-plugin:4.2.8:verify:


[WARNING] Unable to resolve root: missing requirement [root] osgi.identity; 
osgi.identity=framework; type=karaf.feature; 
filter:="(&(osgi.identity=framework)(type=karaf.feature))" [caused by: Unable 
to resolve framework/4.2.8: missing requirement [framework/4.2.8] 
osgi.identity; osgi.identity=org.ops4j.pax.logging.pax-logging-api; 
type=osgi.bundle; version="[1.11.4,1.11.4]"; resolution:=mandatory [caused by: 
Unable to resolve org.ops4j.pax.logging.pax-logging-api/1.11.4: missing 
requirement [org.ops4j.pax.logging.pax-logging-api/1.11.4] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.xml.parsers)"]]




Best regards,
Alex soto




> On Feb 19, 2020, at 1:26 PM, Alex Soto  wrote:
> 
> Hello,
> 
> I am migrating to Java 11 (from Java 8).  Everything builds successfully, but 
> running Pax-Exam integration tests produces this error:
> 
> 
> WARNING: package org.apache.karaf.specs.locator not in java.base
> ERROR: Error parsing system bundle export statement: 
> org.osgi.dto;version="1.0",org.osgi.resource;version="1.0",org.osgi.resource.dto;version="1.0";uses:="org.osgi.dto",org.osgi.framework;version="1.8",org.osgi.framework.dto;version="1.8";uses:="org.osgi.dto",org.osgi.framework.hooks.bundle;version="1.1";uses:="org.osgi.framework",org.osgi.framework.hooks.resolver;version="1.0";uses:="org.osgi.framework.wiring",org.osgi.framework.hooks.service;version="1.1";uses:="org.osgi.framework",org.osgi.framework.hooks.weaving;version="1.1";uses:="org.osgi.framework.wiring",org.osgi.framework.launch;version="1.2";uses:="org.osgi.framework",org.osgi.framework.namespace;version="1.1";uses:="org.osgi.resource",org.osgi.framework.startlevel;version="1.0";uses:="org.osgi.framework",org.osgi.framework.startlevel.dto;version="1.0";uses:="org.osgi.dto",org.osgi.framework.wiring;version="1.2";uses:="org.osgi.framework,org.osgi.resource",org.osgi.framework.wiring.dto;version="1.2";uses:="org.osgi.dto,org.osgi.resource.dto",org.osgi.service.co
>  
> ndpermadmin;version="1.1.1";uses:="org.osgi.framework,org.osgi.service.permissionadmin",org.osgi.service.packageadmin;version="1.2";uses:="org.osgi.framework",org.osgi.service.permissionadmin;version="1.2",org.osgi.service.resolver;version="1.0";uses:="org.osgi.resource",org.osgi.service.startlevel;version="1.1";uses:="org.osgi.framework",org.osgi.service.url;version="1.0",org.osgi.util.tracker;version="1.5.1";uses:="org.osgi.framework",org.apache.karaf.version;version="4.2.8",org.apache.karaf.jaas.boot.principal;uses:=javax.security.auth;version="4.2.8",org.apache.karaf.jaas.boot;uses:="javax.security.auth,javax.security.auth.callback,javax.security.auth.login,javax.security.auth.spi,org.osgi.framework";version="4.2.8",org.apache.karaf.info
>  ;version="4.2.8",,org.apache.karaf.branding, 
> sun.misc, com.sun.jmx.remote.protocol, com.sun.jmx.remote.protocol.jmxmp, 
> org.apache.karaf.jaas.boot;uses:="javax.security.auth,javax.security.auth.callback,javax.security.auth.login,javax.security.auth.spi,org.osgi.framework";version=4.2.8,
>  
> org.apache.karaf.jaas.boot.principal;uses:=javax.security.auth;version=4.2.8, 
> org.apache.karaf.diagnostic.core;uses:=org.osgi.framework;version=4.2.8, 
> org.apache.karaf.diagnostic.core.common;uses:=org.apache.karaf.diagnostic.core;version=4.2.8
> org.osgi.framework.BundleException: Exported package names cannot be zero 
> length.
>   at 
> org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeExportClauses(ManifestParser.java:876)
>   at 
> org.apache.felix.framework.util.manifestparser.ManifestParser.(ManifestParser.java:215)
>   at 
> org.apache.felix.framework.ExtensionManager.(ExtensionManager.java:261)
>   at org.apache.felix.framework.Felix.(Felix.java:429)
>   at 
> org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28)
>   at org.apache.karaf.main.Main.launch(Main.java:256)
>   at org.apache.karaf.main.Main.main(Main.java:178)
> 
> 
> I understand there is an empty package export (two consecutive commas in red 
> color above),  but I don’t know where it is coming from. Any ideas?
> 
> Best regards,
> Alex soto
> 
> 
> 
> 



Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Achim Nierbeck
Hi,

yeah sorry I might have communicated this wrong. It's open to everybody to
participate right away at 4 pm.
My intention is to have an even more public advertising for the later part,
to reach even more people via our regular meetup channels.
That's been the sole purpose of the "later" part. Though thinking about it
I might do the advertisement for the event via meetup.com via a "split"
event.
Might be easier to track who'll join early and who'll join later on. This
will also be needed to plan for the catering, as we (as company) can host
up to 30ish People in our meetup space.

If there is anything still unclear feel free to let us know.

regards, Achim

P.S. don't forget to give us a ping if you would like to give a talk :)

Am Do., 20. Feb. 2020 um 10:16 Uhr schrieb Jean-Baptiste Onofré <
j...@nanthrax.net>:

> Ahhh got it 
>
> The schedule will be shared soon. We will start at 4pm up to late at night
> 
>
> Regards
> JB
>
> Le jeu. 20 f?vr. 2020 ? 10:08, Maurice Betzel 
> a ?crit :
>
>> Simply put, at what time should i be there?
>>
>>
>>
>> --
>> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>>
>

-- 

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


Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Jean-Baptiste Onofré
Ahhh got it The schedule will be shared soon. We will start at 4pm up to late at night Regards JBLe jeu. 20 f?vr. 2020 ? 10:08, Maurice Betzel  a ?crit :Simply put, at what time should i be there?



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


Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Maurice Betzel
Simply put, at what time should i be there?



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


Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Jean-Baptiste Onofré
Hi Maurice I?m not sure I follow you. Can you please elaborate ?Regards JBLe jeu. 20 f?vr. 2020 ? 09:49, Maurice Betzel  a ?crit :Hi Achim an JB,

thank you for your the effort regarding this event.
My conception of a complete open community, as proclaimed on the Karaf
website, might be wrong.
But having a closed and a open event part which you "like to open even
further to more people outside this community" makes me wonder. Could you
elaborate a bit this so i can make myself a clearer picture what your
intentions are?

Thanks Maurice.



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


Re: How to read single character from a Karaf's command

2020-02-20 Thread Mike Hummel
Hi, sorry for delay...

the source is here 
https://github.com/mhus/mhus-osgi-tools/blob/master/mhu-osgi-api/src/main/java/de/mhus/osgi/api/karaf/KarafConsole.java

you can have a look in the pom file of the project for dependencies.

Best Regards, 
Mike


> On 14. Feb 2020, at 15:13, Alex Soto  wrote:
> 
> Thanks Mike, 
> 
> 
> I assume you are referring to this class org.jline.reader.impl.LineReaderImpl 
> from JLine bundle; unfortunately, it is not exported, so I don’t have 
> visibility to use it in my code.  This class implements interface 
> org.jline.reader.LineReader, which is visible, but it does not have a 
> readCharacter method.  How did you overcome this?
> 
> Thanks and best regards,
> Alex soto
> 
> 
> 
> 
>> On Feb 14, 2020, at 2:29 AM, Mike Hummel > > wrote:
>> 
>> Hi,
>> 
>> you could try
>> 
>> ((LineReaderImpl) session.get(".reader")).readCharacter()
>> 
>> Best regards,
>> Mike
>> 
>>> On 21. Jan 2020, at 17:40, Alex Soto >> > wrote:
>>> 
>>> Hello,
>>> 
>>> I am trying to to write a Karaf Command that can pause its output until the 
>>> user presses any key, or ‘q’, similar to how Linux `more` command does.   
>>> So far I have been able to prompt for user input using 
>>> org.apache.karaf.shell.api.console.Session.readLine,  but this requires the 
>>> user to press the Enter key.  I want the user to press the space bar or key 
>>> `q` (for quit) without having to press the Enter key.
>>> 
>>> Any hints or pointers on how to accomplish this?
>>> 
>>> 
>>> Best regards,
>>> Alex soto
>>> 
>>> 
>>> 
>>> 
>> 
> 



Re: Apache Karaf community Meetup in April and CFP

2020-02-20 Thread Maurice Betzel
Hi Achim an JB,

thank you for your the effort regarding this event.
My conception of a complete open community, as proclaimed on the Karaf
website, might be wrong.
But having a closed and a open event part which you "like to open even
further to more people outside this community" makes me wonder. Could you
elaborate a bit this so i can make myself a clearer picture what your
intentions are?

Thanks Maurice.



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