Re: jdk.net requirement for mongodb driver >4.1

2021-06-21 Thread Michal Hlavac
Hi, jdk 16 with karaf 4.3.2

thanks, m.

On piatok 18. júna 2021 14:20:50 CEST Jean-Baptiste Onofre wrote:
> What JDK are you using ?
> 
> Regards
> JB
> 
> > Le 18 juin 2021 à 09:57, Michal Hlavac  a écrit :
> > 
> > Hi,
> > 
> > I would like to ask how to solve this error in feature validation in 
> > feature maven module.
> > MongoDb driver from version 4.1 has dependency on jdk.net package and 
> > feature validation says:
> > Unable to resolve org.mongodb.driver-core/4.2.3: missing requirement 
> > [org.mongodb.driver-core/4.2.3] osgi.wiring.package; 
> > filter:="(osgi.wiring.package=jdk.net)"
> > 
> > I read previous post where you suggest to add this package to 
> > jre.properties, but that does not solve problem with feature validation
> > 
> > thanks, m.
> > 
> > 
> 
> 




jdk.net requirement for mongodb driver >4.1

2021-06-18 Thread Michal Hlavac
Hi,

I would like to ask how to solve this error in feature validation in 
feature maven module.
MongoDb driver from version 4.1 has dependency on jdk.net package and feature 
validation says:
Unable to resolve org.mongodb.driver-core/4.2.3: missing requirement 
[org.mongodb.driver-core/4.2.3] osgi.wiring.package; 
filter:="(osgi.wiring.package=jdk.net)"

I read previous post where you suggest to add this package to jre.properties, 
but that does not solve problem with feature validation

thanks, m.




Re: JDK version for Karaf 4.3.0

2021-01-11 Thread Michal Hlavac
Hi,

from what I've tested, it works on JDK 15 on project:
https://github.com/hlavki/g-suite-identity-sync

m.

On pondelok 11. januára 2021 15:12:02 CET Jean-Baptiste Onofre wrote:
> Hi Oleg,
> 
> JDK 11 works fine with Karaf 4.3.0.
> 
> I’m testing JDK14/JDK15 now.
> 
> Regards
> JB
> 
> > Le 11 janv. 2021 à 13:47, Oleg Cohen  a écrit :
> > 
> > Greetings,
> > 
> > Wanted to confirm the latest JDK that is supported by Karaf 4.3.0.
> > 
> > I am now using 11. Would love to move to a later one.
> > 
> > Thank you!
> > Oleg
> > 
> 
-- 
[ michal hlavac ] [ m...@hlavki.eu[1] ] [ tel: +420 773 205 794 ] 


[1] mailto:m...@hlavki.eu


Re: Moving to JDK 11

2019-02-19 Thread Michal Hlavac
can confirm that with CXF 3.3.0 it works!

thanks, m.

On nedeľa 20. januára 2019 19:14:45 CET Michal Hlaváč wrote:


one thing to mention is, that it works using Java 1.8



On Fri, Jan 18, 2019 at 1:39 PM Jean-Baptiste Onofré  
wrote:


Hi Michal,

There's a couple of fix coming in CXF 3.2.8. Let me check if this caseis 
covered.

RegardsJB

On 18/01/2019 11:28, Michal Hlaváč wrote:> Btw. I tried to find those 
transitive dependency an it's cxf with shell> feature:> 
https://github.com/apache/cxf/blob/cxf-3.2.6/osgi/karaf/features/src/main/resources/features.xml#L95[2]
m...@hlavki.eu[3]
_miso@hlavki.eu_>> wrote:> > thanks JB,> > I've pushed jdk11 branch 
with changes. thanks, m.> > On Fri, Jan 18, 2019 at 10:33 AM Jean-Baptiste 
Onofré> mailto:_jb@nanthrax.net_>> wrote:> > 
Hi Michal,> > I guess one features (transitive) is referencing 
4.2.1-SNAPSHOT.> > Let me take a look on your github.> > 
Regards> JB> > On 18/01/2019 10:00, Michal Hlaváč wrote:>   
  > Hello,> >> > I tried to move my project> > 
https://github.com/hlavki/g-suite-identity-sync[4] to JDK 11.> > 1. So 
I changed:> > 
11> > 
11> >> > 2. All 
occurences of  to 11> >> > 3. Added 
jaxb to classpath.> >> > and I get this error:> > 
Failed to execute goal on project> g-suite-identity-sync-features: 
Could> > not resolve dependencies for project> >> 
eu.hlavki.identity:g-suite-identity-sync-features:feature:0.3.7-SNAPSHOT:>  
   Failure> > to find> >> 
org.apache.karaf.shell:org.apache.karaf.shell.core:jar:4.2.1-SNAPSHOT> 
in> > https://repository.apache.org/snapshots/[5] was cached in the 
local> > repository, resolution will not be reattempted until the>  
   update interval> > of apache.snapshots has elapsed or updates are 
