Home » Modeling » EMF » Re: GMF & TENEO
Re: GMF & TENEO [message #490126] |
Wed, 07 October 2009 12:53 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Rafnixx,
Which version of Hibernate are you using? With Teneo 1.1.1/1.1.2 you need to use Hibernate 3.3.2 (and not 3.3.1 or earlier).
Btw, support for Teneo is given on the main EMF newsgroup which I added in the cc.
gr. Martin
rafnixx@hushmail.com wrote:
> Hi,
> I tried to repeat this tutorial.
> http://www.elver.org/hibernate/gmftutorial/tutorial1.html. I thought
> everything works good, but when I tried to run the example & the new
> workbench opened, I couldn't see the mindmap diagram which I made before
> the tutorial, there is an error:
> Could not open the editor: The editor class could not be instantiated.
> This usually indicates a missing no-arg constructor or that the editor's
> class name was mistyped in plugin.xml.
>
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter
> $TerminatingClassNotFoundException: An error occurred while
> automatically activating bundle
> org.eclipse.gmf.examples.mindmap.rcp.diagram (766).
> at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter
> .postFindLocalClass(EclipseLazyStarter.java:125)
> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc
> alClass(ClasspathManager.java:449)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin
> dLocalClass(DefaultClassLoader.java:211)
> at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass
> (BundleLoader.java:381)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter
> nal(BundleLoader.java:457)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
> leLoader.java:410)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
> leLoader.java:398)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa
> dClass(DefaultClassLoader.java:105)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(Bund
> leLoader.java:326)
> at org.eclipse.osgi.framework.internal.core.BundleHost.loadClas
> s(BundleHost.java:231)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.load
> Class(AbstractBundle.java:1193)
> at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI
> .createExecutableExtension(RegistryStrategyOSGI.java:160)
> at org.eclipse.core.internal.registry.ExtensionRegistry.createE
> xecutableExtension(ExtensionRegistry.java:874)
> at org.eclipse.core.internal.registry.ConfigurationElement.crea
> teExecutableExtension(ConfigurationElement.java:243)
> at org.eclipse.core.internal.registry.ConfigurationElementHandl
> e.createExecutableExtension(ConfigurationElementHandle.java: 51)
> at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi
> n.java:267)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator
> .java:70)
> at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work
> benchPlugin.java:263)
> at org.eclipse.ui.internal.registry.EditorDescriptor.createEdit
> or(EditorDescriptor.java:235)
> at org.eclipse.ui.internal.EditorManager.createPart(EditorManag
> er.java:845)
> at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi
> torReference.java:606)
> at org.eclipse.ui.internal.EditorReference.createPart(EditorRef
> erence.java:462)
> at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb
> enchPartReference.java:595)
> at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed
> itorAreaHelper.java:271)
> at org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito
> rManager.java:1417)
> at org.eclipse.ui.internal.EditorManager$5.runWithException(Edi
> torManager.java:942)
> at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run
> (StartupThreading.java:31)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr
> onizer.java:134)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav
> a:3855)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
> at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work
> benchAdvisor.java:803)
> at org.eclipse.ui.internal.Workbench$28.runWithException(Workbe
> nch.java:1384)
> at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run
> (StartupThreading.java:31)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr
> onizer.java:134)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav
> a:3855)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault
> (Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work
> bench.java:493)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j
> ava:149)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start
> (IDEApplication.java:113)
> 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)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
> Caused by: org.osgi.framework.BundleException: Exception in
> org.eclipse.gmf.examples.mindmap.rcp.diagram.part.MindmapDia
> gramEditorPlugin.start() of bundle
> org.eclipse.gmf.examples.mindmap.rcp.diagram.
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s
> tartActivator(BundleContextImpl.java:806)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s
> tart(BundleContextImpl.java:755)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWor
> ker(BundleHost.java:352)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.star
> t(AbstractBundle.java:280)
> at org.eclipse.osgi.framework.util.SecureAction.start(SecureAct
> ion.java:408)
> at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter
> .postFindLocalClass(EclipseLazyStarter.java:111)
> ... 58 more
> Caused by: java.lang.NoClassDefFoundError: org/hibernate/EntityNameResolver
> at org.eclipse.gmf.examples.mindmap.rcp.diagram.db.StoreControl
> ler.initializeDataStore(StoreController.java:81)
> at org.eclipse.gmf.examples.mindmap.rcp.diagram.part.MindmapDia
> gramEditorPlugin.start(MindmapDiagramEditorPlugin.java:71)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1
> .run(BundleContextImpl.java:783)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s
> tartActivator(BundleContextImpl.java:774)
> ... 63 more
> Caused by: java.lang.ClassNotFoundException:
> org.hibernate.EntityNameResolver
> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter
> nal(BundleLoader.java:494)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
> leLoader.java:410)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
> leLoader.java:398)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa
> dClass(DefaultClassLoader.java:105)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> ... 68 more
>
>
> When I try: File - New - Mindmap Diagram then I read: The chosen
> operation is not currently available, the same if I press the Mindmap DB
> button.
> If I delete the StoreController.getInstance().initializeDataStore(); in
> the stop method of MindmapDiagramEditorPlugin.java (Initialize Teneo
> when plugin starts -
> http://www.elver.org/hibernate/gmftutorial/tutorial2.html - down on the
> side) than it works, but without DB.
> I use a empty SQL Server 2005 database and I think the jdbc driver and
> all the packeges are correct.
> What can I do - hope you can help me.
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: GMF & TENEO [message #490269 is a reply to message #490126] |
Thu, 08 October 2009 07:22 |
No real name Messages: 24 Registered: October 2009 |
Junior Member |
|
|
Hi,
it's me again, than lets continue here.
I'm using Teneo 1.1.2 and Hibernate 3.3.2.GA in a seperate Plugin.
Yesterday I tried mapping with Hibernate Tools for Eclipse and its works.
Any idea why it doesn't works like in the tutorial?
I Insalled eclipse-modeling-galileo-SR1-incubation-win32.zip with Eclipse Modeling Tools 1.2.1, EMF Teneo Hibernate 1.1.2 an Hibernate Tools 3.2.4.
from CVS:
org.eclipse.gmf.examples.mindmap
org.eclipse.gmf.examples.mindmap.edit
org.eclipse.gmf.examples.mindmap.rcp.diagram - Here I made the changes from the tutorial
------------------------------------------------------------ ----------------------
I built my own Hibernate_Plugin called plugin - MANIFEST.MF
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Hibernate_Plugin
Bundle-SymbolicName: Hibernate_Plugin
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: hibernate_plugin.Activator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.emf.teneo;bundle-version="1.1.1",
org.eclipse.emf.teneo.annotations;bundle-version="1.1.0",
org.eclipse.emf.teneo.hibernate.mapper;bundle-version="1.1.2 ",
org.eclipse.emf.teneo.hibernate;bundle-version="1.1.2"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6,
J2SE-1.5
Eclipse-BuddyPolicy: dependent
Import-Package: org.hibernate
Referenced Libraries:
hibernate3.jae
hibernate-testing.jar
antlr-2.7.6.jar
commons-collections-3.1.jar
dom4j-1.6.1.jar
javassist-3.9.0.GA.jar
jta-1.1.jar
slf4j-api-1.5.8.jar
sqljdbc4.jar
------------------------------------------------------------ ------------
org.eclipse.gmf.examples.mindmap - MANIFEST.MF:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.gmf.examples.mindmap; singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: .
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Export-Package: org.eclipse.gmf.examples.mindmap,
org.eclipse.gmf.examples.mindmap.impl,
org.eclipse.gmf.examples.mindmap.util
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.emf.ecore.xmi;visibility:=reexport,
org.eclipse.emf.teneo.hibernate;bundle-version="1.1.2";visibility:=reexport,
Hibernate_Plugin;bundle-version="1.0.0"
Eclipse-LazyStart: true
------------------------------------------------------------ ----------------
org.eclipse.gmf.examples.mindmap.rcp.diagram - MANIFEST.MF
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.gmf.examples.mindmap.rcp.diagram; singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-ClassPath: .
Bundle-Activator: org.eclipse.gmf.examples.mindmap.rcp.diagram.part.MindmapDia gramEditorPlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Export-Package: org.eclipse.gmf.examples.mindmap.rcp.diagram.edit.parts,
org.eclipse.gmf.examples.mindmap.rcp.diagram.part,
org.eclipse.gmf.examples.mindmap.rcp.diagram.providers
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.jface,
org.eclipse.ui.views,
org.eclipse.emf.ecore,
org.eclipse.emf.ecore.xmi,
org.eclipse.emf.edit.ui,
org.eclipse.gmf.runtime.emf.core,
org.eclipse.gmf.runtime.emf.commands.core,
org.eclipse.gmf.runtime.emf.ui.properties,
org.eclipse.gmf.runtime.diagram.ui,
org.eclipse.gmf.runtime.diagram.ui.properties,
org.eclipse.gmf.runtime.diagram.ui.providers,
org.eclipse.gmf.runtime.diagram.ui.render,
org.eclipse.gmf.runtime.diagram.ui.resources.editor,
org.eclipse.gmf.examples.mindmap;visibility:=reexport,
org.eclipse.gmf.examples.mindmap.edit;visibility:=reexport,
org.eclipse.ocl.ecore;visibility:=reexport,
org.eclipse.emf.validation;visibility:=reexport,
org.eclipse.gmf.runtime.draw2d.ui;visibility:=reexport,
org.eclipse.gef;visibility:=reexport,
org.eclipse.emf.validation.ocl;visibility:=reexport
Eclipse-LazyStart: true
Import-Package: org.hibernate
------------------------------------------------------------ -----------
I hope anybody can help with this informations.
|
|
|
Re: GMF & TENEO [message #490271 is a reply to message #490126] |
Thu, 08 October 2009 07:25 |
No real name Messages: 24 Registered: October 2009 |
Junior Member |
|
|
Hi,
it's me again, than lets continue here.
I'm using Teneo 1.1.2 and Hibernate 3.3.2.GA in a seperate Plugin.
Yesterday I tried mapping with Hibernate Tools for Eclipse and its works.
Any idea why it doesn't works like in the tutorial?
I Insalled eclipse-modeling-galileo-SR1-incubation-win32.zip with Eclipse Modeling Tools 1.2.1, EMF Teneo Hibernate 1.1.2 an Hibernate Tools 3.2.4.
from CVS:
org.eclipse.gmf.examples.mindmap
org.eclipse.gmf.examples.mindmap.edit
org.eclipse.gmf.examples.mindmap.rcp.diagram - Here I made the changes from the tutorial
------------------------------------------------------------ ----------------------
I built my own Hibernate_Plugin called plugin - MANIFEST.MF
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Hibernate_Plugin
Bundle-SymbolicName: Hibernate_Plugin
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: hibernate_plugin.Activator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.emf.teneo;bundle-version="1.1.1",
org.eclipse.emf.teneo.annotations;bundle-version="1.1.0",
org.eclipse.emf.teneo.hibernate.mapper;bundle-version="1.1.2 ",
org.eclipse.emf.teneo.hibernate;bundle-version="1.1.2"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6,
J2SE-1.5
Eclipse-BuddyPolicy: dependent
Import-Package: org.hibernate
Referenced Libraries:
hibernate3.jae
hibernate-testing.jar
antlr-2.7.6.jar
commons-collections-3.1.jar
dom4j-1.6.1.jar
javassist-3.9.0.GA.jar
jta-1.1.jar
slf4j-api-1.5.8.jar
sqljdbc4.jar
------------------------------------------------------------ ------------
org.eclipse.gmf.examples.mindmap - MANIFEST.MF:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.gmf.examples.mindmap; singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: .
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Export-Package: org.eclipse.gmf.examples.mindmap,
org.eclipse.gmf.examples.mindmap.impl,
org.eclipse.gmf.examples.mindmap.util
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.emf.ecore.xmi;visibility:=reexport,
org.eclipse.emf.teneo.hibernate;bundle-version="1.1.2";visibility:=reexport,
Hibernate_Plugin;bundle-version="1.0.0"
Eclipse-LazyStart: true
------------------------------------------------------------ ----------------
org.eclipse.gmf.examples.mindmap.rcp.diagram - MANIFEST.MF
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.gmf.examples.mindmap.rcp.diagram; singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-ClassPath: .
Bundle-Activator: org.eclipse.gmf.examples.mindmap.rcp.diagram.part.MindmapDia gramEditorPlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Export-Package: org.eclipse.gmf.examples.mindmap.rcp.diagram.edit.parts,
org.eclipse.gmf.examples.mindmap.rcp.diagram.part,
org.eclipse.gmf.examples.mindmap.rcp.diagram.providers
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.jface,
org.eclipse.ui.views,
org.eclipse.emf.ecore,
org.eclipse.emf.ecore.xmi,
org.eclipse.emf.edit.ui,
org.eclipse.gmf.runtime.emf.core,
org.eclipse.gmf.runtime.emf.commands.core,
org.eclipse.gmf.runtime.emf.ui.properties,
org.eclipse.gmf.runtime.diagram.ui,
org.eclipse.gmf.runtime.diagram.ui.properties,
org.eclipse.gmf.runtime.diagram.ui.providers,
org.eclipse.gmf.runtime.diagram.ui.render,
org.eclipse.gmf.runtime.diagram.ui.resources.editor,
org.eclipse.gmf.examples.mindmap;visibility:=reexport,
org.eclipse.gmf.examples.mindmap.edit;visibility:=reexport,
org.eclipse.ocl.ecore;visibility:=reexport,
org.eclipse.emf.validation;visibility:=reexport,
org.eclipse.gmf.runtime.draw2d.ui;visibility:=reexport,
org.eclipse.gef;visibility:=reexport,
org.eclipse.emf.validation.ocl;visibility:=reexport
Eclipse-LazyStart: true
Import-Package: org.hibernate
------------------------------------------------------------ -----------
I hope anybody can help with this informations.
|
|
| |
Re: GMF & TENEO [message #490289 is a reply to message #490271] |
Thu, 08 October 2009 08:46 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Rafnixx,
A first thing I saw, your hibernate library in the manifest below seems to have a strange name:
hibernate3.jae
instead of
hibernate3.jar
Your hibernate jar file requires teneo etc. Afaics the hibernate plugin does not need to require other plugins.
I would also reexport the hibernate plugin in the manifest.mf of the org.eclipse.gmf.examples.mindmap.
Let me know if this helped (or not ofcourse).
gr. Martin
rafnixx@hushmail.com wrote:
> Hi,
> it's me again, than lets continue here.
> I'm using Teneo 1.1.2 and Hibernate 3.3.2.GA in a seperate Plugin.
> Yesterday I tried mapping with Hibernate Tools for Eclipse and its works.
> Any idea why it doesn't works like in the tutorial?
>
> I Insalled eclipse-modeling-galileo-SR1-incubation-win32.zip with
> Eclipse Modeling Tools 1.2.1, EMF Teneo Hibernate 1.1.2 an Hibernate
> Tools 3.2.4.
>
> from CVS:
> org.eclipse.gmf.examples.mindmap
> org.eclipse.gmf.examples.mindmap.edit
> org.eclipse.gmf.examples.mindmap.rcp.diagram - Here I made the changes
> from the tutorial
>
> ------------------------------------------------------------
> ----------------------
> I built my own Hibernate_Plugin called plugin - MANIFEST.MF
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Hibernate_Plugin
> Bundle-SymbolicName: Hibernate_Plugin
> Bundle-Version: 1.0.0.qualifier
> Bundle-Activator: hibernate_plugin.Activator
> Require-Bundle: org.eclipse.ui,
> org.eclipse.core.runtime,
> org.eclipse.emf.teneo;bundle-version="1.1.1",
> org.eclipse.emf.teneo.annotations;bundle-version="1.1.0",
> org.eclipse.emf.teneo.hibernate.mapper;bundle-version="1.1.2 ",
> org.eclipse.emf.teneo.hibernate;bundle-version="1.1.2"
> Bundle-ActivationPolicy: lazy
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6,
> J2SE-1.5
> Eclipse-BuddyPolicy: dependent
> Import-Package: org.hibernate
>
> Referenced Libraries: hibernate3.jae
> hibernate-testing.jar
> antlr-2.7.6.jar
> commons-collections-3.1.jar
> dom4j-1.6.1.jar
> javassist-3.9.0.GA.jar
> jta-1.1.jar
> slf4j-api-1.5.8.jar
> sqljdbc4.jar
> ------------------------------------------------------------ ------------
> org.eclipse.gmf.examples.mindmap - MANIFEST.MF:
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: %pluginName
> Bundle-SymbolicName: org.eclipse.gmf.examples.mindmap; singleton:=true
> Bundle-Version: 1.0.0
> Bundle-ClassPath: .
> Bundle-Vendor: %providerName
> Bundle-Localization: plugin
> Bundle-RequiredExecutionEnvironment: J2SE-1.5
> Export-Package: org.eclipse.gmf.examples.mindmap,
> org.eclipse.gmf.examples.mindmap.impl,
> org.eclipse.gmf.examples.mindmap.util
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.emf.ecore;visibility:=reexport,
> org.eclipse.emf.ecore.xmi;visibility:=reexport,
> org.eclipse.emf.teneo.hibernate;bundle-version="1.1.2";visibility:=reexport,
>
> Hibernate_Plugin;bundle-version="1.0.0"
> Eclipse-LazyStart: true
> ------------------------------------------------------------
> ----------------
> org.eclipse.gmf.examples.mindmap.rcp.diagram - MANIFEST.MF
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: %pluginName
> Bundle-SymbolicName: org.eclipse.gmf.examples.mindmap.rcp.diagram;
> singleton:=true
> Bundle-Version: 1.0.0.qualifier
> Bundle-ClassPath: .
> Bundle-Activator:
> org.eclipse.gmf.examples.mindmap.rcp.diagram.part.MindmapDia
> gramEditorPlugin
> Bundle-Vendor: %providerName
> Bundle-Localization: plugin
> Export-Package: org.eclipse.gmf.examples.mindmap.rcp.diagram.edit.parts,
> org.eclipse.gmf.examples.mindmap.rcp.diagram.part,
> org.eclipse.gmf.examples.mindmap.rcp.diagram.providers
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.jface,
> org.eclipse.ui.views,
> org.eclipse.emf.ecore,
> org.eclipse.emf.ecore.xmi,
> org.eclipse.emf.edit.ui,
> org.eclipse.gmf.runtime.emf.core,
> org.eclipse.gmf.runtime.emf.commands.core,
> org.eclipse.gmf.runtime.emf.ui.properties,
> org.eclipse.gmf.runtime.diagram.ui,
> org.eclipse.gmf.runtime.diagram.ui.properties,
> org.eclipse.gmf.runtime.diagram.ui.providers,
> org.eclipse.gmf.runtime.diagram.ui.render,
> org.eclipse.gmf.runtime.diagram.ui.resources.editor,
> org.eclipse.gmf.examples.mindmap;visibility:=reexport,
> org.eclipse.gmf.examples.mindmap.edit;visibility:=reexport,
> org.eclipse.ocl.ecore;visibility:=reexport,
> org.eclipse.emf.validation;visibility:=reexport,
> org.eclipse.gmf.runtime.draw2d.ui;visibility:=reexport,
> org.eclipse.gef;visibility:=reexport,
> org.eclipse.emf.validation.ocl;visibility:=reexport
> Eclipse-LazyStart: true
> Import-Package: org.hibernate
>
>
>
> ------------------------------------------------------------ -----------
> I hope anybody can help with this informations.
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| |
Re: GMF & TENEO [message #490296 is a reply to message #490292] |
Thu, 08 October 2009 09:25 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------090802060802050702000206
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi Rafnixx,
I mean this part:
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.emf.teneo;bundle-version="1.1.1",
org.eclipse.emf.teneo.annotations;bundle-version="1.1.0",
org.eclipse.emf.teneo.hibernate.mapper;bundle-version="1.1.2 ",
org.eclipse.emf.teneo.hibernate;bundle-version="1.1.2"
is not needed in the hibernate plugin manifest.mf.
The bundle does not need an activator either (but this is unimportant).
Also the hibernate plugin does an Import-package for org.hibernate, this shouldn't be there.
But what is needed: the hibernate plugin needs to export the hibernate java packages.
Also can you check if the hibernate jar files are present in the build.properties?
In my hibernate libraries manifest.mf the jar files are defined in the bundle-classpath in your case you use referenced
libraries (I am not sure what the difference is).
I have attached the manifest.mf/build.properties of my own hibernate plugin, I won't say you need to copy that exactly
but it can give some other pointers I did not think of.
gr. Martin
rafnixx@hushmail.com wrote:
> Hi Martin,
> thx for your answer.
>
> hibernate3.jar was only a write error
> I reexported my hibernate plugin in manifest.mf, but allways still same
> error.
> Your wrote: Your hibernate jar file requires teneo etc. Afaics the
> hibernate plugin does not need to require other plugins.
> I'm sorry but I don't understand what you mean and/or what should I do now.
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
--------------090802060802050702000206
Content-Type: text/plain;
name="MANIFEST.MF"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="MANIFEST.MF"
TWFuaWZlc3QtVmVyc2lvbjogMS4wCkJ1bmRsZS1NYW5pZmVzdFZlcnNpb246 IDIKQnVuZGxl
LU5hbWU6ICVQbHVnaW4ubmFtZQpCdW5kbGUtU3ltYm9saWNOYW1lOiBvcmcu ZWNsaXBzZS5l
bWYudGVuZW8uaGliZXJuYXRlLmxpYnJhcmllcwpCdW5kbGUtVmVyc2lvbjog MS4xLjAucXVh
bGlmaWVyCkVjbGlwc2UtQnVkZHlQb2xpY3k6IGRlcGVuZGVudApCdW5kbGUt TG9jYWxpemF0
aW9uOiBwbHVnaW4KRXhwb3J0LVBhY2thZ2U6IAogYW50bHIsCiBhbnRsci5B U2RlYnVnLAog
YW50bHIuYWN0aW9ucy5jcHAsCiBhbnRsci5hY3Rpb25zLmNzaGFycCwKIGFu dGxyLmFjdGlv
bnMuamF2YSwKIGFudGxyLmFjdGlvbnMucHl0aG9uLAogYW50bHIuYnVpbGQs CiBhbnRsci5j
b2xsZWN0aW9ucywKIGFudGxyLmNvbGxlY3Rpb25zLmltcGwsCiBhbnRsci5k ZWJ1ZywKIGFu
dGxyLmRlYnV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3JnLmhzcWxkYi51 dGlsCkJ1bmRs
ZS1SZXF1aXJlZEV4ZWN1dGlvbkVudmlyb25tZW50OiBKMlNFLTEuNQpCdW5k bGUtVmVuZG9y
OiAlUGx1Z2luLnByb3ZpZGVyTmFtZQpCdW5kbGUtQ2xhc3NQYXRoOiBhbnRs ci0yLjcuNi5q
YXIsCiBjM3AwLTAuOS4xLmphciwKIGNvbW1vbnMtY29sbGVjdGlvbnMtMy4x LmphciwKIGRv
bTRqLTEuNi4xLmphciwKIGVoY2FjaGUtMS4yLjMuamFyLAogaGliZXJuYXRl LWFubm90YXRp
b25zLmphciwKIGhpYmVybmF0ZS1jb21tb25zLWFubm90YXRpb25zLmphciwK IGhpYmVybmF0
ZS1lbnRpdHltYW5hZ2VyLmphciwKIGhpYmVybmF0ZTMuamFyLAogaHNxbGRi LmphciwKIGph
dmFzc2lzdC0zLjkuR0EuamFyLAogamF2YXgucGVyc2lzdGVuY2VfMS45OS4w LmphciwKIGp0
YS0xLjEuamFyLAogbXlzcWwtY29ubmVjdG9yLWphdmEtNS4xLjYtYmluLmph ciwKIHNsZjRq
LWFwaS0xLjUuOC5qYXIsCiBzbGY0ai1ub3AtMS41LjguamFyLAogamF2YXNz aXN0LTMuOS4w
LkdBLmphciwKIGxvZzRqLTEuMi44LmphciwKIHNsZjRqLWxvZzRqMTItMS41 LjguamFyCg==
--------------090802060802050702000206
Content-Type: text/plain;
name="build.properties"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="build.properties"
YmluLmluY2x1ZGVzID0gTUVUQS1JTkYvLFwKICAgICAgICAgICAgICAgcmVh ZG1lLnR4dCxc
CiAgICAgICAgICAgICAgIGFudGxyLTIuNy42LmphcixcCiAgICAgICAgICAg ICAgIGhpYmVy
bmF0ZS1hbm5vdGF0aW9ucy5qYXIsXAogICAgICAgICAgICAgICBoaWJlcm5h dGUtZW50aXR5
bWFuYWdlci5qYXIsXAogICAgICAgICAgICAgICBjM3AwLTAuOS4xLmphcixc CiAgICAgICAg
ICAgICAgIGVoY2FjaGUtMS4yLjMuamFyLFwKICAgICAgICAgICAgICAgaHNx bGRiLmphcixc
CiAgICAgICAgICAgICAgIGFib3V0Lmh0bWwsXAogICAgICAgICAgICAgICBj b3B5cmlnaHQu
dHh0LFwKICAgICAgICAgICAgICAgZXBsLXYxMC5odG1sLFwKICAgICAgICAg ICAgICAgbGlj
ZW5zZS5odG1sLFwKICAgICAgICAgICAgICAgbW9kZWxpbmczMi5wbmcsXAog ICAgICAgICAg
ICAgICBwbHVnaW4ucHJvcGVydGllcyxcCiAgICAgICAgICAgICAgIG15c3Fs LWNvbm5lY3Rv
ci1qYXZhLTUuMS42LWJpbi5qYXIsXAogICAgICAgICAgICAgICBoaWJlcm5h dGUtY29tbW9u
cy1hbm5vdGF0aW9ucy5qYXIsXAogICAgICAgICAgICAgICBoaWJlcm5hdGUz LmphcixcCiAg
ICAgICAgICAgICAgIGphdmF4LnBlcnNpc3RlbmNlXzEuOTkuMC5qYXIsXAog ICAgICAgICAg
ICAgICBqdGEtMS4xLmphcixcCiAgICAgICAgICAgICAgIHNsZjRqLWFwaS0x LjUuOC5qYXIs
XAogICAgICAgICAgICAgICBzbGY0ai1ub3AtMS41LjguamFyLFwKICAgICAg ICAgICAgICAg
amF2YXNzaXN0LTMuOS4wLkdBLmphcixcCiAgICAgICAgICAgICAgIGNvbW1v bnMtY29sbGVj
dGlvbnMtMy4xLmphcixcCiAgICAgICAgICAgICAgIGRvbTRqLTEuNi4xLmph cixcCiAgICAg
ICAgICAgICAgIGxvZzRqLTEuMi44LmphcixcCiAgICAgICAgICAgICAgIHNs ZjRqLWxvZzRq
MTItMS41LjguamFyCmphcnMuZXh0cmEuY2xhc3NwYXRoID0gYW50bHItMi43 LjYuamFyLFwK
ICAgICAgICAgICAgICAgICAgICAgICBjM3AwLTAuOS4xLmphcixcCiAgICAg ICAgICAgICAg
ICAgICAgICAgY29tbW9ucy1jb2xsZWN0aW9ucy0zLjEuamFyLFwKICAgICAg ICAgICAgICAg
ICAgICAgICBkb200ai0xLjYuMS5qYXIsXAogICAgICAgICAgICAgICAgICAg ICAgIGVoY2Fj
aGUtMS4yLjMuamFyLFwKICAgICAgICAgICAgICAgICAgICAgICBoaWJlcm5h dGUtYW5ub3Rh
dGlvbnMuamFyLFwKICAgICAgICAgICAgICAgICAgICAgICBoaWJlcm5hdGUt Y29tbW9ucy1h
bm5vdGF0aW9ucy5qYXIsXAogICAgICAgICAgICAgICAgICAgICAgIGhpYmVy bmF0ZTMuamFy
LFwKICAgICAgICAgICAgICAgICAgICAgICBoc3FsZGIuamFyLFwKICAgICAg ICAgICAgICAg
ICAgICAgICBqYXZheC5wZXJzaXN0ZW5jZV8xLjk5LjAuamFyLFwKICAgICAg ICAgICAgICAg
ICAgICAgICBqdGEtMS4xLmphcixcCiAgICAgICAgICAgICAgICAgICAgICAg bXlzcWwtY29u
bmVjdG9yLWphdmEtNS4xLjYtYmluLmphcixcCiAgICAgICAgICAgICAgICAg ICAgICAgaGli
ZXJuYXRlLWVudGl0eW1hbmFnZXIuamFyLFwKICAgICAgICAgICAgICAgICAg ICAgICBqYXZh
c3Npc3QtMy45LjAuR0EuamFyLFwKICAgICAgICAgICAgICAgICAgICAgICBz bGY0ai1hcGkt
MS41LjguamFyLFwKICAgICAgICAgICAgICAgICAgICAgICBzbGY0ai1ub3At MS41LjguamFy
CmphdmFjU291cmNlPTEuNQpqYXZhY1RhcmdldD0xLjUK
--------------090802060802050702000206--
|
|
| | | | | | | | | | | | | | | |
Re: GMF & TENEO [message #491151 is a reply to message #491142] |
Tue, 13 October 2009 13:24 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Rafnixx,
When use a mapping file then Teneo does not generate a mapping in-memory anymore. And in your case you generate a
mapping file for mindmap.ecore but not for notation.ecore (the GMF ecore file), also GMF extends ecore so you also need
to generate a mapping file for the Ecore Package.
You can select multiple ecore when manually creating an ecore file. However, it can be easier to do the following:
create a hbdatastore as described in the tutorial (so without using a mapping file and using the annotations.xml),
initialize it and then call dataStore.getMappingXML() to get the hbm mapping and then store this hbm mapping somewhere
and use that as the mapping file. In this way you get a complete mapping file with all the cases covered.
gr. Marti
rafnixx@hushmail.com wrote:
> Hello again,
>
> I want to use a manually generated mapping file. I created the
> hibernate.hbm.xml with right click on mindmap.ecore file. I added
> props.setProperty(PersistenceOptions.USE_MAPPING_FILE,"true "); in the
> StoreController.java, copied the file to
> org.eclipse.gmf.examples.mindmap.rcp.diagram.src and changed the
> build.properties. Whe I try to open an new DB Editor, I got
> org.hibernate.hql.ast.QuerySyntaxException: Diagram is not mapped [from
> Diagram]
> I think the problem is in StoreController.java:
> public static final URI DATABASE_URI =
> URI.createURI("hbxml://?dsname=mindmap&query1=from Map&query2=from
> Diagram");
>
> What should I change?
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: GMF & TENEO [message #492449 is a reply to message #491151] |
Tue, 20 October 2009 13:33 |
No real name Messages: 24 Registered: October 2009 |
Junior Member |
|
|
Hi Martin,
everything works fine with different dbms. The solution for the SQL Server 2005 problem was to delete the line hibernate.dialect=org.hibernate.dialect.SQLServerDialect in teneo.properties. it sounds curious but it works.
In the meantime I build my own MetaModel. In this modell you can creat classes with attributes, methods packages and different relationships. I tried to realise the persistence like your exampel on elver.org (mindmap). I made some changes (f.e.the uri and in the OpenMindmapDBEditor my root element: model) and everything works fine except the generalization. When you make a generalization between classes an save it - no problem. but if you start the Model DB editor again and try to save again (all the same if you made a change or not) than save failed and error: org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [Model#1]
There is no table associations. I think it is a error in the mapping file or do you have a idea?
[Updated on: Tue, 20 October 2009 13:34] Report message to a moderator
|
|
| | | |
Re: GMF & TENEO [message #492889 is a reply to message #492883] |
Thu, 22 October 2009 08:53 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Rafnixx,
Sorry I have not yet had time to debug your issue locally. Yes maybe cascade="all" is to strict, also because
view.element is not a containment association. Instead of removing it completely can you try setting it as follows:
cascade="persist, merge, save-update, evict, replicate, lock, refresh"
(so basically except delete).
gr. Martin
rafnixx@hushmail.com wrote:
> I found the error im my mapping file.
>
> <subclass name="org.eclipse.gmf.runtime.notation.impl.ViewImpl"
> entity-name="View" abstract="true" lazy="false" extends="EModelElement"
> discriminator-value="View">
> <meta attribute="eclassName">View</meta>
> <meta
> attribute="epackage">http://www.eclipse.org/gmf/runtime/1.0.2/notation</meta>
>
> <property name="visible" lazy="false" insert="true"
> update="true" not-null="false" unique="false" type="boolean">
> <column not-null="false" unique="false" name="`visible`"/>
> </property>
> <property name="type" lazy="false" insert="true" update="true"
> not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`type`"/>
> </property>
> <list name="children" lazy="true" cascade="all,delete-orphan">
> <key update="true" foreign-key="view_children">
> <column name="`view_children_e_id`" not-null="false"
> unique="false"/>
> </key>
> <list-index column="`view_children_idx`"/>
> <one-to-many entity-name="Node"/>
> </list>
> <list name="styles" lazy="true" cascade="all,delete-orphan">
> <key update="true" foreign-key="view_styles">
> <column name="`view_styles_e_id`" not-null="false"
> unique="false"/>
> </key>
> <list-index column="`view_styles_idx`"/>
> <one-to-many entity-name="Style"/>
> </list>
> <any id-type="long" meta-type="string" name="element"
> cascade="all">
> <column not-null="false" unique="false" name="`element_type`"/>
> <column not-null="false" unique="false" name="`element_id`"/>
> </any>
> </subclass>
>
> The solution was to delete the cascade="all"
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| | | | | | |
Goto Forum:
Current Time: Thu Sep 26 17:00:53 GMT 2024
Powered by FUDForum. Page generated in 0.07889 seconds
|