Hello Oliver. I've just posted an answer with my explanation one minute ago ! The problem was about the Fast String service that is managed by groovy-json to be used through java standard SPI. But this features needs the spifly feature to handle it in the OSGi world and its specific classloaders. I think the issue comes from the default start level used for spifly. After installing features and bundles in the right order and a Karaf restart, it seems to work. I should try to find some time to test changing the spifly's start level... That's all, for now !
Thanks. Le jeu. 23 janv. 2025 à 16:52, Oliver Lietz <apa...@oliverlietz.de> a écrit : > On Tuesday, January 21, 2025 5:48:06 PM Central European Standard Time > Ephemeris Lappis wrote: > > Hello again ! > > Hi Ephemeris, > > > I've been looking for solutions, but I didn't find anything that works... > > What is not working? > I remember some issues with bundles from Groovy 3.0. > Some bundles are fragments which do not become active. > > O. > > > I've tried installing the feature "spifly" that, if I'm not mistaken, > > should support the ServiceLoader that's needed for groovy-json Fast > String > > service. > > But the groovy json bundle still refuses to resolve :( > > > > No more ideas at this time. Waiting for any help. > > > > Thanks again. > > > > Le mar. 21 janv. 2025 à 09:08, Ephemeris Lappis < > ephemeris.lap...@gmail.com> > > a écrit : > > > Hello. > > > > > > I'm trying to install groovy-json for some Camel tests on a Karaf that > > > already has Groovy features installed and working. > > > > > > karaf@root()> la | grep groovy > > > 236 | Active | 50 | 3.22.1 | camel-groovy > > > 248 | Resolved | 80 | 3.0.19 | groovy-dateutil, Hosts: > 233 > > > 249 | Resolved | 80 | 3.0.19 | groovy-xml, Hosts: 233 > > > 275 | Installed | 80 | 3.0.19 | groovy-json > > > > > > As you can see the groovy-json is in "Installed" state. The diag > command > > > gives missing requirements that I don't understand. > > > > > > diag 275 > > > groovy-json (275) > > > ----------------- > > > Status: Installed > > > Unsatisfied Requirements: > > > [groovy-json [275](R 275.1)] osgi.wiring.package; > > > (&(osgi.wiring.package=groovy.json)(version>=3.0.0)(!(version>=4.0.0))) > > > [groovy-json [275](R 275.1)] osgi.wiring.package; > > > > (&(osgi.wiring.package=org.apache.groovy.json)(version>=3.0.0)(!(version>= > > > 4.0.0))) [groovy-json [275](R 275.1)] osgi.wiring.package; > > > > (&(osgi.wiring.package=org.apache.groovy.json.internal)(version>=3.0.0)(!( > > > version>=4.0.0))) [groovy-json [275](R 275.1)] osgi.extender; > > > (osgi.extender=osgi.serviceloader.registrar) > > > [groovy-json [275](R 275.1)] osgi.extender; > > > (osgi.extender=osgi.serviceloader.processor) > > > [groovy-json [275](R 275.1)] osgi.serviceloader; > > > (osgi.serviceloader=org.apache.groovy.json.FastStringServiceFactory) > > > > > > The missing packages are exported and imported by the bundle itself : > > > > > > Export-Package = > > > > > > groovy.json; > > > > > > uses:="groovy.io, > > > > > > groovy.lang, > > > groovy.transform.stc, > > > groovy.util, > > > org.apache.groovy.json.internal"; > > > > > > version=3.0.19, > > > > > > org.apache.groovy.json;version=3.0.19, > > > > org.apache.groovy.json.internal;uses:=groovy.json;version=3.0.19 > > > > > > Import-Package = > > > > > > groovy.io;resolution:=optional, > > > groovy.json;resolution:=optional;version="[3.0,4)", > > > groovy.lang;resolution:=optional, > > > groovy.transform.stc;resolution:=optional, > > > groovy.util;resolution:=optional, > > > org.apache.groovy.internal.util;resolution:=optional, > > > org.apache.groovy.io;resolution:=optional, > > > org.apache.groovy.json;resolution:=optional;version="[3.0,4)", > > > > > > org.apache.groovy.json.internal;resolution:=optional;version="[3.0,4)", > > > > > > org.codehaus.groovy.runtime;resolution:=optional, > > > org.codehaus.groovy.runtime.memoize;resolution:=optional > > > > > > And I don't understand what are the other missing elements. > > > > > > Could someone help me, please ? > > > > > > Thanks in advance. > > > > > > Regards. > > > > >