forced -> [Help 1]> >> > It's strange, because there no mention 
of 4.2.1-SNAPSHOT> version. CXF> > feature also does not define 
version of shell feature.> >> > Same behaviour with karaf 
4.2.2.> >> > thanks, m.> > -- > Jean-Baptiste 
Onofré> jbono...@apache.org[6] > 
http://blog.nanthrax.net[7]
http://www.talend.com[8]
jbono...@apache.org[6]
http://blog.nanthrax.net[7]
http://www.talend.com[8]





[1] mailto:j...@nanthrax.net
[2] 
https://github.com/apache/cxf/blob/cxf-3.2.6/osgi/karaf/features/src/main/resources/features.xml#L95
[3] mailto:m...@hlavki.eu
[4] https://github.com/hlavki/g-suite-identity-sync
[5] https://repository.apache.org/snapshots/
[6] mailto:jbono...@apache.org
[7] http://blog.nanthrax.net
[8] http://www.talend.com


Re: Is it possible to make karaf run a set of command line commands?

2018-03-17 Thread Michal Hlavac
you can use docker exec or compose exec to run multiple commands from file.
create configure.cmd file with commands e.g.

config:edit com.example.config
config:property-set example.property value
config:update
then run:

docker-compose exec -T container /opt/karaf/bin/client -b < configure.cmd

m.

On štvrtok, 1. marca 2018 22:10:18 CET Steinar Bang wrote:
> Is it possible to make a karaf installation run a set of console
> commands?
> 
> What I would like to do, is to try to create a dockerfile setting up a
> docker image for my webapp:
>https://github.com/steinarb/ukelonn
> 
> And the steps listed in 6. and 8. below are run from the karaf console.
> Is it possible to run them from an outside script somehow?
> 
> What I would need to do to create a docker image, is to:
>  1. Start with a minimal debian installation
>  2. Add the default location of postgres databases as a volume
> (ie. mounted from the host's file system)
>  3. Add /etc/karaf as a volume
>  4. Add the repository for the unofficial karaf package
>  echo "deb http://apt.bang.priv.no/public stable main" 
> >>/etc/apt/sources.list
>  wget -O - https://apt.bang.priv.no/apt_pub.gpg | apt-key add -
>  5. Install karaf and postgresql and all of their dependencies
>  apt-get update
>  apt-get install -yq --no-install-recommends postgresql karaf
>  6. Configure up an extra maven repository from the karaf console:
>  config:edit org.ops4j.pax.url.mvn
>  config:property-append org.ops4j.pax.url.mvn.repositories ", 
> https://maven.bang.priv.no/repository/@id=ukelonn@snapshots, 
> http://maven.vaadin.com/vaadin-addons@id=vaadin";
>  config:property-set org.ops4j.pax.url.mvn.globalUpdatePolicy always
>  config:update
>  7. Create an empty database karaf owned by user karaf
>  /usr/bin/sudo -u postgres createuser karaf
>  /usr/bin/sudo -u postgres createdb -O karaf ukelonn
>  8. Add the feature repository and install the features
>  feature:repo-add 
> mvn:no.priv.bang.ukelonn/ukelonn.karaf/LATEST/xml/features
>  feature:install ukelonn-db-postgresql
>  feature:install ukelonn
> 
> 
> 
> 


Re: version resolving

2017-11-06 Thread Michal Hlavac
hi Guillaume,

it starts with:
Caused by: 
shaded.org.eclipse.aether.resolution.VersionRangeResolutionException: No 
highest version found for 
org.ops4j.pax.cdi:pax-cdi-features:xml:features:[1.0.0.RC1,2)

but then it works!

thank you for your help... m.

On pondelok, 6. novembra 2017 14:26:28 CET Guillaume Nodet wrote:


In particular, change the etc/org.ops4j.pax.url.mvn.cfg with
  org.ops4j.pax.url.mvn.repositories= \
http://repo1.maven.org/maven2@id=central[1]


Also, remove your local ~/.m2/repository/org/ops4j/pax/cdi/pax-cdi-features


It should do the trick.


2017-11-06 14:12 GMT+01:00 Guillaume Nodet :


This is not really a bug imho, but there's no way to specify better the version 
range in maven.
In order to work around this behavior, you need to remove maven snapshot 
repositories containing pax-cdi.  This way, it should not be resolved.


2017-11-06 13:53 GMT+01:00 Michal Hlavac :


it means that there is bug in CXF, right?
 
Because I can't build offline karaf distribution with cxf-3.2.0
It searches for 1.0.0-SNAPSHOT on first start 
 
m.


Those version resolution are done by pax-url-aether which uses the aether 
library (the same one used by maven).
I think the behavior is correct, see
   
https://cwiki.apache.org/confluence/display/MAVENOLD/Dependency+Mediation+and+Conflict+Resolution[4]



2017-11-06 12:06 GMT+01:00 Michal Hlavac :


Hi,

I would like to ask about version resolving in repository element of feature 
file.I am asking because of line 21 in 
https://github.com/apache/cxf/blob/cxf-3.2.1/osgi/karaf/features/src/main/resources/features.xml[5]





Guillaume Nodet









-- 


Guillaume Nodet








Guillaume Nodet








[1] http://repo1.maven.org/maven2@id=central
[2] mailto:gno...@apache.org
[3] mailto:m...@hlavki.eu
[4] 
https://cwiki.apache.org/confluence/display/MAVENOLD/Dependency+Mediation+and+Conflict+Resolution
[5] 
https://github.com/apache/cxf/blob/cxf-3.2.1/osgi/karaf/features/src/main/resources/features.xml


Re: version resolving

2017-11-06 Thread Michal Hlavac
it means that there is bug in CXF, right?

Because I can't build offline karaf distribution with cxf-3.2.0
It searches for 1.0.0-SNAPSHOT on first start

m.

On pondelok, 6. novembra 2017 13:11:28 CET Guillaume Nodet wrote:


Those version resolution are done by pax-url-aether which uses the aether 
library (the same one used by maven).
I think the behavior is correct, see
   
https://cwiki.apache.org/confluence/display/MAVENOLD/Dependency+Mediation+and+Conflict+Resolution[1]



2017-11-06 12:06 GMT+01:00 Michal Hlavac :


Hi,

I would like to ask about version resolving in repository element of feature 
file.I am asking because of line 21 in 
https://github.com/apache/cxf/blob/cxf-3.2.1/osgi/karaf/features/src/main/resources/features.xml[3]





Guillaume Nodet








[1] 
https://cwiki.apache.org/confluence/display/MAVENOLD/Dependency+Mediation+and+Conflict+Resolution
[2] mailto:m...@hlavki.eu
[3] 
https://github.com/apache/cxf/blob/cxf-3.2.1/osgi/karaf/features/src/main/resources/features.xml


version resolving

2017-11-06 Thread Michal Hlavac
Hi,

I would like to ask about version resolving in repository element of feature 
file.
I am asking because of line 21 in 
https://github.com/apache/cxf/blob/cxf-3.2.1/osgi/karaf/features/src/main/resources/features.xml

mvn:org.ops4j.pax.cdi/pax-cdi-features/[1.0.0.RC1,2)/xml/features

When I download karaf 4.1.3 and start it, then execute command: feature:list | 
grep pax-cdi
output show version 1.0.0.RC2

But after feature:repo-add cxf 3.2.0, then re-run feature:list | grep pax-cdi
it shows additional 1.0.0-SNAPSHOT

I suspect that karaf cannot resolve RCx version sufix

thanks, m.



Docker images

2017-08-09 Thread Michal Hlavac
Hi,

upgraded docker images to latest karaf 4.1.2

https://hub.docker.com/r/hlavki/karaf/

m.


Re: CXF 3.1.12, karaf 4.1.1 & 4.1.2-SNAPSHOT

2017-07-31 Thread Michal Hlavac
my latest pull was about hour before your push :)

