Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365150 - New OSGI console does not seem to work in e4 based RCP applications
Summary: New OSGI console does not seem to work in e4 based RCP applications
Status: CLOSED WORKSFORME
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-29 19:26 EST by Lars Vogel CLA
Modified: 2012-02-08 10:22 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2011-11-29 19:26:21 EST
The new OSGI console does not seem to work in e4 based RCP applications. 

See news and noteworthy: http://download.eclipse.org/eclipse/downloads/drops4/S-4.2M3-201110281100/eclipse-news-M3.html

Create a new e4 application with the project wizard. Add -console flag to the runtime and add the required plugins. 

If you run the product you cannot use the OSGi console.
Comment 1 Ian Bull CLA 2011-11-29 19:34:46 EST
Lars, what do you mean you cannot use the console? Does any console come up?

I know that for many of the features (tab completion, history, etc), these don't work with the -console flag directly. You need to -console 5555 and then telnet to port 5555.
Comment 2 Lars Vogel CLA 2011-11-29 19:36:38 EST
@Ian: "ss" does not give any response.
Comment 3 Neil Bartlett CLA 2011-11-29 22:23:11 EST
Lars, does your application contain the following bundles:

* org.apache.felix.gogo.command
* org.apache.felix.gogo.runtime
* org.apache.felix.gogo.shell

I believe all three of these are required to run the GoGo console.
Comment 4 Paul Webster CLA 2011-11-30 09:11:13 EST
Just FYI, the console works in 4.2 and it includes the bundles:
org.apache.felix.gogo.command_0.8.0.v201108120515.jar
org.apache.felix.gogo.runtime_0.8.0.v201108120515.jar
org.apache.felix.gogo.shell_0.8.0.v201110170705.jar


PW
Comment 5 Lars Vogel CLA 2012-02-07 17:05:20 EST
Sorry for the long delay in my response.

As suggested, after adding the following plug-ins the console works in my E4 application:

* org.apache.felix.gogo.command
* org.apache.felix.gogo.runtime
* org.apache.felix.gogo.shell

Thanks Ian, Neil and Paul for your answers.
Comment 6 Lars Vogel CLA 2012-02-07 17:08:21 EST
Forgot one plug-in:

+org.eclipse.equinox.console
Comment 7 Brian de Alwis CLA 2012-02-08 10:22:31 EST
Just a note that E4 RCP apps can include the org.eclipse.e4.rcp feature which includes everything necessary for a runnable app, including the console and gogo bundles.