You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Marcel Koopman <ma...@gmail.com> on 2013/04/03 11:33:57 UTC
Starting gogo embedded
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
Re: Starting gogo embedded
Posted by Marcel Koopman <ma...@gmail.com>.
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 <nj...@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 <nj...@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
Re: Starting gogo embedded
Posted by Neil Bartlett <nj...@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 <ma...@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 <nj...@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
>
Re: Starting gogo embedded
Posted by Marcel Koopman <ma...@gmail.com>.
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 <nj...@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
Re: Starting gogo embedded
Posted by Neil Bartlett <nj...@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