Q: Cannot launch RCP application [message #250402] |
Wed, 02 January 2008 08:06  |
Eclipse User |
|
|
|
(Cross-posted to EclipseZone).
I am making my way through the Eclipse RCP book by Jeff McAffer, et al. I
am getting an error 'No application id has been found'.
I have completed through chapter 14 with no problems. Since I added the
code for chapter 16 (Perspectives, etc.), I can no longer launch the
application. I keep getting a 'No application id has been found' error.
I have tried everything I can think of, up to and including deleting the
entire workspace and recreating it using the RCP book samples manager that
came with the book.
I am running Eclipse Europa, but my target RCP environment is 3.2.1 in a
separate directory. I run on Windows Vista with Java 1.6_03.
The error I am getting is:
java.lang.RuntimeException: No application id has been found.
at
org.eclipse.equinox.internal.app.EclipseAppContainer.startDe faultApp(EclipseAppContainer.java:236)
at
org.eclipse.equinox.internal.app.EclipseAppContainer.start(E clipseAppContainer.java:98)
at
org.eclipse.equinox.internal.app.Activator.addingService(Act ivator.java:112)
at
org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(Ser viceTracker.java:1064)
at
org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialSer vices(ServiceTracker.java:926)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.jav a:330)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.jav a:274)
at org.eclipse.equinox.internal.app.Activator.start(Activator.j ava:54)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:993)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:974)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:260)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:405)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at
org.eclipse.core.internal.runtime.PlatformActivator.startApp Container(PlatformActivator.java:47)
at
org.eclipse.core.internal.runtime.PlatformActivator.start(Pl atformActivator.java:32)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:993)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:974)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:350)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1118)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:634)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:508)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:282)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:468)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:195)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:297)
The session data is:
eclipse.buildId=unknown
java.version=1.6.0_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipsercp.hyperbola.product
Command-line arguments: -product org.eclipsercp.hyperbola.product -data
C:\secret\eclipsercp/../runtime-hyperbola.product -dev
file:C:/secret/eclipsercp/.metadata/.plugins/org.eclipse.pde .core/hyperbola.product/dev.properties
-os win32 -ws win32 -arch x86
Any ideas?
Do I need to delete my target environment and rebuild that? Worse, do I
need to reinstall Eclipse?
I sure hope this does not happen once I start working on a real
application.
|
|
|
|
|
Re: Q: Cannot launch RCP application [message #250420 is a reply to message #250416] |
Wed, 02 January 2008 12:12  |
Eclipse User |
|
|
|
I got it fixed.
The application depends on plug-ins from the whole Eclipse SDK, not just
the RCP-SDK (as implied in the book). I unzipped the entire Eclipse SDK
into my target plugin directory (in addition to the RCP-SDK -- not sure if
this was necessary).
I edited the hyperbola.product and changed the configuration to "based on
plug-ins".
I changed to the Configuration tab and clicked "Remove All".
I clicked "Add" and added the org.eclipsercp.hyperbola plugin.
I clicked "Add Required Plug-ins".
I changed the configuration back to "feature" based on the Overview tab.
I launched the application successfully.
|
|
|
Powered by
FUDForum. Page generated in 0.03008 seconds