Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » linking problem with extension point(linking problem with extension point)
linking problem with extension point [message #532307] Fri, 07 May 2010 21:05 Go to next message
Laurier  is currently offline Laurier
Messages: 3
Registered: May 2010
Junior Member
Hello,

I am trying to implement an extension point and am getting the error below left in the .metadata/.log file at runtime. It cannot find the extension point org.csstudio.cls.product.startupmodule.Workbench. When run at a terminal, a ClassNotFound exception comes out.

I created the project as an RCP plugin project but had to add the java nature to the .project file in order to add the src directory and the org.csstudio.cls.product.startupmodule package. The startupmodule package contains the Workbench java class with which I intend to implement the org.csstudio.module.workbench extension point. I thought that it was working for a while because the application runs within the IDE quite well (using the Launch link from the product page) but I just noticed this runtime error which only occurs after exporting.

I backtracked with version control and was able to compare a working export directory structure with a broken one and found that the 'org' directory structure was missing from the broken export. Any version where I specify my own extension point (like so in my plugin.xml)
<extension
point="org.csstudio.startup.module">
... (omited working extensions...)
<workbench
class="org.csstudio.cls.product.startupmodule.Workbench">
</workbench>
...
</extension>
does not execute after exporting and is missing the 'org' directory. What areas might affect the whether the 'org' directory appears in the export? Did steps may I have missed in implementing the extension point?

I tried adding things to the build.properties file. I also tried adding '.' and 'src' to the .classpath using "Configure Build Path". My .classpath is pasted below the error message.

From reading other posts I expect the OSGI terminal might be useful here. I'm unfamiliar with it. How might I use it in this case?

Any/all ideas are certainly welcome.

Thank you, I appreciete your help,

Laurier


!SESSION 2010-05-06 14:20:45.878 -----------------------------------------------
eclipse.buildId=CLS_CSS
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_CA
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 4 0 2010-05-06 14:20:49.622
!MESSAGE Application error
!STACK 1
java.lang.Exception: Need exactly one org.csstudio.startup.module.workbench extension point, found 0
at org.csstudio.startup.application.Application.getWorkbenchExt Point(Application.java:410)
at org.csstudio.startup.application.Application.startApplicatio n(Application.java:238)
at org.csstudio.startup.application.Application.start(Applicati on.java:97)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)


.classpath
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Re: linking problem with extension point [message #532999 is a reply to message #532307] Tue, 11 May 2010 19:29 Go to previous message
Laurier  is currently offline Laurier
Messages: 3
Registered: May 2010
Junior Member
Checking the checkbox "Generate metadata repository" in the export wizard solves my problem.

I'm going to read about this option and try to figure out more about why this does what it does and when and why it's required.

Thanks for reading, hopefully this helps.

Laurier
Previous Topic:Unable to export RCP Application
Next Topic:P2 Feature-based Product Export failing
Goto Forum:
  


Current Time: Wed Oct 01 10:18:55 GMT 2014

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

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