Re: Strange behaviour when accessing console via ssh client into a dockernized Karaf

2018-09-14 Thread Jean-Baptiste Onofré
Hi Thiago, I think I have a fix, it will be included in Karaf 4.1.7 and 4.2.2 (plan for November). Regards JB On 14/09/2018 23:01, Thiago Moreira (timba) wrote: > >   Hey JB, do you have any updates on this? Is the problem related to > jline/karaf or both? > >   Thanks > > Thiago Moreira >

Re: Unable to deploy a Karaf kar file containing a ComponentFactory OSGi declarative service

2018-09-14 Thread Thiago Moreira (timba)
I moved to maven-bundle-plugin with this latest advice and now I'm able to deploy the kar file without errors. Thanks Thiago Moreira +55 48 99911-6331 On Wed, Sep 5, 2018 at 1:27 PM Jean-Baptiste Onofré wrote: > By the way, a quick workaround for your issue is to use: > > >

Re: Strange behaviour when accessing console via ssh client into a dockernized Karaf

2018-09-14 Thread Thiago Moreira (timba)
Hey JB, do you have any updates on this? Is the problem related to jline/karaf or both? Thanks Thiago Moreira +55 48 99911-6331 On Mon, Sep 3, 2018 at 10:45 AM Thiago Moreira (timba) < tmoreira2...@gmail.com> wrote: > > Nice JB, if there is anything that I can do for help let me know. >

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Tim Ward
Also, Java 8 is still officially supported, Java 9 is no longer being updated, and Java 10 will go end of life (stop receiving updates) at the same time as Java 8. Tim > On 14 Sep 2018, at 16:20, Jean-Baptiste Onofré wrote: > > By the way, if you are not familiar with jigsaw module, maybe

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread lechlukasz
No, from CXF. I suppose I wasn't expect to because they collide? There is no reason I'd need CXF, I simply need any JAXB+JAX-WS implementation. jbonofre wrote > Hi, > > Did you install JAXB bundle (from ServiceMix) ? > > Regards > JB -- Sent from:

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Jean-Baptiste Onofré
By the way, if you are not familiar with jigsaw module, maybe it's better to stay with Java 8 ? With Java 9/10/11, as Freeman said, EE packages are not in separated modules. So you have to either install the packages in the JDK (and update jre.properties) or install the required bundles. Regards

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Jean-Baptiste Onofré
Hi, Did you install JAXB bundle (from ServiceMix) ? Regards JB On 14/09/2018 16:21, lechlukasz wrote: > Hello, > > I'm using OpenJDK 10.0.2 from Ubuntu distribution. > > After installing jaxws-api I've got another problem from the part of the > code that prepares XML to be sent via WS : > >

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread lechlukasz
Hello, I'm using OpenJDK 10.0.2 from Ubuntu distribution. After installing jaxws-api I've got another problem from the part of the code that prepares XML to be sent via WS : javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath. at

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Freeman Fang
Sure, we definitely need better documentation. Thanks JB! - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat > On Sep 14, 2018, at 10:08 PM, Jean-Baptiste Onofré wrote: > > You are right, I was in the jre-8 section of etc/jre.properties (misread). > > If you

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Jean-Baptiste Onofré
You are right, I was in the jre-8 section of etc/jre.properties (misread). If you don't mind, I will add a note in the documentation, as some users might be "lost". Regards JB On 14/09/2018 16:06, Freeman Fang wrote: > Hi JB, > > Those packages are already removed from Karaf

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Freeman Fang
Hi JB, Those packages are already removed from Karaf 4.2.1(etc/jre.properties) when using JDK9,10,11. Not sure if we should install those spec bundles in Karaf by default, IMO, Karaf should be a small core, the smaller, the better. Customer can build customised kit with our powerful

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Freeman Fang
FWIW, in karaf 4.2.1, the system bundle won’t export javax.xml.ws package anymore when using jdk 9,10,11. And since jdk11, there is no such JPMS module for javax.xml.ws anymore from JDK. Several modules are removed since JDK11, they are * java.corba — CORBA * java.transaction — The subset

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Jean-Baptiste Onofré
Good point Freeman. In that case, what do you think about removing these package from jre.properties and let the user install the spec bundle ? Maybe, we can also do it by default in the Karaf standard distribution. Thoughts ? Regards JB On 14/09/2018 15:51, Freeman Fang wrote: > Hi, > > For

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Tim Ward
Yes, you’re tripping over one of the packages that was removed from Java because it was technically a Java EE package and could not be upgraded without upgrading Java. You either need to launch with the relevant modules enabled, or, as in the email below, add the API into your framework. The

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Freeman Fang
Hi, For Java 9,10,11, we handle those versions in same way. Since several EE related jigsaw modules including javax.xml.ws will be removed from Java11 eventually, override it and let system bundle 0 expose those packages makes less sense IMO, you need install jax-ws api bundle by yourself.

Re: Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Jean-Baptiste Onofré
Hi, in etc/jre.properties, jre-10/11 are the same as jre-9. The javax.xml.ws* packages are coming for the JRE/JDK (it's what system bundle means). What's the exact Java version you are using ? Regards JB On 14/09/2018 15:17, Lukasz Lech wrote: > Hello, > >   > > After starting my app in

Re: Karaf 4.2.1: cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor

2018-09-14 Thread Freeman Fang
Hi, This should be fixed by KARAF-5912[1] [1]https://issues.apache.org/jira/browse/KARAF-5912 Cheers Freeman - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat > On Sep 14, 2018, at 8:58 PM, lechlukasz wrote:

Karaf 4.2.1 JDK 10 - provide jax-ws

2018-09-14 Thread Lukasz Lech
Hello, After starting my app in Karaf 4.2.1 with Java 10 I'm getting errors: java.lang.ClassNotFoundException: javax.xml.ws.Service at java.net.URLClassLoader.findClass(URLClassLoader.java:466) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:566) ~[?:?] at

Re: Karaf 4.2.1: cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor

2018-09-14 Thread lechlukasz
karaf@root()> package:exports |grep com.sun.xml.bind com.sun.xml.bind.annotation | 2.2.11 | 12 | org.apache.servicemix.bundles.jaxb-impl com.sun.xml.bind.api.impl | 2.2.11 |