[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Plug-ins work in runtime, but don't after deploying

Hi,
I have a problem:
I created two plugins, one of them declares extension point and the second one extends this extension point (through implementing required interface). When I choose Run as... Eclipse application for plugin project (for ANY plugin project, not necessary for mine!!!), my two plugins work fine. But when I start eclipse and try my plugins in development mode (before that I deployed them and put jars in /plugins folder of eclipse),the extending plugin doesn't work: CoreException (plugin XXX was unable to load class xxx, where XXX is extending plugin) in createExecutableExtension(...) method because my extending plugin doesn't see interface required for extending (java.lang.NoClassDefFoundError). I call createExecutableExtension by myself while lazy-processing all extensions of my extension point.


This is the Manifest.mf file of plugin with extension point:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Hadrian2 Plug-in
Bundle-SymbolicName: Hadrian2; singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: hadrian2.Hadrian2Plugin
Bundle-Localization: plugin
Require-Bundle: org.eclipse.gef,
org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.ui.ide,
org.eclipse.ui.views,
org.eclipse.ui.workbench,
org.eclipse.jface
Eclipse-AutoStart: true
Export-Package: hadrian2.extpoints.composers
Bundle-ClassPath: .


hadrian2.extpoints.composers is the package where all the classes for the extension point are defined.

This is the Manifest.mf file of extending plugin:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: ConfigVariablesComposer Plug-in
Bundle-SymbolicName: ConfigVariablesComposer; singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: configVariablesComposer.ConfigVariablesComposerPlugin
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
Hadrian2
Bundle-ClassPath: .
Eclipse-AutoStart: true


As you can see, I export the required package from plugin with extension point and point to plugin with extension point in extending plugin. It seems to me, I've tried everything but still have the problem.


Can somebody help me please?