Standalone OSGi Server (Equinox) on Eclipse Juno

I am trying to get the osgi server from the Eclipse Juno release and run it autonomously. Some old tutorials say that just grabbing org.eclipse.osgi_VERSION.jarenough to run it from the command line as

java -jar  org.eclipse.osgi_VERSION.jar -console

When I try to do this, it does not display the invitation as expected, but instead sits quietly, as if waiting for something.

However, I can comfortably run and install packages, performing ./eclipse -console, which, obviously, is not an option when working on a server where I want to deploy packages at runtime.

Some search robots showed that I needed to collect jars (even Apache Felix gogo) from here and there, but could not find anything concrete that would allow me to launch this thing "without a head."

Is there a way to do this in a clean and easy way, or would you suggest upgrading to Apache Felix?

+5
source share
5 answers

You should try Apache karaf. It can work with Felix or Equinox and contains everything you need for a decent OSGi server. See http://karaf.apache.org/

+1
source

Equinox in Juno no longer contains a console out of the box. Now it is contained in a separate kit that implements the Equinox console on top of the Apache GoGo shell.

Thus, the minimum configuration of packages to run Equinox, including the console, is:

  • org.eclipse.osgi
  • org.eclipse.equinox.console
  • org.apache.felifx.gogo.command
  • org.apache.felifx.gogo.runtime
  • org.apache.felifx.gogo.shell

SSH :

  • org.eclipse.equinox.console.ssh
  • org.apache.mina.core
  • org.apache.sshd.core

, . Equinox (, , , ..) config.ini. , , Juno, Juno. Juno config.ini.

- Equinox Juno OSGi:

OSGi Equinox:

+12

:

java -classpath ./plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    org.eclipse.equinox.launcher.Main -console
+1

, Apache Felix Gogo: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fconsole_shell.htm

:

  • . : org.apache.felix.gogo.command_0.8.0v.jar org.apache.felix.gogo.runtime_0.8.0v.jar org.apache.felix.gogo.shell_0.8.0v.jar org.eclipse.equinox.console_1.0.0v.jar org.eclipse.osgi.jar

  • config.ini

    osgi.bundles =./Org.apache.felix.gogo.runtime_0.8.0v.jar@start, \ . /org.apache.felix.gogo.command_0.8.0v.jar@start, \ . /org.apache.felix.gogo.shell_0.8.0v.jar@start, \ . /org.eclipse.equinox.console.jar@start, \ osgi.console.enable.builtin =

  • Equinox : java -jar org.eclipse.osgi.jar

0

:

java -Dosgi.console.enable.builtin=true -jar org.eclipse.osgi_VERSION.jar -console

, (-Gogo-), , , - . , Gogo, - Eclipse Felix.

0

All Articles