Re: getting felix scr commands to show up in karaf?
I've restarted karaf several times and still don't see the commands. thanks for taking a look! david jencks On Jan 16, 2011, at 11:48 PM, Jean-Baptiste Onofré wrote: I saw that commands not exposed with Blueprint don't appear automatically after installation. I restarted Karaf to get it working. Regards JB On 01/17/2011 08:41 AM, Guillaume Nodet wrote: The commands are exposed using plain OSGi, but it should still work without a bueprint descriptor (those are just services in the OSGi registry at the end). I'll have a look at it as there should be a way to get that working. On Mon, Jan 17, 2011 at 08:01, Jean-Baptiste Onofré j...@nanthrax.net mailto:j...@nanthrax.net wrote: Hi David, The Felix Scr bundle doesn't contain blueprint descriptor (in META-INF/OSGI-INF). Regarding the Import-Package, we can see that it uses org.apache.felix.shell as optional. Without blueprint descriptor, commands won't appear automatically after installation of the bundle. You have to restart your karaf container. Could you make the try ? 1/ install the scr bundle, 2/ restart karaf without deleting the data directory Anyway, we can submit a patch to felix containing scr blueprint. Regards JB On 01/14/2011 07:37 PM, David Jencks wrote: Does anyone know how to get the felix scr commands to show up in the karaf console? I'm trying scr and karaf from trunk and have also installed and started osgi:install -s mvn:org.apache.felix/org.apache.felix.shell/ install file:///Users/david/.m2/repository/org/apache/felix/org.apache.felix.scr/1.6.1-SNAPSHOT/org.apache.felix.scr-1.6.1-SNAPSHOT.jar I expected to see something like scr:list in the list of commands I get fromtab but nothing shows up. Thanks in advance for any help david jencks -- Cheers, Guillaume Nodet Blog: http://gnodet.blogspot.com/ Open Source SOA http://fusesource.com
Re: getting felix scr commands to show up in karaf?
The reason is that the CommandsCompleter (which does completion of command names) only takes into account commands implementing Function (see checkData() method), whereas gogo support reflective commands defined as Methods for example. However, we need to be able to access the mapping between the command object and it's scope / name. On Mon, Jan 17, 2011 at 09:25, Guillaume Nodet gno...@gmail.com wrote: Then it must be a refresh issue somehow. Actually, I've just made some tests and the commands are functional even if they don't appear in the tab completion. That could be considered a Karaf bug. On Mon, Jan 17, 2011 at 08:48, Jean-Baptiste Onofré j...@nanthrax.netwrote: I saw that commands not exposed with Blueprint don't appear automatically after installation. I restarted Karaf to get it working. Regards JB On 01/17/2011 08:41 AM, Guillaume Nodet wrote: The commands are exposed using plain OSGi, but it should still work without a bueprint descriptor (those are just services in the OSGi registry at the end). I'll have a look at it as there should be a way to get that working. On Mon, Jan 17, 2011 at 08:01, Jean-Baptiste Onofré j...@nanthrax.net mailto:j...@nanthrax.net wrote: Hi David, The Felix Scr bundle doesn't contain blueprint descriptor (in META-INF/OSGI-INF). Regarding the Import-Package, we can see that it uses org.apache.felix.shell as optional. Without blueprint descriptor, commands won't appear automatically after installation of the bundle. You have to restart your karaf container. Could you make the try ? 1/ install the scr bundle, 2/ restart karaf without deleting the data directory Anyway, we can submit a patch to felix containing scr blueprint. Regards JB On 01/14/2011 07:37 PM, David Jencks wrote: Does anyone know how to get the felix scr commands to show up in the karaf console? I'm trying scr and karaf from trunk and have also installed and started osgi:install -s mvn:org.apache.felix/org.apache.felix.shell/ install file:///Users/david/.m2/repository/org/apache/felix/org.apache.felix.scr/1.6.1-SNAPSHOT/org.apache.felix.scr-1.6.1-SNAPSHOT.jar I expected to see something like scr:list in the list of commands I get fromtab but nothing shows up. Thanks in advance for any help david jencks -- Cheers, Guillaume Nodet Blog: http://gnodet.blogspot.com/ Open Source SOA http://fusesource.com -- Cheers, Guillaume Nodet Blog: http://gnodet.blogspot.com/ Open Source SOA http://fusesource.com -- Cheers, Guillaume Nodet Blog: http://gnodet.blogspot.com/ Open Source SOA http://fusesource.com
Re: getting felix scr commands to show up in karaf?
The commands are exposed using plain OSGi, but it should still work without a bueprint descriptor (those are just services in the OSGi registry at the end). I'll have a look at it as there should be a way to get that working. On Mon, Jan 17, 2011 at 08:01, Jean-Baptiste Onofré j...@nanthrax.net wrote: Hi David, The Felix Scr bundle doesn't contain blueprint descriptor (in META-INF/OSGI-INF). Regarding the Import-Package, we can see that it uses org.apache.felix.shell as optional. Without blueprint descriptor, commands won't appear automatically after installation of the bundle. You have to restart your karaf container. Could you make the try ? 1/ install the scr bundle, 2/ restart karaf without deleting the data directory Anyway, we can submit a patch to felix containing scr blueprint. Regards JB On 01/14/2011 07:37 PM, David Jencks wrote: Does anyone know how to get the felix scr commands to show up in the karaf console? I'm trying scr and karaf from trunk and have also installed and started osgi:install -s mvn:org.apache.felix/org.apache.felix.shell/ install file:///Users/david/.m2/repository/org/apache/felix/org.apache.felix.scr/1.6.1-SNAPSHOT/org.apache.felix.scr-1.6.1-SNAPSHOT.jar I expected to see something like scr:list in the list of commands I get fromtab but nothing shows up. Thanks in advance for any help david jencks -- Cheers, Guillaume Nodet Blog: http://gnodet.blogspot.com/ Open Source SOA http://fusesource.com
Re: getting felix scr commands to show up in karaf?
I saw that commands not exposed with Blueprint don't appear automatically after installation. I restarted Karaf to get it working. Regards JB On 01/17/2011 08:41 AM, Guillaume Nodet wrote: The commands are exposed using plain OSGi, but it should still work without a bueprint descriptor (those are just services in the OSGi registry at the end). I'll have a look at it as there should be a way to get that working. On Mon, Jan 17, 2011 at 08:01, Jean-Baptiste Onofré j...@nanthrax.net mailto:j...@nanthrax.net wrote: Hi David, The Felix Scr bundle doesn't contain blueprint descriptor (in META-INF/OSGI-INF). Regarding the Import-Package, we can see that it uses org.apache.felix.shell as optional. Without blueprint descriptor, commands won't appear automatically after installation of the bundle. You have to restart your karaf container. Could you make the try ? 1/ install the scr bundle, 2/ restart karaf without deleting the data directory Anyway, we can submit a patch to felix containing scr blueprint. Regards JB On 01/14/2011 07:37 PM, David Jencks wrote: Does anyone know how to get the felix scr commands to show up in the karaf console? I'm trying scr and karaf from trunk and have also installed and started osgi:install -s mvn:org.apache.felix/org.apache.felix.shell/ install file:///Users/david/.m2/repository/org/apache/felix/org.apache.felix.scr/1.6.1-SNAPSHOT/org.apache.felix.scr-1.6.1-SNAPSHOT.jar I expected to see something like scr:list in the list of commands I get fromtab but nothing shows up. Thanks in advance for any help david jencks -- Cheers, Guillaume Nodet Blog: http://gnodet.blogspot.com/ Open Source SOA http://fusesource.com