[Eclipse] org.osgi.framework.BundleException: Could not find bundle: org.eclipse.equinox.console

With Eclipse Kepler 4.3.1 SR1, you must switch to Apache Felix Gogo.

With latest Eclipse Kepler 4.3.1 SR1, I tried to run one of my older OSGi projects. Earlier this project was running smoothly with Eclipse Indigo (3.7.1).

However, when I tried to execute it via Eclipse Kepler version as a "OSGI Framework" configuration; I was surprised since it showed an exception as org.osgi.framework.BundleException: Could not find bundle: org.eclipse.equinox.console .

Below is the complete stack-trace.

!SESSION date time -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments:  -dev file:$Location/dev.properties -os linux 
                         -ws gtk -arch x86 -consoleLog -console

!ENTRY org.eclipse.osgi 4 0 date time
!MESSAGE Could not find bundle: org.eclipse.equinox.console
!STACK 0
org.osgi.framework.BundleException: Could not find bundle: org.eclipse.equinox.console
 at org.eclipse.osgi.framework.internal.core.ConsoleManager.checkForConsoleBundle(ConsoleManager.java:211)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:298)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
 at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
 at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

Solution

A quick look into the details revealed that the default shell of Eclipse has been moved to "Apache Felix Gogo"; so the necessary bundles must be added to the "Run Configuration" before running. Followings are the four bundled that you need to select from the list.

org.apache.felix.gogo.command_0.10.0v<version>.jar
org.apache.felix.gogo.runtime_0.10.0v<version>.jar
org.apache.felix.gogo.shell_0.10.0v<version>.jar
org.eclipse.equinox.console_1.0.100<version>.jar

After adding these as shown in the above diagram, the program runs smoothly.

For more details on the changes on OSGi shell, please refer here.

COMMENTS

BLOGGER: 3
Loading...

Read More...

Name

About,2,Adsense,3,Ant,1,Apache,3,Axis,3,Blogger,1,Books,1,CentOS,2,Chrome,2,CSS,2,Database,3,Earn Online,3,Eclipse,10,Facebook,1,Firefox,10,Gmail,4,GNU/Linux,9,Google,26,GWT,8,Hardware,2,IE,5,Interesting,15,Internet,14,Java,49,Javascript,7,JBoss,1,Jenkins,1,Log4j,2,Me,6,Microsoft,2,Miscellaneous,1,News,11,Opinion,10,OSGi,1,PHP,1,Productivity,3,Programming,36,Puzzle,3,Security,4,Software,41,Sports,9,Spring,2,Story,6,Subversion,3,TDD,4,Tech,2,Tips,1,Tomcat,6,Tutorial,13,Ubuntu,4,Web application,14,Web Design,2,Web services,3,Windows,10,Yahoo,1,Zip,2,
ltr
item
Digizol: [Eclipse] org.osgi.framework.BundleException: Could not find bundle: org.eclipse.equinox.console
[Eclipse] org.osgi.framework.BundleException: Could not find bundle: org.eclipse.equinox.console
With Eclipse Kepler 4.3.1 SR1, you must switch to Apache Felix Gogo.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh9bDj9LkIC65jJrCy9ApUuPfs9uDJa4kuXYBa-V1O8ZLmVy5HK7-PVftvDe4k7YVP4OWBDECkpkHz6DOzhkKoe0mX3xV0B38i7Pfz3XTeUjumSb4guLPrdG0kL6a5Z-YHKfOLGA/s1600/osgi-apache-felix-equinox.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh9bDj9LkIC65jJrCy9ApUuPfs9uDJa4kuXYBa-V1O8ZLmVy5HK7-PVftvDe4k7YVP4OWBDECkpkHz6DOzhkKoe0mX3xV0B38i7Pfz3XTeUjumSb4guLPrdG0kL6a5Z-YHKfOLGA/s72-c/osgi-apache-felix-equinox.png
Digizol
https://www.digizol.com/2013/11/Eclipse-org-osgi-framework-BundleException-equinox-console.html
https://www.digizol.com/
https://www.digizol.com/
https://www.digizol.com/2013/11/Eclipse-org-osgi-framework-BundleException-equinox-console.html
true
7440473
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy