Questions tagged [gogo-shell]

a subproject of Apache Felix implementing the OSGi RFC 147, which describes a standard shell for OSGi-based environments

Apache Felix Gogo is a subproject of Apache Felix implementing the OSGi RFC 147, which describes a standard shell for OSGi-based environments. See RFC 147 Overview for more information.

The Gogo subproject consists of three bundles:

  1. runtime - implements the core command processing functionality.
  2. shell - provides a simple textual user interface to interact with the command processor.
  3. command - implements a set of basic commands.

See http://felix.apache.org/site/apache-felix-gogo.html

30 questions
8
votes
1 answer

Apache Felix shell with SSH

I'm interested how I can use Apache Felix with SSH? I want to access Felix shell from remote computer using SSH. I know that there is a telnet support but it's too unsafe. Is there any solution?
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
4
votes
2 answers

Liferay module (OSGi bundle) stays in "Stopping"

Sometimes when I stop my Liferay module (for instance when I put a new version of its JAR in deploy/) the module refuses to stop. While the module should go to "Resolved" state, it stays in the "Stopping" state forever: Usually it is due to a…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
3
votes
3 answers

From Gogo Shell, get version of com.liferay.portal.kernel

All I have is a Gogo Shell connection to a Liferay server. From that shell, is there any way to know the version of the com.liferay.portal.kernel package used by that server? For instance, if I want to know the version of the com.liferay.util.taglib…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
3
votes
1 answer

Is there a more detailed or customizable help page for OSGi commands?

Background: OSGi environment on equinox. For the execution of custom comands I use the gogo shell (org.apache.felix.gogo.command, org.apache.felix.gogo.shell). I can show all available commands (including my own custom ones) with felix:help. My…
Markus Steppberger
  • 618
  • 1
  • 8
  • 18
3
votes
1 answer

Exceptions generating when using a gogo custom command

I have created a felix gogo custom command using information from the bndtoools tutorial (http://bndtools.org/tutorial.html#write-a-command-component). The code used is below: @Component(properties = { CommandProcessor.COMMAND_SCOPE +…
Factor Three
  • 2,094
  • 5
  • 35
  • 51
2
votes
1 answer

How to change the default command scope in OSGi with GoGo Shell and enforce custom scopes for custom commands?

I have an OSGi environment which runs on equinox. For the execution of custom comands I use the gogo shell (org.apache.felix.gogo.command, org.apache.felix.gogo.shell). By default the command scope is set to equinox so the help command does not…
Markus Steppberger
  • 618
  • 1
  • 8
  • 18
2
votes
1 answer

How do I actually run Apache Felix OSGi's shell?

I downloaded the current Felix jar linked over from http://felix.apache.org/downloads.cgi (for version 4.4.1) Extracted the .zip Ran the bin/felix.jar with "java -jar felix.jar" Observed that the felix-cache/ directory was created I understand…
Tom
  • 330
  • 4
  • 15
2
votes
1 answer

FuseFabric - Add a config file via console

In FuseFabric we can add configuration files using the web console, using the Config Files Tab and just write the name of the configFile and inside it the properties foo=foo Well, this is very simple, and my question is: How can I do this using the…
mmpedraza
  • 358
  • 3
  • 12
1
vote
1 answer

Is there a simply way to list of consumer components for an Interface?

Fellow coders, I'm currently trying to find a simple and concise way to get a listing of of Services/Components that use a given Interface. I'm using the gogo-shell of a running Liferay 7.1.x server and can't seem to find an easy and direct way to…
Nuw
  • 11
  • 3
1
vote
1 answer

Gogo Shell command disappears if I reference service

Source code In my module, I wrote this Liferay service: package jp.co.my.module; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService; import…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
1
vote
1 answer

How to customize OSGi prompt in apache felix gogo shell

I have an OSGi system running with Apache Felix Gogo shell (version 1.1.2). I see the prompt g! and everything works fine. I can change the prompt in the console by e.g. prompt="myPrompt>". How can I have this at start up, configured in my config…
Moritz
  • 1,085
  • 1
  • 8
  • 20
1
vote
2 answers

List all active Configuration for Config Admin in gogo shell

I would like to show on screen the Configuration list returned by org.osgi.service.cm.ConfigurationAdmin.listConfigurations method via gogo shell. I tried with the following: g! _sref = $.context getServiceReference…
matteo rulli
  • 1,443
  • 2
  • 18
  • 30
1
vote
1 answer

Deploy exploded bundle to Apache Felix using an Eclipse launch task

I am looking for a way to (re)deploy an exploded bundle (meaning not jarred but in a folder) to a running Apache Felix OSGi container from within Eclipse, preferably using a launch task. I found this question, which has an answer that comes close…
Stijn de Witt
  • 40,192
  • 13
  • 79
  • 80
0
votes
0 answers

Java.util.Scanner doesn't work properly in OSGi

I'm working on my first OSGi project for university and part of the task is to take user input from the console with the Java.util.Scanner. I program in eclipse using the Equinox framework. Within the project there are two bundles that use the…
0
votes
1 answer

Deploying required bundles for Vaadin OSGI portlet to Liferay 7.3

Deploying required bundles for Vaadin OSGI portlet to Liferay 7.0 with Felix Gogo Shell used to be done with the command blade sh start, e.g. for the bundle vaadin-shared: blade sh start…
haba713
  • 2,465
  • 1
  • 24
  • 45
1
2