felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Koopman <marcel.koop...@gmail.com>
Subject Re: Starting gogo embedded
Date Wed, 03 Apr 2013 14:33:56 GMT
Thanks I am almost there:

I have this output now:

Welcome to Apache Felix Gogo

g! lb
gogo: CommandNotFoundException: Command not found: lb
g!

Do you know why the commands are not working?

I've installed and started the bundles gogo.command, gogo.runtime and
gogo.shell


2013/4/3 Neil Bartlett <njbartlett@gmail.com>

> 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 <marcel.koopman@gmail.com
> >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 <njbartlett@gmail.com>
> >
> > > 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
> >
>



-- 
Met vriendelijke groet,

Marcel Koopman

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message