-
1. Re: Problem with camel-groovy: unable to resolve class JsonSlurper
davsclaus Apr 23, 2014 1:36 AM (in response to labo32)Hi
This is a user forum for the JBoss Fuse product. Are you using that?
If not, and you are using vanilla Apache Karaf then you can try their user mailing list.
And btw I can see there is groovy-all for all groovy versions, eg also for 2.2.x etc
-
2. Re: Problem with camel-groovy: unable to resolve class JsonSlurper
ffang Apr 23, 2014 11:07 PM (in response to labo32)And for the JBoss FUSE 6.1 we do ship groovy-all (2.1.9) OOTB which has the groovy/json/JsonSlurper.class
BossFuse:karaf@root> find-class JsonSlurper
Groovy Runtime (227)
groovy/json/JsonSlurper.class
Freeman
-
3. Re: Problem with camel-groovy: unable to resolve class JsonSlurper
labo32 Apr 24, 2014 3:08 PM (in response to ffang)Hmm strange,
karaf@root()> find-class JsonSlurper
Apache ServiceMix :: Bundles :: json-lib (138)
net/sf/json/groovy/JsonSlurper.class
Groovy Runtime (158)
groovy/json/JsonSlurper.class
The class is there but the script complains that it cannot find it.
The bundle should find the class since I used
<Import-Package>
*
</Import-Package>
in the maven-bundle-plugin
Regards
labo
-
4. Re: Problem with camel-groovy: unable to resolve class JsonSlurper
ffang Apr 24, 2014 7:48 PM (in response to labo32)Hi,
Could you please post the OSGi headers for your customer bundle which use the groovy/json/JsonSlurper.class, I'd like to see the Import-Package there.
Freeman