Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » plugin development classpath issues
plugin development classpath issues [message #88315] Thu, 03 July 2003 13:47 Go to next message
Eclipse UserFriend
Originally posted by: no.spam.com

I'm working on developing a feature plugin for eclipse, which consists
of 6 different plugins.

I'm using 2.1 final.

Currently, my feature works fine if I launch it in the Runtime
workbench. When I export my plugins, everything appears to be exporting
properly. I then put all these plugins in a separate copy of eclipse,
and fire it up. All of the plugins except for one work properly. When
I double click on a file, that is supposed to launch in a custom editor,
I get a ClassNotFound exception. And I don't have a clue why. Here is
the plugin.xml file for the offending plugin:

<?xml version="1.0" encoding="UTF-8"?>
<plugin
id="lexgrid-ui-model.editor"
name="%pluginName"
version="0.1.1"
provider-name="Lexgrid.org"
class="org.lexgrid.ui.LexgridSchema_v21EditorPlugin$Implementation ">

<runtime>
<library name="lexgrid-ui-model.editor.jar">
<export name="*"/>
</library>
</runtime>
<requires>
<import plugin="org.eclipse.emf.ecore.xmi" export="true"/>
<import plugin="org.eclipse.emf.edit.ui" export="true"/>
<import plugin="lexgrid-ui-model.edit" export="true"/>
</requires>


<extension
point="org.eclipse.ui.editors">
<editor
name="Lexgrid Browser"
icon="icons/full/obj16/LexgridPublishedFile.gif"
extensions="lgp"

contributorClass=" org.lexgrid.ui.lexgridschema_v21.presentation.Lexgridschema_ v21ActionBarContributor "

class=" org.lexgrid.ui.lexgridschema_v21.presentation.Lexgridschema_ v21Browser "
id="lexgridSchemaV21.presentation.LexgridSchemaV21BrowserID ">
</editor>
<editor
name="Lexgrid Editor"
icon="icons/full/obj16/LexgridModelFile.gif"
extensions="lgm"

contributorClass=" org.lexgrid.ui.lexgridschema_v21.presentation.Lexgridschema_ v21ActionBarContributor "

class=" org.lexgrid.ui.lexgridschema_v21.presentation.Lexgridschema_ v21Editor "
id="lexgridSchemaV21.presentation.LexgridSchemaV21EditorID" >
</editor>
</extension>

</plugin>



The jar file referenced (lexgrid-ui-model.editor.jar) is correct, and
does contain the class that throws ClassNotFound exception
(org.lexgrid.ui.lexgridschema_v21.presentation.Lexgridschema _v21Browser)



Can anyone give me any ideas as to what is wrong? I'm at my wits end.

Heres the stack trace, if that helps at all.

Thanks,

Dan


java.lang.ClassNotFoundException:
org.lexgrid.ui.lexgridschema_v21.presentation.Lexgridschema_ v21Browser
at
org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(DelegatingURLClassLoader.java:866)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension(PluginDescriptor.java:130)
at
org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension(PluginDescriptor.java:167)
at
org.eclipse.core.internal.plugins.ConfigurationElement.creat eExecutableExtension(ConfigurationElement.java:103)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:158)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:155)
at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:676)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:889)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:674)
at
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:661)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:459)
at
org.eclipse.ui.internal.EditorManager.openEditorFromInput(Ed itorManager.java:333)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:424)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2056)
at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2004)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:1991)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1986)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1871)
at org.lexgrid.views.ResourceView.openFile(ResourceView.java:66 8)
at org.lexgrid.views.ResourceView.access$7(ResourceView.java:65 5)
at org.lexgrid.views.ResourceView$11.run(ResourceView.java:486)
at org.lexgrid.views.ResourceView$18.doubleClick(ResourceView.j ava:576)
at
org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:372)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:889)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at
org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:370)
at
org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelec t(StructuredViewer.java:589)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:684)
at
org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:187)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:184)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:231)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:1838)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1545)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.java:845)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
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.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
Re: plugin development classpath issues [message #88377 is a reply to message #88315] Thu, 03 July 2003 15:28 Go to previous message
Eclipse UserFriend
Originally posted by: no.spam.com

It turns out that the copy of eclipse that I was installing my plugin's
into must have been corrupt in some way. I started over with a clean
copy of 2.1, and things worked fine.



Dan Armbrust wrote:

> I'm working on developing a feature plugin for eclipse, which consists
> of 6 different plugins.
>
> I'm using 2.1 final.
>
> Currently, my feature works fine if I launch it in the Runtime
> workbench. When I export my plugins, everything appears to be exporting
> properly. I then put all these plugins in a separate copy of eclipse,
> and fire it up. All of the plugins except for one work properly. When
> I double click on a file, that is supposed to launch in a custom editor,
> I get a ClassNotFound exception. And I don't have a clue why. Here is
> the plugin.xml file for the offending plugin:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <plugin
> id="lexgrid-ui-model.editor"
> name="%pluginName"
> version="0.1.1"
> provider-name="Lexgrid.org"
> class="org.lexgrid.ui.LexgridSchema_v21EditorPlugin$Implementation ">
>
> <runtime>
> <library name="lexgrid-ui-model.editor.jar">
> <export name="*"/>
> </library>
> </runtime>
> <requires>
> <import plugin="org.eclipse.emf.ecore.xmi" export="true"/>
> <import plugin="org.eclipse.emf.edit.ui" export="true"/>
> <import plugin="lexgrid-ui-model.edit" export="true"/>
> </requires>
>
>
> <extension
> point="org.eclipse.ui.editors">
> <editor
> name="Lexgrid Browser"
> icon="icons/full/obj16/LexgridPublishedFile.gif"
> extensions="lgp"
>
> contributorClass=" org.lexgrid.ui.lexgridschema_v21.presentation.Lexgridschema_ v21ActionBarContributor "
>
>
> class=" org.lexgrid.ui.lexgridschema_v21.presentation.Lexgridschema_ v21Browser "
>
> id="lexgridSchemaV21.presentation.LexgridSchemaV21BrowserID ">
> </editor>
> <editor
> name="Lexgrid Editor"
> icon="icons/full/obj16/LexgridModelFile.gif"
> extensions="lgm"
>
> contributorClass=" org.lexgrid.ui.lexgridschema_v21.presentation.Lexgridschema_ v21ActionBarContributor "
>
>
> class=" org.lexgrid.ui.lexgridschema_v21.presentation.Lexgridschema_ v21Editor "
>
> id="lexgridSchemaV21.presentation.LexgridSchemaV21EditorID" >
> </editor>
> </extension>
>
> </plugin>
>
>
>
> The jar file referenced (lexgrid-ui-model.editor.jar) is correct, and
> does contain the class that throws ClassNotFound exception
> (org.lexgrid.ui.lexgridschema_v21.presentation.Lexgridschema _v21Browser)
>
>
>
> Can anyone give me any ideas as to what is wrong? I'm at my wits end.
>
> Heres the stack trace, if that helps at all.
>
> Thanks,
>
> Dan
>
>
> java.lang.ClassNotFoundException:
> org.lexgrid.ui.lexgridschema_v21.presentation.Lexgridschema_ v21Browser
> at
> org.eclipse.core.internal.boot.DelegatingURLClassLoader.load Class(DelegatingURLClassLoader.java:866)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension(PluginDescriptor.java:130)
>
> at
> org.eclipse.core.internal.plugins.PluginDescriptor.createExe cutableExtension(PluginDescriptor.java:167)
>
> at
> org.eclipse.core.internal.plugins.ConfigurationElement.creat eExecutableExtension(ConfigurationElement.java:103)
>
> at
> org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:158)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:155)
>
> at org.eclipse.ui.internal.EditorManager$3.run(EditorManager.ja va:676)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:889)
>
> at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> at
> org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:674)
> at
> org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:661)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:459)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromInput(Ed itorManager.java:333)
>
> at
> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:424)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2056)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage .java:2004)
> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:1991)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1986)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:1871)
> at org.lexgrid.views.ResourceView.openFile(ResourceView.java:66 8)
> at org.lexgrid.views.ResourceView.access$7(ResourceView.java:65 5)
> at org.lexgrid.views.ResourceView$11.run(ResourceView.java:486)
> at org.lexgrid.views.ResourceView$18.doubleClick(ResourceView.j ava:576)
> at
> org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:372)
> at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:889)
>
> at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:370)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelec t(StructuredViewer.java:589)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:684)
>
> at
> org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:187)
>
> at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:184)
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:231)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:1838)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1545)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
> at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
> at
> org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.java:845)
>
> at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
> 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.basicRun(Main.java:291)
> at org.eclipse.core.launcher.Main.run(Main.java:747)
> at org.eclipse.core.launcher.Main.main(Main.java:583)
>
>
>
>
>
>
>
>
>
Previous Topic:Change workspace root directory
Next Topic:Finding absolute path to plugin's "plugin.xml"
Goto Forum:
  


Current Time: Sun May 11 14:17:47 EDT 2025

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

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

Back to the top