thanks, now it works!

m.

On pondelok, 31. júla 2017 20:04:42 CEST Christian Schneider wrote:


I fixed the InterruptedException today. Can you try with the current master or 
karaf-4.1.x.


Btw. The exception does not prevent cxf from being installed. So it should even 
work in your version.
How do you see that it does not work?


Christian


2017-07-31 19:58 GMT+02:00 Michal Hlavac :


Hi,

I am trying to install cxf to karaf 4.1.x and it fails.

Commands:feature:repo-add cxf 3.1.12feature:install cxf

It fails with restart and error:Error executing command: 
java.lang.InterruptedException

Environment:Linux 4.11.8-2-default #1 SMP PREEMPT Thu Jun 29 14:37:33 UTC 2017 
(42bd7a0) x86_64 x86_64 x86_64 GNU/Linuxjava version "1.8.0_141"Java(TM) SE 
Runtime Environment (build 1.8.0_141-b15)Java HotSpot(TM) 64-Bit Server VM 
(build 25.141-b15, mixed mode)

Full log: http://paste.opensuse.org/view/simple/78027503[2]






-- Christian Schneider

http://www.liquid-reality.de[3]
http://www.talend.com[4]




[1] mailto:hla...@hlavki.eu
[2] http://paste.opensuse.org/view/simple/78027503
[3] 
https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de
[4] 
https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com


CXF 3.1.12, karaf 4.1.1 & 4.1.2-SNAPSHOT

2017-07-31 Thread Michal Hlavac
Hi,

I am trying to install cxf to karaf 4.1.x and it fails.

Commands:
feature:repo-add cxf 3.1.12
feature:install cxf

It fails with restart and error:
Error executing command: java.lang.InterruptedException

Environment:
Linux 4.11.8-2-default #1 SMP PREEMPT Thu Jun 29 14:37:33 UTC 2017 (42bd7a0) 
x86_64 x86_64 x86_64 GNU/Linux
java version "1.8.0_141"
Java(TM) SE Runtime Environment (build 1.8.0_141-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.141-b15, mixed mode)

Full log: http://paste.opensuse.org/view/simple/78027503

m.