camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Camel-Gson - Missing requirement for gson annotations
Date Fri, 05 Aug 2016 07:36:12 GMT
You can do a feature:info camel-gson
to see what bundles it install.

You can install gson manually using

install -s mvn:com.google.code.gson/gson/2.7

And then install the camel-gson feature afterwards.

It may be a little mistake in that Camel release.



On Tue, Aug 2, 2016 at 12:00 AM, akpcnu <srinivas@live.com> wrote:
> I have added feature:install camel-gson on camel 2.16.2. Karaf 3.0.4. When I
> deploy an application using Gson, I see below missing requirement. But, the
> package it is complaining is already Exported in the Jar.
>
> Is there anyway to add this missing requirement? help is appreciated.
>
> Unable to resolve 342.0: missing requirement [342.0] osgi.wiring.package;
> (&(osgi.wiring.package=com.google.gson.annotations)(version>=2.6.0)(!(version>=3.0.0)))
>         at
> org.apache.karaf.features.internal.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:521)[20:org.apache.karaf.features.core:3.0.4]
>         at
> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:476)[20:org.apache.karaf.features.core:3.0.4]
>         at
> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:417)[20:org.apache.karaf.features.core:3.0.4]
>         at Proxyefbdc2a3_a72b_4f10_971c_bee68746f294.installFeature(Unknown
> Source)[:]
>         at Proxydf9e7ca7_01ff_4057_9f7d_c8048539b7b6.installFeature(Unknown
> Source)[:]
>         at
> org.apache.karaf.kar.internal.KarServiceImpl.installFeatures(KarServiceImpl.java:215)[109:org.apache.karaf.kar.core:3.0.4]
>         at
> org.apache.karaf.kar.internal.KarServiceImpl.install(KarServiceImpl.java:96)[109:org.apache.karaf.kar.core:3.0.4]
>         at
> org.apache.karaf.kar.internal.KarServiceImpl.install(KarServiceImpl.java:84)[109:org.apache.karaf.kar.core:3.0.4]
>         at Proxy009eb59b_ee31_4337_8057_d569c59a22d7.install(Unknown Source)[:]
>         at Proxy941619ba_cbd7_41ee_901f_6c44cf1e5e22.install(Unknown Source)[:]
>         at
> org.apache.karaf.deployer.kar.KarArtifactInstaller.update(KarArtifactInstaller.java:62)[111:org.apache.karaf.deployer.kar:3.0.4]
>         at Proxy49169c3b_af7c_4f3b_8b4c_328c1c2bec9b.update(Unknown Source)[:]
>         at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.update(DirectoryWatcher.java:1103)[7:org.apache.felix.fileinstall:3.5.0]
>         at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.update(DirectoryWatcher.java:900)[7:org.apache.felix.fileinstall:3.5.0]
>         at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:481)[7:org.apache.felix.fileinstall:3.5.0]
>         at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:358)[7:org.apache.felix.fileinstall:3.5.0]
>         at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:310)[7:org.apache.felix.fileinstall:3.5.0]
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Gson-Missing-requirement-for-gson-annotations-tp5785815.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Mime
View raw message