>From the BundleException that you posted above, it looks like you're deploying an OSGi R3 bundle, which might indicate that your bundle manifest is incorrect or incomplete. You should really be deploying OSGi R4 or later bundles.
Make sure the following manifest headers are present in your jar's META-INF/MANIFEST.MF: Bundle-ManifestVersion: 2 Bundle-SymbolicName: your.symbolic.name Bundle-Version: 1.2.3 The bundle symbolic name and version can obviously be what you want but they must be specified. The Bundle-ManifestVersion must be set to '2'. Cheers, David On 14 February 2017 at 15:59, Mestiri Meher <meher.mest...@gmail.com> wrote: > I triedd this command too : "inspect capability 13" > > and here what I got: > > org.apache.felix.framework [0] provides: > ---------------------------------------- > 13 [EMPTY] > > > 2017-02-14 16:55 GMT+01:00 Mestiri Meher <meher.mest...@gmail.com>: > >> Hey thanks Dirk for your answer, >> >> Actually it's only jar : the provider one for the first example and once >> I tried deploying the api project it says : >> org.osgi.framework.BundleException: >> R3 exports cannot contain directives. >> >> Otherwise all the felix bundles are working : >> >> ID|State |Level|Name >> 0|Active | 0|System Bundle (5.6.1)|5.6.1 >> 1|Active | 1|Apache Felix Bundle Repository (2.0.8)|2.0.8 >> 2|Active | 1|Apache Felix Gogo Command (0.16.0)|0.16.0 >> 3|Active | 1|Apache Felix Gogo Runtime (0.16.2)|0.16.2 >> 4|Active | 1|Apache Felix Gogo Shell (0.10.0)|0.10.0 >> >> >> >> >> 2017-02-14 16:49 GMT+01:00 Dirk Fauth <dirk.fa...@gmail.com>: >> >>> Did you check if all bundles are started that you need? Execute lb in >>> the console to get the list of installed bundles and their states. >>> >>> Am 14.02.2017 4:41 PM schrieb "Mestiri Meher" <meher.mest...@gmail.com>: >>> >>> Hello guys, >>> >>> I'm new to the OSGI and I'm trying to learn it from the OSGI enRoute >>> tutorials. >>> >>> I build the API/Provider, it runs on eclipse with felix gogo and the >>> commands run fine. >>> >>> I tried exporting my jar and deploy it manually on concierge/felix >>> standalone I was able to start the bundle on both of containers, and manage >>> them. >>> >>> The problem is that I can not see the commands I declared in the >>> provider. Once I type the help gogo command, I can't see my commands in >>> there, but in eclipse the gogo command are prresent. >>> >>> I don't know how to figure this out, it says gogo >>> commandNotFoundException. >>> >>> Do you have an idea ? >>> >>> Thanks, >>> Meher >>> >>> _______________________________________________ >>> OSGi Developer Mail List >>> osgi-dev@mail.osgi.org >>> https://mail.osgi.org/mailman/listinfo/osgi-dev >>> >>> >>> >>> _______________________________________________ >>> OSGi Developer Mail List >>> osgi-dev@mail.osgi.org >>> https://mail.osgi.org/mailman/listinfo/osgi-dev >>> >> >> > > _______________________________________________ > OSGi Developer Mail List > osgi-dev@mail.osgi.org > https://mail.osgi.org/mailman/listinfo/osgi-dev >
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev