ClassNotFoundException when opening an editor that extends the GenModel editor [message #266999] |
Sun, 15 August 2004 15:38 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: mariana.lasprilla.tuhh.de
I have written a plug-in with an editor that extends the EMF .genmodel
Editor (org.eclipse.emf.codegen.ecore.genmodel.presentation.GenMode lEditor
class). The plug-in worked fine under Eclipse 2.1.2 and EMF 1.1, but after
migrating it to Eclipse 3.0 (Release ID: 200406251208), when trying to
load it I get a ClassNotFoundException.
This occurs both when I try to migrate my plug-in manually and when using
the PDE Tool Migrate to 3.0. I've checked the plugin.xml file, the class
names, dependencies, etc. to no avail.
Anybody knows what may be happening here?
Below the plugin.xml and the .log
Thanks in advance,
Mariana
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin
id="de.tuhh.sts.mlasprilla.myemf1.0"
name="My EMF 1.0 Plug-in"
version="1.0.0"
provider-name=""
class="de.tuhh.sts.mlasprilla.myemf10.MyEmfPlugin$Implementation ">
<runtime>
<library name="myemf10.jar">
<export name="*"/>
</library>
</runtime>
<requires>
<import plugin="org.eclipse.core.runtime.compatibility"/>
<import plugin="org.eclipse.ui.ide"/>
<import plugin="org.eclipse.ui.views"/>
<import plugin="org.eclipse.jface.text"/>
<import plugin="org.eclipse.ui.workbench.texteditor"/>
<import plugin="org.eclipse.ui.editors"/>
<import plugin="org.eclipse.emf" export="true"/>
<import plugin="org.eclipse.emf.ecore.xmi" export="true"/>
<import plugin="org.eclipse.core.boot"/>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.jface"/>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.emf.ecore" export="true"/>
<import plugin="org.eclipse.emf.codegen"/>
<import plugin="org.eclipse.emf.codegen.ecore"/>
<import plugin="org.eclipse.emf.edit.ui"/>
<import plugin="org.eclipse.emf.codegen.ui" export="true"/>
<import plugin="org.eclipse.emf.codegen.ecore.ui" export="true"/>
<import plugin="org.eclipse.jdt.core" export="true"/>
<import plugin="org.eclipse.jdt"/>
</requires>
<extension
point="org.eclipse.ui.editors">
name="My EMF 1.0 Editor"
extensions="genmodel"
icon="icons/sample.gif"
contributorClass="de.tuhh.sts.mlasprilla.myemf10.StateGenActionBarContributor "
class="de.tuhh.sts.mlasprilla.myemf10.editors.MyEmfEditor"
id="de.tuhh.sts.mlasprilla.myemf10.editors.MyEmfEditorID">
</editor>
</extension>
</plugin>
!MESSAGE Plug-in de.tuhh.sts.mlasprilla.myemf1.0 was unable to load class
de.tuhh.sts.mlasprilla.myemf10.editors.MyEmfEditor.
!STACK 0
java.lang.ClassNotFoundException:
de.tuhh.sts.mlasprilla.myemf10.editors.MyEmfEditor
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:404)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:307)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:336)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1313)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:131)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:124)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:113)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:196)
|
|
|
Re: ClassNotFoundException when opening an editor that extends the GenModel editor [message #267270 is a reply to message #266999] |
Tue, 17 August 2004 08:54 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: mariana.lasprilla.tuhh.de
Mariana wrote:
> I have written a plug-in with an editor that extends the EMF .genmodel
> Editor (org.eclipse.emf.codegen.ecore.genmodel.presentation.GenMode lEditor
> class). The plug-in worked fine under Eclipse 2.1.2 and EMF 1.1, but after
> migrating it to Eclipse 3.0 (Release ID: 200406251208), when trying to
> load it I get a ClassNotFoundException.
> This occurs both when I try to migrate my plug-in manually and when using
> the PDE Tool Migrate to 3.0. I've checked the plugin.xml file, the class
> names, dependencies, etc. to no avail.
> Anybody knows what may be happening here?
> Below the plugin.xml and the .log
> Thanks in advance,
> Mariana
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.0"?>
> <plugin
> id="de.tuhh.sts.mlasprilla.myemf1.0"
> name="My EMF 1.0 Plug-in"
> version="1.0.0"
> provider-name=""
> class="de.tuhh.sts.mlasprilla.myemf10.MyEmfPlugin$Implementation ">
> <runtime>
> <library name="myemf10.jar">
> <export name="*"/>
> </library>
> </runtime>
> <requires>
> <import plugin="org.eclipse.core.runtime.compatibility"/>
> <import plugin="org.eclipse.ui.ide"/>
> <import plugin="org.eclipse.ui.views"/>
> <import plugin="org.eclipse.jface.text"/>
> <import plugin="org.eclipse.ui.workbench.texteditor"/>
> <import plugin="org.eclipse.ui.editors"/>
> <import plugin="org.eclipse.emf" export="true"/>
> <import plugin="org.eclipse.emf.ecore.xmi" export="true"/>
> <import plugin="org.eclipse.core.boot"/>
> <import plugin="org.eclipse.core.resources"/>
> <import plugin="org.eclipse.core.runtime"/>
> <import plugin="org.eclipse.jface"/>
> <import plugin="org.eclipse.ui"/>
> <import plugin="org.eclipse.emf.ecore" export="true"/>
> <import plugin="org.eclipse.emf.codegen"/>
> <import plugin="org.eclipse.emf.codegen.ecore"/>
> <import plugin="org.eclipse.emf.edit.ui"/>
> <import plugin="org.eclipse.emf.codegen.ui" export="true"/>
> <import plugin="org.eclipse.emf.codegen.ecore.ui" export="true"/>
> <import plugin="org.eclipse.jdt.core" export="true"/>
> <import plugin="org.eclipse.jdt"/>
> </requires>
> <extension
> point="org.eclipse.ui.editors">
> name="My EMF 1.0 Editor"
> extensions="genmodel"
> icon="icons/sample.gif"
>
contributorClass="de.tuhh.sts.mlasprilla.myemf10.StateGenActionBarContributor "
> class="de.tuhh.sts.mlasprilla.myemf10.editors.MyEmfEditor"
> id="de.tuhh.sts.mlasprilla.myemf10.editors.MyEmfEditorID">
> </editor>
> </extension>
> </plugin>
> !MESSAGE Plug-in de.tuhh.sts.mlasprilla.myemf1.0 was unable to load class
> de.tuhh.sts.mlasprilla.myemf10.editors.MyEmfEditor.
> !STACK 0
> java.lang.ClassNotFoundException:
> de.tuhh.sts.mlasprilla.myemf10.editors.MyEmfEditor
> at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:404)
> at
>
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:93)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:307)
> at
>
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:336)
> at
>
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1313)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:131)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:124)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:113)
> at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:196)
|
|
|
Re: ClassNotFoundException when opening an editor that extends the GenModel editor [message #267273 is a reply to message #266999] |
Tue, 17 August 2004 08:56 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: mariana.lasprilla.tuhh.de
Problem solved!
My plug-in started working as soon as I erased the
"org.eclipse.core.runtime.compatibility" plug-in from the dependencies.
From reading the migration guide and similar it is not clear to me why
this would happen, though.
Mariana wrote:
> I have written a plug-in with an editor that extends the EMF .genmodel
> Editor (org.eclipse.emf.codegen.ecore.genmodel.presentation.GenMode lEditor
> class). The plug-in worked fine under Eclipse 2.1.2 and EMF 1.1, but after
> migrating it to Eclipse 3.0 (Release ID: 200406251208), when trying to
> load it I get a ClassNotFoundException.
> This occurs both when I try to migrate my plug-in manually and when using
> the PDE Tool Migrate to 3.0. I've checked the plugin.xml file, the class
> names, dependencies, etc. to no avail.
> Anybody knows what may be happening here?
> Below the plugin.xml and the .log
> Thanks in advance,
> Mariana
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.0"?>
> <plugin
> id="de.tuhh.sts.mlasprilla.myemf1.0"
> name="My EMF 1.0 Plug-in"
> version="1.0.0"
> provider-name=""
> class="de.tuhh.sts.mlasprilla.myemf10.MyEmfPlugin$Implementation ">
> <runtime>
> <library name="myemf10.jar">
> <export name="*"/>
> </library>
> </runtime>
> <requires>
> <import plugin="org.eclipse.core.runtime.compatibility"/>
> <import plugin="org.eclipse.ui.ide"/>
> <import plugin="org.eclipse.ui.views"/>
> <import plugin="org.eclipse.jface.text"/>
> <import plugin="org.eclipse.ui.workbench.texteditor"/>
> <import plugin="org.eclipse.ui.editors"/>
> <import plugin="org.eclipse.emf" export="true"/>
> <import plugin="org.eclipse.emf.ecore.xmi" export="true"/>
> <import plugin="org.eclipse.core.boot"/>
> <import plugin="org.eclipse.core.resources"/>
> <import plugin="org.eclipse.core.runtime"/>
> <import plugin="org.eclipse.jface"/>
> <import plugin="org.eclipse.ui"/>
> <import plugin="org.eclipse.emf.ecore" export="true"/>
> <import plugin="org.eclipse.emf.codegen"/>
> <import plugin="org.eclipse.emf.codegen.ecore"/>
> <import plugin="org.eclipse.emf.edit.ui"/>
> <import plugin="org.eclipse.emf.codegen.ui" export="true"/>
> <import plugin="org.eclipse.emf.codegen.ecore.ui" export="true"/>
> <import plugin="org.eclipse.jdt.core" export="true"/>
> <import plugin="org.eclipse.jdt"/>
> </requires>
> <extension
> point="org.eclipse.ui.editors">
> name="My EMF 1.0 Editor"
> extensions="genmodel"
> icon="icons/sample.gif"
>
contributorClass="de.tuhh.sts.mlasprilla.myemf10.StateGenActionBarContributor "
> class="de.tuhh.sts.mlasprilla.myemf10.editors.MyEmfEditor"
> id="de.tuhh.sts.mlasprilla.myemf10.editors.MyEmfEditorID">
> </editor>
> </extension>
> </plugin>
> !MESSAGE Plug-in de.tuhh.sts.mlasprilla.myemf1.0 was unable to load class
> de.tuhh.sts.mlasprilla.myemf10.editors.MyEmfEditor.
> !STACK 0
> java.lang.ClassNotFoundException:
> de.tuhh.sts.mlasprilla.myemf10.editors.MyEmfEditor
> at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:404)
> at
>
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:93)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
>
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:307)
> at
>
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:336)
> at
>
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1313)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:131)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:124)
> at
>
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:113)
> at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:196)
|
|
|
Powered by
FUDForum. Page generated in 0.03629 seconds