Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Jean-Baptiste Onofré
Here's the related Jira: https://issues.apache.org/jira/browse/SM-4889 Regards JB On 15/09/2021 13:47, Andrei Petru Mura wrote: I think it has a problem that needs com.sun.org.apache.xml.internal.resolver com.sun.org.apache.xml.internal.resolver.tools package. Not sure, but so it seems to me

Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Andrei Petru Mura
Great. Didn't know about third option. Thanks :)! Andrei On Wed, Sep 15, 2021 at 2:50 PM Jean-Baptiste Onofré wrote: > You have basically three options: > > 1. you put your jar in lib folder and update jre.properties > 2. you create a clean bundle using jar (a shading) > 3. you use "wrap" proto

Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Jean-Baptiste Onofré
You have basically three options: 1. you put your jar in lib folder and update jre.properties 2. you create a clean bundle using jar (a shading) 3. you use "wrap" protocol (wrap:mvn:groupId/artifactId) that will create a bundle on the fly Regards JB On 15/09/2021 13:45, Andrei Petru Mura wrot

Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Jean-Baptiste Onofré
Yes, I think it makes sense to have it as optional as well. I will fix that too. Regards JB On 15/09/2021 13:47, Andrei Petru Mura wrote: I think it has a problem that needs com.sun.org.apache.xml.internal.resolver com.sun.org.apache.xml.internal.resolver.tools package. Not sure, but so it see

Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Andrei Petru Mura
I think it has a problem that needs com.sun.org.apache.xml.internal.resolver com.sun.org.apache.xml.internal.resolver.tools package. Not sure, but so it seems to me as these are no longer provided with jre9+. But also not sure if xmlbeans is java 9+ compliant or not. Andrei On Wed, Sep 15, 2021 a

Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Andrei Petru Mura
What do you mean by wrap? On Wed, Sep 15, 2021 at 2:43 PM Jean-Baptiste Onofré wrote: > You still have lib/jdk9plus for JDK9+ lib. > > However, in your case, I think it's better to use wrap. > > Regards > JB > > On 15/09/2021 13:42, Andrei Petru Mura wrote: > > Rectify a bit: it seems that $KARA

Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Jean-Baptiste Onofré
You still have lib/jdk9plus for JDK9+ lib. However, in your case, I think it's better to use wrap. Regards JB On 15/09/2021 13:42, Andrei Petru Mura wrote: Rectify a bit: it seems that $KARAF_HOME/lib/ext is no longer considered in 4.3.2 for jre greater than 1.8. Andrei On Wed, Sep 15, 2021

Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Jean-Baptiste Onofré
By the way, I think xmlbeans 5.0.1_1 bundle is not correct. I see some mistakes in the import (especially, org.apache.xmlbeans.impl.* should be private, not imported, org.apache.maven* should be optional, com.github* should be optional as well). I will release a new clean xmlbeans 5.0.1 bund

Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Andrei Petru Mura
Rectify a bit: it seems that $KARAF_HOME/lib/ext is no longer considered in 4.3.2 for jre greater than 1.8. Andrei On Wed, Sep 15, 2021 at 2:40 PM Andrei Petru Mura wrote: > OpenJDK, I used OpenJDK 16. If I switch to OpenJDK 1.8, I manage to fix > the issue by adding the desired packages to $KA

Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Andrei Petru Mura
OpenJDK, I used OpenJDK 16. If I switch to OpenJDK 1.8, I manage to fix the issue by adding the desired packages to $KARAF_HOME/jre.properties file. The following up question would be: how to add my own jar file (not OSGI compliant) to Karaf at startup, and made available the packages? Where should

Re: com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread JB Onofré
Hi What’s your JDK version and provider ? Regards JB > Le 15 sept. 2021 à 12:51, Andrei Petru Mura a écrit : > >  > Hi all, > > I'm trying to upgrade to karaf 4.3.2. In the process, I try to install > xmlbeans with: > bundle:install -s > mvn:org.apache.servicemix.bundles/org.apache.servic

com.sun.org.apache.xml.internal.resolver package not available in Karaf 4.3.2

2021-09-15 Thread Andrei Petru Mura
Hi all, I'm trying to upgrade to karaf 4.3.2. In the process, I try to install xmlbeans with: bundle:install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlbeans/5.0.1_1 and it gives me this error: Error starting bundle 241: Unable to resolve org.apache.servicemix.bundles.