Hello,
I have a rather basic problem with creating a weaving model.
What I did was this:
- Create a new Project in Eclipse and copy e.g. labXML.ecore and
labRDBMS.ecore into the project.
- Choose New -> Other -> Weaving Model
- 1st page of wizard: load mw_base_extension.km3
- 2nd page: Container is "/ProjectName", new model "test.amw", rest is
grayed
- 3rd page:
Choose "left model", "edit selected model".
WModelRef: ModelRef
Panel: DefaultWovenPanelExtension
It's a Metamodel
Choose .ecore file from workspace
And then the same with the other file for "right model"
- Click Finish: Popup with error message appears:
"Error in a Woven Panel extension (maybe declaration in plugin.xml)
Plug-in org.eclipse.weaver.extension.base was unable to load class
org.eclipse.weaver.extension.panel.DefaultWovenModelPanel"
- The files "test.amw" and "test.amw.props" appear in the Navigator,
but "test.amw" actually does not exist.
The exceptions in the stacktrace look like this:
org.eclipse.weaver.exception.WeaverException: Error in a Woven Panel
extension (maybe declaration in plugin.xml)
Plug-in org.eclipse.weaver.extension.base was unable to load class
org.eclipse.weaver.extension.panel.DefaultWovenModelPanel.
at
org.eclipse.weaver.core.WeaverExtensionManager.getWovenPanelImplementationClass(WeaverExtensionManager.java:326)
at
org.eclipse.weaver.editors.GlobalWeaverEditor.createPages(GlobalWeaverEditor.java:130)
[...]
org.eclipse.weaver.exception.WeaverException[0]:
org.eclipse.core.runtime.CoreException: Plug-in
org.eclipse.weaver.extension.base was unable to load class
org.eclipse.weaver.extension.panel.DefaultWovenModelPanel.
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:165)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:151)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:759)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at
org.eclipse.weaver.core.WeaverExtensionManager.getWovenPanelImplementationClass(WeaverExtensionManager.java:323)
at
org.eclipse.weaver.editors.GlobalWeaverEditor.createPages(GlobalWeaverEditor.java:130)
at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:276)
[...]
org.eclipse.core.runtime.CoreException[1]:
java.lang.NoClassDefFoundError:
org/eclipse/weaver/editors/IWovenModelPanel
[...]
at org.eclipse.weaver.wizards.WeaverWizard$2.run(WeaverWizard.java:323)
[...]
What I tried so far was:
* Checked whether the class is really there:
- In the plugins directory in
org.eclipse.weaver.extension.base_2.0.0.jar in weaverbaseextension.jar
there is a DefaultWovenModelPanel.class
- I don't know where "org/eclipse/weaver/editors/IWovenModelPanel" is!
* Looked at the plugin.xml of org.eclipse.weaver.extension.base_2.0.0:
I don't know what to look for, but there is a
<extension
id="DefaultWovenPanelExtension"
point="org.eclipse.weaver.wovenPanelID">
<modelPanel name="Base woven panel extension"
class="org.eclipse.weaver.extension.panel.DefaultWovenModelPanel"/>
</extension> and a
<runtime>
<library name="weaverbaseextension.jar">
<export name="*"/>
</library>
</runtime>
* Tried the other two Panels (WovenPanelXMI and
MergeWovenPanelExtension): the same problem
The versions I am using here are:
Eclipse Version: 3.2.1
EMF Version: 2.2.2
ATL from adt20060630_Eclipse3_1(withMDR4ATL).zip
AMW from mwplugins-20061208.zip
Any help with this problem is very much appreaciated!
Thank you,
Veronika