You can start them in any order! HOWEVER... you must make sure they are AL
installed before you start ANY of them. You must not install a single
bundle, start it, install another single bundle and so on. The (pseudo)
code should be something like this:

List<Bundle> bundles = new ArrayList
for each bundle URL:
     bundles.add(context.installBundle(bundle URL))

for (Bundle b : bundles)
    b.start()

Error handling etc is omitted.

Neil


On Wed, Apr 3, 2013 at 2:05 PM, Marcel Koopman <[email protected]>wrote:

> Thanks, in what order should I start gogo?
> I now have this error:
>
> ERROR: Bundle org.apache.felix.gogo.shell [2] Error starting
> org.apache.felix.gogo.shell (org.osgi.framework.BundleException: Unresolved
> constraint in bundle org.apache.felix.gogo.shell [2]: Unable to resolve
> 2.0: missing requirement [2.0] osgi.wiring.package;
>
> (&(osgi.wiring.package=org.apache.felix.service.command)(status=provisional)(version>=0.10.0)))org.osgi.framework.BundleException:
> Unresolved constraint in bundle org.apache.felix.gogo.shell [2]: Unable to
> resolve 2.0: missing requirement [2.0] osgi.wiring.package;
>
> (&(osgi.wiring.package=org.apache.felix.service.command)(status=provisional)(version>=0.10.0))
> at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)
> at
>
> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
> at java.lang.Thread.run(Unknown Source)
>
> Exception in thread "main" org.osgi.framework.BundleException: Unresolved
> constraint in bundle org.apache.felix.gogo.shell [2]: Unable to resolve
> 2.0: missing requirement [2.0] osgi.wiring.package;
>
> (&(osgi.wiring.package=org.apache.felix.service.command)(status=provisional)(version>=0.10.0))
> at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
> at nl.mkoopman.framework.sam.SamFramework.main(SamFramework.java:36)
>
>
> 2013/4/3 Neil Bartlett <[email protected]>
>
> > The bundles also need to be started, not just installed.
> >
> > Regards,
> > Neil
> >
> > --
> > Neil Bartlett
> > Sent from a phone
> >
> >
> > On Wednesday, 3 April 2013 at 10:33, Marcel Koopman wrote:
> >
> > > Hi,
> > >
> > > I am writing some code to start Felix, which works fine.
> > > Now I wanted to start gogo, i've got the maven dependencies but how do
> i
> > > install this bundle?
> > > I already installed runtime, shell and command, but nothing happens.
> > >
> > > What would be the best way to do this?
> > > I am using maven to get the gogo and felix framework dependencies.
> > >
> > > --
> > > Met vriendelijke groet,
> > >
> > > Marcel Koopman
> >
> >
>
>
> --
> Met vriendelijke groet,
>
> Marcel Koopman
>

Reply via email to