Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » RCP could not be found in the registry exception
RCP could not be found in the registry exception [message #303536] Wed, 17 May 2006 06:19 Go to next message
Eclipse UserFriend
Originally posted by: vedgunjan.yahoo.com

Hi,
Im new to Eclipse RCP world have 2 question regarding the RCP application.
1)I've created a very basic RCP application using the template provided in
eclipes...HelloRCP.
I can launch this RCP without any hinderance.
But when i add a editor as an extension points and try to launch the
application ,i get this exception:
------------------------------------------------------------ -----------
java.lang.RuntimeException: Application "SampleRCP.application" could not
be found in the registry. The applications available are: <NONE>.
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:216)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)

------------------------------------------------------------ -----------
In the manifest file the bundle activator is
Bundle-Activator: SampleRCP.SampleRCPApplication


This is the Plugin.xml
===========================================================
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>

<extension
id="application"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="SampleRCP.SampleRCPApplication">
</run>
</application>
</extension>
<extension
point="org.eclipse.ui.perspectives">
<perspective
name="SampleRCP Perspective"
class="SampleCP.Perspective"
id="Sample.perspective">
</perspective>

</extension>
<!-- Yagna Editors -->
<extension
point="org.eclipse.ui.editors">
<editor
default="true"
class="simple.display.editor.SimpleDisplayEditor"
icon="icons/demo.gif"
name="SampleDisplayEditor"
id="sample.display.editor.SampleDisplayEditor"
extensions="yiq"/>
</extension>

</plugin>
===========================================================
2)I have made a plugin which is having ediotrs,views,perspectives.
How do i add this plugin in RCP application.
I have added this pulgin from the Dependencies tab in to the RCP.But when
i launch this RCP i can only see various views and perspectives.The
editors does not show up.
What can be the possible mistake or reasons.

Thanking in advance for any help and answers.
Ved
===
Re: RCP could not be found in the registry exception [message #303554 is a reply to message #303536] Wed, 17 May 2006 07:49 Go to previous messageGo to next message
Eclipse UserFriend
VedGunjan wrote:
> Hi,
> Im new to Eclipse RCP world have 2 question regarding the RCP application.
> 1)I've created a very basic RCP application using the template provided
> in eclipes...HelloRCP.
> I can launch this RCP without any hinderance.
> But when i add a editor as an extension points and try to launch the
> application ,i get this exception:
> ------------------------------------------------------------ -----------
> java.lang.RuntimeException: Application "SampleRCP.application" could
> not be found in the registry. The applications available are: <NONE>.
> at

Look in your runtime workspace .log file. There are probably messages
about not being able to find certain plugins.

When you launch an RCP app, it fills in the launch config with some
plugins. If you then include other plugins in your plugin dependencies
you need to go to the launch config and add required plugins.

Later,
PW
Re: RCP could not be found in the registry exception [message #303565 is a reply to message #303554] Wed, 17 May 2006 09:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vedgunjan.yahoo.com

Thanks Paul for the reply.
now im getting the this exception
============================================================ =================
org.osgi.framework.BundleException: The activator
SampleRCP.SampleRCPApplication for bundle SampleRCP is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:149)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:965)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:313)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:264)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:116)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1248)
Caused by: java.lang.ClassCastException: SampleRCP.SampleRCPApplication
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:144)
... 27 more
Root exception:
java.lang.ClassCastException: SampleRCP.SampleRCPApplication
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:144)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:965)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:313)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:264)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:116)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
!ENTRY org.eclipse.osgi 2006-05-17 18:32:57.906
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException[1]:
java.lang.ClassNotFoundException: SampleRCP.SampleRCPApplication
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:405)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1248)
============================================================ =================

What can be the possible reason
Thanx
ved
Re: RCP could not be found in the registry exception [message #303575 is a reply to message #303565] Wed, 17 May 2006 10:59 Go to previous message
Eclipse UserFriend
Oh, make sure that your bundle activator is not the same class as your
application.


You said SampleRCP.SampleRCPApplication is your bundle activator AND
SampleRCP.SampleRCPApplication is your application class.

Generate any template sample plugin to find out what your plugin class
(bundle activator) should look like.


Later,
PW
Previous Topic:When I save file in Eclipse, Last Modified Time isn't changed.
Next Topic:WTP Server Instance Properties
Goto Forum:
  


Current Time: Fri Jul 18 02:08:54 EDT 2025

Powered by FUDForum. Page generated in 0.06228 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top