Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Teneo : Problem with Library Editor Tutorial
Teneo : Problem with Library Editor Tutorial [message #51378] Thu, 21 September 2006 08:36 Go to next message
Eclipse UserFriend
Originally posted by: nrobin.irisa.fr

Hi Martin,

We wanted to switch our application, that was working fine with Elver
Store, to Teneo. We experienced problems ("NoClassDefFound" errors
loading Dom4J classes) so we decided to return to the Library Editor
Tutorial. And it doesn't seem to work with us. The EMF part of the
tutorial is working fine but when we add the Teneo code, we're having
this error message :

"Problem Opening Wizard"
"The selected wizard could not be started.
Reason:
Plug-in library.editor was unable to load class
org.eclipse.example.library.presentation.LibraryModelWizard"

And here is the stack trace we got from catching the exception :

"org.hibernate.MappingException: Could not determine type for:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
for columns: [org.hibernate.mapping.Column(econtainer_class),
org.hibernate.mapping.Column(e_container)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
at org.hibernate.mapping.Property.isValid(Property.java:185)
at
org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:399)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
at
org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:119)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
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:242)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
at
org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
at
org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
at
org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:751)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)"

We're using the Teneo version from the update site (0.7.5) and we
created a separated Hibernate plug-in with version 3.2.0 cr3.
We also have Eclipse 3.2.0, EMF 2.2.0 and a JDK 1.5.0_04.

Thanks for your help,

Nicolas ROBIN & Benoît LAMARCHE
Re: Teneo : Problem with Library Editor Tutorial [message #51588 is a reply to message #51378] Thu, 21 September 2006 14:51 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Nicolas,
My guess is that this is related to dependencies which are not resolved. In the hibernate plugin did
you export all (is the savest) hibernate java packages?
Did you check the reexport property of the dependency of the hibernate plugin in the model plugin?

gr. Martin

Nicolas Robin wrote:
> Hi Martin,
>
> We wanted to switch our application, that was working fine with Elver
> Store, to Teneo. We experienced problems ("NoClassDefFound" errors
> loading Dom4J classes) so we decided to return to the Library Editor
> Tutorial. And it doesn't seem to work with us. The EMF part of the
> tutorial is working fine but when we add the Teneo code, we're having
> this error message :
>
> "Problem Opening Wizard"
> "The selected wizard could not be started.
> Reason:
> Plug-in library.editor was unable to load class
> org.eclipse.example.library.presentation.LibraryModelWizard"
>
> And here is the stack trace we got from catching the exception :
>
> "org.hibernate.MappingException: Could not determine type for:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
> for columns: [org.hibernate.mapping.Column(econtainer_class),
> org.hibernate.mapping.Column(e_container)]
> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
> at org.hibernate.mapping.Property.isValid(Property.java:185)
> at
> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:399)
> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
> at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>
> at
> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:119)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>
> 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:242)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>
> at
> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>
> at
> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>
> at
> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:751)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
> at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
> at org.eclipse.jface.window.Window.open(Window.java:796)
> at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>
> We're using the Teneo version from the update site (0.7.5) and we
> created a separated Hibernate plug-in with version 3.2.0 cr3.
> We also have Eclipse 3.2.0, EMF 2.2.0 and a JDK 1.5.0_04.
>
> Thanks for your help,
>
> Nicolas ROBIN & Benoît LAMARCHE


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #51818 is a reply to message #51588] Fri, 22 September 2006 08:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nrobin.irisa.fr

Hi Martin,

Thanks for your answer. We've restarted the Library Editor Tutorial from
scratch, in a new workspace and created a new Hibernate plug-in. We're
having the same error but a different stack trace.

In our Hibernate plug-in, we've added the hibernate3.jar and all the
jars that were in the "lib" directory, and we've exported each of them.
The reexport properties of the Hibernate and Teneo plug-ins dependencies
in the model plug-in are set. The "org/hibernate/mapping/Value" class
does exist in the hibernate jar. I don't understand what we did wrong.

Here is the new stack trace :

"java.lang.NoClassDefFoundError: org/hibernate/mapping/Value
at
org.eclipse.emf.teneo.hibernate.HbHelper$1.createHbDataStore (HbHelper.java:56)
at
org.eclipse.emf.teneo.hibernate.HbHelper.createRegisterDataS tore(HbHelper.java:150)
at
org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:117)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
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:242)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
at
org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
at
org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
at
org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
at
org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
at
org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
at
org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
at
org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
at
org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)"

Thanks for your time

Nicolas ROBIN & Benoît LAMARCHE

Martin Taal wrote :
> Hi Nicolas,
> My guess is that this is related to dependencies which are not resolved.
> In the hibernate plugin did you export all (is the savest) hibernate
> java packages?
> Did you check the reexport property of the dependency of the hibernate
> plugin in the model plugin?
>
> gr. Martin
>
> Nicolas Robin wrote:
>
>> Hi Martin,
>>
>> We wanted to switch our application, that was working fine with Elver
>> Store, to Teneo. We experienced problems ("NoClassDefFound" errors
>> loading Dom4J classes) so we decided to return to the Library Editor
>> Tutorial. And it doesn't seem to work with us. The EMF part of the
>> tutorial is working fine but when we add the Teneo code, we're having
>> this error message :
>>
>> "Problem Opening Wizard"
>> "The selected wizard could not be started.
>> Reason:
>> Plug-in library.editor was unable to load class
>> org.eclipse.example.library.presentation.LibraryModelWizard"
>>
>> And here is the stack trace we got from catching the exception :
>>
>> "org.hibernate.MappingException: Could not determine type for:
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
>> for columns: [org.hibernate.mapping.Column(econtainer_class),
>> org.hibernate.mapping.Column(e_container)]
>> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
>> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
>> at org.hibernate.mapping.Property.isValid(Property.java:185)
>> at
>> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:399)
>> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
>> at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
>> at
>> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>>
>> at
>> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>>
>> at
>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>>
>> at
>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:119)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>
>> at
>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>
>> at
>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>
>> at
>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>
>> 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:242)
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>
>> at
>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>
>> at
>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>
>> at
>> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:751)
>> at
>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
>>
>> at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
>> at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>> at org.eclipse.jface.window.Window.open(Window.java:796)
>> at
>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>> at
>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>> at
>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>
>> We're using the Teneo version from the update site (0.7.5) and we
>> created a separated Hibernate plug-in with version 3.2.0 cr3.
>> We also have Eclipse 3.2.0, EMF 2.2.0 and a JDK 1.5.0_04.
>>
>> Thanks for your help,
>>
>> Nicolas ROBIN & Benoît LAMARCHE
>
>
>
Re: Teneo : Problem with Library Editor Tutorial [message #51871 is a reply to message #51818] Fri, 22 September 2006 11:14 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Nicolas,
When you add the import statement:
import org.hibernate.mapping.Value;

to the class: org.eclipse.example.library.presentation.LibraryEditorPlugin .
Does the compiler complain?

If the compiler complains, can you then check if the hibernate packages are exported in the runtime
tab of the hibernate plugin Manifest.MF?

Also the hibernate plugin must have this in the manifest.mf:
Eclipse-BuddyPolicy: dependent
Another eclipse-buddypolicy can work also. Although this is not related to this issue.

gr. Martin


Nicolas Robin wrote:
> Hi Martin,
>
> Thanks for your answer. We've restarted the Library Editor Tutorial from
> scratch, in a new workspace and created a new Hibernate plug-in. We're
> having the same error but a different stack trace.
>
> In our Hibernate plug-in, we've added the hibernate3.jar and all the
> jars that were in the "lib" directory, and we've exported each of them.
> The reexport properties of the Hibernate and Teneo plug-ins dependencies
> in the model plug-in are set. The "org/hibernate/mapping/Value" class
> does exist in the hibernate jar. I don't understand what we did wrong.
>
> Here is the new stack trace :
>
> "java.lang.NoClassDefFoundError: org/hibernate/mapping/Value
> at
> org.eclipse.emf.teneo.hibernate.HbHelper$1.createHbDataStore (HbHelper.java:56)
>
> at
> org.eclipse.emf.teneo.hibernate.HbHelper.createRegisterDataS tore(HbHelper.java:150)
>
> at
> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:117)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>
> 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:242)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>
> at
> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>
> at
> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>
> at
> org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
>
> at
> org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
>
> at
> org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
>
> at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
> at org.eclipse.jface.window.Window.open(Window.java:796)
> at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>
> 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.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>
> Thanks for your time
>
> Nicolas ROBIN & Benoît LAMARCHE
>
> Martin Taal wrote :
>> Hi Nicolas,
>> My guess is that this is related to dependencies which are not
>> resolved. In the hibernate plugin did you export all (is the savest)
>> hibernate java packages?
>> Did you check the reexport property of the dependency of the hibernate
>> plugin in the model plugin?
>>
>> gr. Martin
>>
>> Nicolas Robin wrote:
>>
>>> Hi Martin,
>>>
>>> We wanted to switch our application, that was working fine with Elver
>>> Store, to Teneo. We experienced problems ("NoClassDefFound" errors
>>> loading Dom4J classes) so we decided to return to the Library Editor
>>> Tutorial. And it doesn't seem to work with us. The EMF part of the
>>> tutorial is working fine but when we add the Teneo code, we're having
>>> this error message :
>>>
>>> "Problem Opening Wizard"
>>> "The selected wizard could not be started.
>>> Reason:
>>> Plug-in library.editor was unable to load class
>>> org.eclipse.example.library.presentation.LibraryModelWizard"
>>>
>>> And here is the stack trace we got from catching the exception :
>>>
>>> "org.hibernate.MappingException: Could not determine type for:
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
>>> for columns: [org.hibernate.mapping.Column(econtainer_class),
>>> org.hibernate.mapping.Column(e_container)]
>>> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
>>> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
>>> at org.hibernate.mapping.Property.isValid(Property.java:185)
>>> at
>>> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:399)
>>> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
>>> at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
>>> at
>>> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>>>
>>> at
>>> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>>>
>>> at
>>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>>>
>>> at
>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:119)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>
>>> at
>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>
>>> at
>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>
>>> at
>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>
>>> 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:242)
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>
>>> at
>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>
>>> at
>>> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:751)
>>> at
>>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
>>>
>>> at
>>> org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
>>> at
>>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>> at
>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>> at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at
>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>> at
>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:585)
>>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>
>>> We're using the Teneo version from the update site (0.7.5) and we
>>> created a separated Hibernate plug-in with version 3.2.0 cr3.
>>> We also have Eclipse 3.2.0, EMF 2.2.0 and a JDK 1.5.0_04.
>>>
>>> Thanks for your help,
>>>
>>> Nicolas ROBIN & Benoît LAMARCHE
>>
>>
>>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #51899 is a reply to message #51871] Fri, 22 September 2006 11:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nrobin.irisa.fr

When we add the import statement, there's no error. We had forgotten to
put the "Eclipse-BuddyPolicy: dependent" but it didn't change anything.
We still have the same error and stack trace.

Thanks for trying to help

Nicolas ROBIN & Benoît LAMARCHE

Martin Taal wrote :
> Hi Nicolas,
> When you add the import statement:
> import org.hibernate.mapping.Value;
>
> to the class: org.eclipse.example.library.presentation.LibraryEditorPlugin .
> Does the compiler complain?
>
> If the compiler complains, can you then check if the hibernate packages
> are exported in the runtime tab of the hibernate plugin Manifest.MF?
>
> Also the hibernate plugin must have this in the manifest.mf:
> Eclipse-BuddyPolicy: dependent
> Another eclipse-buddypolicy can work also. Although this is not related
> to this issue.
>
> gr. Martin
>
>
> Nicolas Robin wrote:
>
>> Hi Martin,
>>
>> Thanks for your answer. We've restarted the Library Editor Tutorial
>> from scratch, in a new workspace and created a new Hibernate plug-in.
>> We're having the same error but a different stack trace.
>>
>> In our Hibernate plug-in, we've added the hibernate3.jar and all the
>> jars that were in the "lib" directory, and we've exported each of
>> them. The reexport properties of the Hibernate and Teneo plug-ins
>> dependencies in the model plug-in are set. The
>> "org/hibernate/mapping/Value" class does exist in the hibernate jar. I
>> don't understand what we did wrong.
>>
>> Here is the new stack trace :
>>
>> "java.lang.NoClassDefFoundError: org/hibernate/mapping/Value
>> at
>> org.eclipse.emf.teneo.hibernate.HbHelper$1.createHbDataStore (HbHelper.java:56)
>>
>> at
>> org.eclipse.emf.teneo.hibernate.HbHelper.createRegisterDataS tore(HbHelper.java:150)
>>
>> at
>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:117)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>
>> at
>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>
>> at
>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>
>> at
>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>
>> 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:242)
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>
>> at
>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>
>> at
>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>
>> at
>> org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
>>
>> at
>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
>>
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
>> at
>> org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
>>
>> at
>> org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
>>
>> at
>> org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
>> at
>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>> at org.eclipse.jface.window.Window.open(Window.java:796)
>> at
>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>> at
>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>> at
>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>
>> 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.invokeFramework(Main.java:336 )
>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>
>> Thanks for your time
>>
>> Nicolas ROBIN & Benoît LAMARCHE
>>
>> Martin Taal wrote :
>>
>>> Hi Nicolas,
>>> My guess is that this is related to dependencies which are not
>>> resolved. In the hibernate plugin did you export all (is the savest)
>>> hibernate java packages?
>>> Did you check the reexport property of the dependency of the
>>> hibernate plugin in the model plugin?
>>>
>>> gr. Martin
>>>
>>> Nicolas Robin wrote:
>>>
>>>> Hi Martin,
>>>>
>>>> We wanted to switch our application, that was working fine with
>>>> Elver Store, to Teneo. We experienced problems ("NoClassDefFound"
>>>> errors loading Dom4J classes) so we decided to return to the Library
>>>> Editor Tutorial. And it doesn't seem to work with us. The EMF part
>>>> of the tutorial is working fine but when we add the Teneo code,
>>>> we're having this error message :
>>>>
>>>> "Problem Opening Wizard"
>>>> "The selected wizard could not be started.
>>>> Reason:
>>>> Plug-in library.editor was unable to load class
>>>> org.eclipse.example.library.presentation.LibraryModelWizard"
>>>>
>>>> And here is the stack trace we got from catching the exception :
>>>>
>>>> "org.hibernate.MappingException: Could not determine type for:
>>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
>>>> for columns: [org.hibernate.mapping.Column(econtainer_class),
>>>> org.hibernate.mapping.Column(e_container)]
>>>> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
>>>> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
>>>> at org.hibernate.mapping.Property.isValid(Property.java:185)
>>>> at
>>>> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:399)
>>>>
>>>> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
>>>> at
>>>> org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
>>>> at
>>>> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>>>>
>>>> at
>>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:119)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>>
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>>
>>>> at
>>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>>
>>>> at
>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>>
>>>> at
>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>>
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>>
>>>> at
>>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>>
>>>> at
>>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>>
>>>> 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:242)
>>>> at
>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>>
>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>>
>>>> at
>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>>
>>>> at
>>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>>
>>>> at
>>>> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:751)
>>>>
>>>> at
>>>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
>>>>
>>>> at
>>>> org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
>>>> at
>>>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
>>>>
>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>> at
>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>> at
>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>>> at
>>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>>
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>>
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>>
>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>> at
>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>> at
>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>> at
>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>>> at
>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>>
>>>> at
>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>> at
>>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>>> at
>>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>>
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>>
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>>
>>>> at java.lang.reflect.Method.invoke(Method.java:585)
>>>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>>
>>>> We're using the Teneo version from the update site (0.7.5) and we
>>>> created a separated Hibernate plug-in with version 3.2.0 cr3.
>>>> We also have Eclipse 3.2.0, EMF 2.2.0 and a JDK 1.5.0_04.
>>>>
>>>> Thanks for your help,
>>>>
>>>> Nicolas ROBIN & Benoît LAMARCHE
>>>
>>>
>>>
>>>
>>
>
>
Re: Teneo : Problem with Library Editor Tutorial [message #51928 is a reply to message #51899] Fri, 22 September 2006 12:07 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Nicolas,
Okay, can you upload a screendump of the jars in your hibernate plugin as eclipse display it?

Can you comment out the teneo part in the editorplugin and just try some basic hibernate stuff such
as create a configuration and a SessionFactory? To see if that also fails.

gr. Martin

Nicolas Robin wrote:
> When we add the import statement, there's no error. We had forgotten to
> put the "Eclipse-BuddyPolicy: dependent" but it didn't change anything.
> We still have the same error and stack trace.
>
> Thanks for trying to help
>
> Nicolas ROBIN & Benoît LAMARCHE
>
> Martin Taal wrote :
>> Hi Nicolas,
>> When you add the import statement:
>> import org.hibernate.mapping.Value;
>>
>> to the class:
>> org.eclipse.example.library.presentation.LibraryEditorPlugin .
>> Does the compiler complain?
>>
>> If the compiler complains, can you then check if the hibernate
>> packages are exported in the runtime tab of the hibernate plugin
>> Manifest.MF?
>>
>> Also the hibernate plugin must have this in the manifest.mf:
>> Eclipse-BuddyPolicy: dependent
>> Another eclipse-buddypolicy can work also. Although this is not
>> related to this issue.
>>
>> gr. Martin
>>
>>
>> Nicolas Robin wrote:
>>
>>> Hi Martin,
>>>
>>> Thanks for your answer. We've restarted the Library Editor Tutorial
>>> from scratch, in a new workspace and created a new Hibernate plug-in.
>>> We're having the same error but a different stack trace.
>>>
>>> In our Hibernate plug-in, we've added the hibernate3.jar and all the
>>> jars that were in the "lib" directory, and we've exported each of
>>> them. The reexport properties of the Hibernate and Teneo plug-ins
>>> dependencies in the model plug-in are set. The
>>> "org/hibernate/mapping/Value" class does exist in the hibernate jar.
>>> I don't understand what we did wrong.
>>>
>>> Here is the new stack trace :
>>>
>>> "java.lang.NoClassDefFoundError: org/hibernate/mapping/Value
>>> at
>>> org.eclipse.emf.teneo.hibernate.HbHelper$1.createHbDataStore (HbHelper.java:56)
>>>
>>> at
>>> org.eclipse.emf.teneo.hibernate.HbHelper.createRegisterDataS tore(HbHelper.java:150)
>>>
>>> at
>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:117)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>
>>> at
>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>
>>> at
>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>
>>> at
>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>
>>> 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:242)
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>
>>> at
>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
>>>
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
>>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
>>>
>>> at
>>> org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
>>>
>>> at
>>> org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
>>>
>>> at
>>> org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
>>> at
>>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>> at
>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>> at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at
>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>> at
>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>
>>> 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.invokeFramework(Main.java:336 )
>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>
>>> Thanks for your time
>>>
>>> Nicolas ROBIN & Benoît LAMARCHE
>>>
>>> Martin Taal wrote :
>>>
>>>> Hi Nicolas,
>>>> My guess is that this is related to dependencies which are not
>>>> resolved. In the hibernate plugin did you export all (is the savest)
>>>> hibernate java packages?
>>>> Did you check the reexport property of the dependency of the
>>>> hibernate plugin in the model plugin?
>>>>
>>>> gr. Martin
>>>>
>>>> Nicolas Robin wrote:
>>>>
>>>>> Hi Martin,
>>>>>
>>>>> We wanted to switch our application, that was working fine with
>>>>> Elver Store, to Teneo. We experienced problems ("NoClassDefFound"
>>>>> errors loading Dom4J classes) so we decided to return to the
>>>>> Library Editor Tutorial. And it doesn't seem to work with us. The
>>>>> EMF part of the tutorial is working fine but when we add the Teneo
>>>>> code, we're having this error message :
>>>>>
>>>>> "Problem Opening Wizard"
>>>>> "The selected wizard could not be started.
>>>>> Reason:
>>>>> Plug-in library.editor was unable to load class
>>>>> org.eclipse.example.library.presentation.LibraryModelWizard"
>>>>>
>>>>> And here is the stack trace we got from catching the exception :
>>>>>
>>>>> "org.hibernate.MappingException: Could not determine type for:
>>>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
>>>>> for columns: [org.hibernate.mapping.Column(econtainer_class),
>>>>> org.hibernate.mapping.Column(e_container)]
>>>>> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
>>>>> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
>>>>> at org.hibernate.mapping.Property.isValid(Property.java:185)
>>>>> at
>>>>> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:399)
>>>>>
>>>>> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
>>>>> at
>>>>> org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
>>>>> at
>>>>> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>>>>>
>>>>> at
>>>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:119)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>>>
>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>>>
>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>>>
>>>>> at
>>>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>>>
>>>>> at
>>>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>>>
>>>>> 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:242)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>>>
>>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:751)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
>>>>> at
>>>>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>>>> at
>>>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>> at
>>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>>>> at
>>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>>> at
>>>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>>>> at
>>>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>>>
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>>>
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>>>
>>>>> at java.lang.reflect.Method.invoke(Method.java:585)
>>>>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>>>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>>>
>>>>> We're using the Teneo version from the update site (0.7.5) and we
>>>>> created a separated Hibernate plug-in with version 3.2.0 cr3.
>>>>> We also have Eclipse 3.2.0, EMF 2.2.0 and a JDK 1.5.0_04.
>>>>>
>>>>> Thanks for your help,
>>>>>
>>>>> Nicolas ROBIN & Benoît LAMARCHE
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #52115 is a reply to message #51928] Fri, 22 September 2006 13:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nrobin.irisa.fr

We've tried to comment out all the teneo part and we only left this line
in the start() function : "Configuration cfg = new Configuration();". It
failed. I guess there's really a problem with our Hibernate plug-in.

Here is the screen dump (I hope this is what you wanted) :
http://www.onetwothreefour.info/screendump.gif

Nicolas ROBIN & Benoît LAMARCHE



Martin Taal wrote :
> Hi Nicolas,
> Okay, can you upload a screendump of the jars in your hibernate plugin
> as eclipse display it?
>
> Can you comment out the teneo part in the editorplugin and just try some
> basic hibernate stuff such as create a configuration and a
> SessionFactory? To see if that also fails.
>
> gr. Martin
>
> Nicolas Robin wrote:
>
>> When we add the import statement, there's no error. We had forgotten
>> to put the "Eclipse-BuddyPolicy: dependent" but it didn't change
>> anything.
>> We still have the same error and stack trace.
>>
>> Thanks for trying to help
>>
>> Nicolas ROBIN & Benoît LAMARCHE
>>
>> Martin Taal wrote :
>>
>>> Hi Nicolas,
>>> When you add the import statement:
>>> import org.hibernate.mapping.Value;
>>>
>>> to the class:
>>> org.eclipse.example.library.presentation.LibraryEditorPlugin .
>>> Does the compiler complain?
>>>
>>> If the compiler complains, can you then check if the hibernate
>>> packages are exported in the runtime tab of the hibernate plugin
>>> Manifest.MF?
>>>
>>> Also the hibernate plugin must have this in the manifest.mf:
>>> Eclipse-BuddyPolicy: dependent
>>> Another eclipse-buddypolicy can work also. Although this is not
>>> related to this issue.
>>>
>>> gr. Martin
>>>
>>>
>>> Nicolas Robin wrote:
>>>
>>>> Hi Martin,
>>>>
>>>> Thanks for your answer. We've restarted the Library Editor Tutorial
>>>> from scratch, in a new workspace and created a new Hibernate
>>>> plug-in. We're having the same error but a different stack trace.
>>>>
>>>> In our Hibernate plug-in, we've added the hibernate3.jar and all the
>>>> jars that were in the "lib" directory, and we've exported each of
>>>> them. The reexport properties of the Hibernate and Teneo plug-ins
>>>> dependencies in the model plug-in are set. The
>>>> "org/hibernate/mapping/Value" class does exist in the hibernate jar.
>>>> I don't understand what we did wrong.
>>>>
>>>> Here is the new stack trace :
>>>>
>>>> "java.lang.NoClassDefFoundError: org/hibernate/mapping/Value
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.HbHelper$1.createHbDataStore (HbHelper.java:56)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.HbHelper.createRegisterDataS tore(HbHelper.java:150)
>>>>
>>>> at
>>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:117)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>>
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>>
>>>> at
>>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>>
>>>> at
>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>>
>>>> at
>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>>
>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>>
>>>> at
>>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>>
>>>> at
>>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>>
>>>> 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:242)
>>>> at
>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>>
>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>>
>>>> at
>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>>
>>>> at
>>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
>>>>
>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
>>>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
>>>>
>>>> at
>>>> org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
>>>>
>>>> at
>>>> org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
>>>> at
>>>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
>>>>
>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>> at
>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>> at
>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>>> at
>>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>>
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>>
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>>
>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>> at
>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>> at
>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>> at
>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>>> at
>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>>
>>>> at
>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>> at
>>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>>> at
>>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>>
>>>> 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.invokeFramework(Main.java:336 )
>>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>>
>>>> Thanks for your time
>>>>
>>>> Nicolas ROBIN & Benoît LAMARCHE
>>>>
>>>> Martin Taal wrote :
>>>>
>>>>> Hi Nicolas,
>>>>> My guess is that this is related to dependencies which are not
>>>>> resolved. In the hibernate plugin did you export all (is the
>>>>> savest) hibernate java packages?
>>>>> Did you check the reexport property of the dependency of the
>>>>> hibernate plugin in the model plugin?
>>>>>
>>>>> gr. Martin
>>>>>
>>>>> Nicolas Robin wrote:
>>>>>
>>>>>> Hi Martin,
>>>>>>
>>>>>> We wanted to switch our application, that was working fine with
>>>>>> Elver Store, to Teneo. We experienced problems ("NoClassDefFound"
>>>>>> errors loading Dom4J classes) so we decided to return to the
>>>>>> Library Editor Tutorial. And it doesn't seem to work with us. The
>>>>>> EMF part of the tutorial is working fine but when we add the Teneo
>>>>>> code, we're having this error message :
>>>>>>
>>>>>> "Problem Opening Wizard"
>>>>>> "The selected wizard could not be started.
>>>>>> Reason:
>>>>>> Plug-in library.editor was unable to load class
>>>>>> org.eclipse.example.library.presentation.LibraryModelWizard"
>>>>>>
>>>>>> And here is the stack trace we got from catching the exception :
>>>>>>
>>>>>> "org.hibernate.MappingException: Could not determine type for:
>>>>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
>>>>>> for columns: [org.hibernate.mapping.Column(econtainer_class),
>>>>>> org.hibernate.mapping.Column(e_container)]
>>>>>> at
>>>>>> org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
>>>>>> at
>>>>>> org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
>>>>>> at org.hibernate.mapping.Property.isValid(Property.java:185)
>>>>>> at
>>>>>> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:399)
>>>>>>
>>>>>> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
>>>>>> at
>>>>>> org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
>>>>>> at
>>>>>> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:119)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>>>>
>>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>>>>
>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>>>>
>>>>>> 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:242)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>>> at
>>>>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>>>>
>>>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>>>> at
>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>>> at
>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:751)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
>>>>>> at
>>>>>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>>> at
>>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>>> at
>>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>>>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>>>>> at
>>>>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>>>> at
>>>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>>> at
>>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>>> at
>>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>>> at
>>>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>>>>> at
>>>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>>>> at
>>>>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>>>>
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>>>>
>>>>>> at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>>>>
>>>>>> at java.lang.reflect.Method.invoke(Method.java:585)
>>>>>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>>>>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>>>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>>>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>>>>
>>>>>> We're using the Teneo version from the update site (0.7.5) and we
>>>>>> created a separated Hibernate plug-in with version 3.2.0 cr3.
>>>>>> We also have Eclipse 3.2.0, EMF 2.2.0 and a JDK 1.5.0_04.
>>>>>>
>>>>>> Thanks for your help,
>>>>>>
>>>>>> Nicolas ROBIN & Benoît LAMARCHE
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>
>
Re: Teneo : Problem with Library Editor Tutorial [message #52168 is a reply to message #52115] Fri, 22 September 2006 14:00 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Nicolas,
You can also try the following: add the hibernate plugin directly to the edit plugin dependency (and
remove it from the model).
Or copy all the hibernate jars to the edit plugin and add the jars directly to the dependencies.
This is not to nice but maybe helps you to get further and diagnose the issue.

Btw, I will be away in about 30 minutes and will be back on monday evening.

gr. Martin

Nicolas Robin wrote:
> We've tried to comment out all the teneo part and we only left this line
> in the start() function : "Configuration cfg = new Configuration();". It
> failed. I guess there's really a problem with our Hibernate plug-in.
>
> Here is the screen dump (I hope this is what you wanted) :
> http://www.onetwothreefour.info/screendump.gif
>
> Nicolas ROBIN & Benoît LAMARCHE
>
>
>
> Martin Taal wrote :
>> Hi Nicolas,
>> Okay, can you upload a screendump of the jars in your hibernate plugin
>> as eclipse display it?
>>
>> Can you comment out the teneo part in the editorplugin and just try
>> some basic hibernate stuff such as create a configuration and a
>> SessionFactory? To see if that also fails.
>>
>> gr. Martin
>>
>> Nicolas Robin wrote:
>>
>>> When we add the import statement, there's no error. We had forgotten
>>> to put the "Eclipse-BuddyPolicy: dependent" but it didn't change
>>> anything.
>>> We still have the same error and stack trace.
>>>
>>> Thanks for trying to help
>>>
>>> Nicolas ROBIN & Benoît LAMARCHE
>>>
>>> Martin Taal wrote :
>>>
>>>> Hi Nicolas,
>>>> When you add the import statement:
>>>> import org.hibernate.mapping.Value;
>>>>
>>>> to the class:
>>>> org.eclipse.example.library.presentation.LibraryEditorPlugin .
>>>> Does the compiler complain?
>>>>
>>>> If the compiler complains, can you then check if the hibernate
>>>> packages are exported in the runtime tab of the hibernate plugin
>>>> Manifest.MF?
>>>>
>>>> Also the hibernate plugin must have this in the manifest.mf:
>>>> Eclipse-BuddyPolicy: dependent
>>>> Another eclipse-buddypolicy can work also. Although this is not
>>>> related to this issue.
>>>>
>>>> gr. Martin
>>>>
>>>>
>>>> Nicolas Robin wrote:
>>>>
>>>>> Hi Martin,
>>>>>
>>>>> Thanks for your answer. We've restarted the Library Editor Tutorial
>>>>> from scratch, in a new workspace and created a new Hibernate
>>>>> plug-in. We're having the same error but a different stack trace.
>>>>>
>>>>> In our Hibernate plug-in, we've added the hibernate3.jar and all
>>>>> the jars that were in the "lib" directory, and we've exported each
>>>>> of them. The reexport properties of the Hibernate and Teneo
>>>>> plug-ins dependencies in the model plug-in are set. The
>>>>> "org/hibernate/mapping/Value" class does exist in the hibernate
>>>>> jar. I don't understand what we did wrong.
>>>>>
>>>>> Here is the new stack trace :
>>>>>
>>>>> "java.lang.NoClassDefFoundError: org/hibernate/mapping/Value
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.HbHelper$1.createHbDataStore (HbHelper.java:56)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.HbHelper.createRegisterDataS tore(HbHelper.java:150)
>>>>>
>>>>> at
>>>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:117)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>>>
>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>>>
>>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>>>
>>>>> at
>>>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>>>
>>>>> at
>>>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>>>
>>>>> 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:242)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>>>
>>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
>>>>>
>>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
>>>>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
>>>>> at
>>>>> org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
>>>>> at
>>>>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>>>> at
>>>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>> at
>>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>>>> at
>>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>>> at
>>>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>>>> at
>>>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>>>
>>>>> 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.invokeFramework(Main.java:336 )
>>>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>>>
>>>>> Thanks for your time
>>>>>
>>>>> Nicolas ROBIN & Benoît LAMARCHE
>>>>>
>>>>> Martin Taal wrote :
>>>>>
>>>>>> Hi Nicolas,
>>>>>> My guess is that this is related to dependencies which are not
>>>>>> resolved. In the hibernate plugin did you export all (is the
>>>>>> savest) hibernate java packages?
>>>>>> Did you check the reexport property of the dependency of the
>>>>>> hibernate plugin in the model plugin?
>>>>>>
>>>>>> gr. Martin
>>>>>>
>>>>>> Nicolas Robin wrote:
>>>>>>
>>>>>>> Hi Martin,
>>>>>>>
>>>>>>> We wanted to switch our application, that was working fine with
>>>>>>> Elver Store, to Teneo. We experienced problems ("NoClassDefFound"
>>>>>>> errors loading Dom4J classes) so we decided to return to the
>>>>>>> Library Editor Tutorial. And it doesn't seem to work with us. The
>>>>>>> EMF part of the tutorial is working fine but when we add the
>>>>>>> Teneo code, we're having this error message :
>>>>>>>
>>>>>>> "Problem Opening Wizard"
>>>>>>> "The selected wizard could not be started.
>>>>>>> Reason:
>>>>>>> Plug-in library.editor was unable to load class
>>>>>>> org.eclipse.example.library.presentation.LibraryModelWizard"
>>>>>>>
>>>>>>> And here is the stack trace we got from catching the exception :
>>>>>>>
>>>>>>> "org.hibernate.MappingException: Could not determine type for:
>>>>>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
>>>>>>> for columns: [org.hibernate.mapping.Column(econtainer_class),
>>>>>>> org.hibernate.mapping.Column(e_container)]
>>>>>>> at
>>>>>>> org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
>>>>>>> at
>>>>>>> org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
>>>>>>> at org.hibernate.mapping.Property.isValid(Property.java:185)
>>>>>>> at
>>>>>>> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:399)
>>>>>>>
>>>>>>> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
>>>>>>> at
>>>>>>> org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
>>>>>>> at
>>>>>>> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:119)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>>>>>
>>>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>>>>>
>>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>>>>>
>>>>>>> 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:242)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>>>>>
>>>>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:751)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>>>>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>>>>>> at
>>>>>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>>>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>>>>> at
>>>>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>>>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>>>>>
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>>>>>
>>>>>>> at
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>>>>>
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>>>>>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>>>>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>>>>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>>>>>
>>>>>>> We're using the Teneo version from the update site (0.7.5) and we
>>>>>>> created a separated Hibernate plug-in with version 3.2.0 cr3.
>>>>>>> We also have Eclipse 3.2.0, EMF 2.2.0 and a JDK 1.5.0_04.
>>>>>>>
>>>>>>> Thanks for your help,
>>>>>>>
>>>>>>> Nicolas ROBIN & Benoît LAMARCHE
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #57902 is a reply to message #52168] Tue, 17 October 2006 11:06 Go to previous messageGo to next message
Vijayan is currently offline VijayanFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,

I am also facing problems while trying to run the sample Library
application. Please find below the error message that i get.

org.hibernate.MappingException: Could not determine type for:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType, for
columns: [org.hibernate.mapping.Column(econtainer_class),
org.hibernate.mapping.Column(e_container)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
at org.hibernate.mapping.Property.isValid(Property.java:185)
at
org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:395)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
at
org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:130)


I have checked all the teneo dependencies for the reexport option also.
Please let me know on what is the problem.

Regards,
Vijayan
Re: Teneo : Problem with Library Editor Tutorial [message #57927 is a reply to message #57902] Tue, 17 October 2006 11:13 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Vijayan,
Can you check if there is another underlying (or earlier) exception in the trace. My experience is
that this exception is just a signal of another exception.

gr. Martin

Vijayan wrote:
> Hi,
>
> I am also facing problems while trying to run the sample Library
> application. Please find below the error message that i get.
>
> org.hibernate.MappingException: Could not determine type for:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
> for columns: [org.hibernate.mapping.Column(econtainer_class),
> org.hibernate.mapping.Column(e_container)]
> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
> at org.hibernate.mapping.Property.isValid(Property.java:185)
> at
> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:395)
> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
> at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>
> at
> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:130)
>
>
>
> I have checked all the teneo dependencies for the reexport option also.
> Please let me know on what is the problem.
>
> Regards,
> Vijayan
>



--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #58805 is a reply to message #57927] Tue, 24 October 2006 05:42 Go to previous messageGo to next message
Vijayan is currently offline VijayanFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Martin,

I could not see any other exception. Please find below the complete stack
trace.

org.hibernate.MappingException: Could not determine type for:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType, for
columns: [org.hibernate.mapping.Column(econtainer_class),
org.hibernate.mapping.Column(e_container)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
at org.hibernate.mapping.Property.isValid(Property.java:185)
at
org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:395)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
at
org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:130)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
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:242)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
at
org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
at
org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
at
org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
at
org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
at
org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
at
org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
at
org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
at
org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

Regards,
Vijayan
Re: Teneo : Problem with Library Editor Tutorial [message #58855 is a reply to message #58805] Tue, 24 October 2006 05:52 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Vijayan,
Can you post/send me the ecore file? Then I can test myself were it fails.

gr. Martin

Vijayan wrote:
> Hi Martin,
>
> I could not see any other exception. Please find below the complete
> stack trace.
>
> org.hibernate.MappingException: Could not determine type for:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
> for columns: [org.hibernate.mapping.Column(econtainer_class),
> org.hibernate.mapping.Column(e_container)]
> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
> at org.hibernate.mapping.Property.isValid(Property.java:185)
> at
> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:395)
> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
> at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>
> at
> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:130)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>
> 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:242)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>
> at
> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>
> at
> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>
> at
> org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
>
> at
> org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
>
> at
> org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
>
> at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
> at org.eclipse.jface.window.Window.open(Window.java:796)
> at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>
> 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.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
>
> Regards,
> Vijayan
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #58931 is a reply to message #58855] Tue, 24 October 2006 09:08 Go to previous messageGo to next message
Vijayan is currently offline VijayanFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Martin,

Please find the ecore file.

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="library"
nsURI="http://www.example.eclipse.org/Library" nsPrefix="library">
<eClassifiers xsi:type="ecore:EClass" name="Book">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Book"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="title"
unique="false" lowerBound="1"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="title"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="pages"
unique="false" lowerBound="1"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="pages"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="category"
unique="false"
lowerBound="1" eType="#//BookCategory"
defaultValueLiteral="Mystery" unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="category"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="author"
lowerBound="1"
eType="#//Writer" eOpposite="#//Writer/books">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="author"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="BookCategory">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="BookCategory"/>
</eAnnotations>
<eLiterals name="Mystery"/>
<eLiterals name="ScienceFiction" value="1"/>
<eLiterals name="Biography" value="2"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="BookCategoryObject"
instanceClassName="org.eclipse.emf.common.util.Enumerator">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="BookCategory:Object"/>
<details key="baseType" value="BookCategory"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Library">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Library"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
unique="false" lowerBound="1"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="name"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="writers"
upperBound="-1"
eType="#//Writer" containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="writers"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="books"
upperBound="-1"
eType="#//Book" containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="books"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Writer">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Writer"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
unique="false" lowerBound="1"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="name"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="books"
upperBound="-1"
eType="#//Book" eOpposite="#//Book/author">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="books"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
</ecore:EPackage>

Regards,
Vijayan
Re: Teneo : Problem with Library Editor Tutorial [message #58982 is a reply to message #58931] Tue, 24 October 2006 09:50 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Vijayan,
This initializing correctly with me (is the standard library example).

This could be a classloading issue (teneo library is not visible to hibernate library).
I guess that all your hibernate libraries are in a separate plugin? Did you set the
eclipse-buddypolicy of this plugin to dependent? See here:
http://www.elver.org/hibernate/installation.html#Hibernate+L ibraries

Can you try to initialize the datastore outside of the editor, just in a junit test case or
something and then check if it works?

gr. Martin

Vijayan wrote:
> Hi Martin,
>
> Please find the ecore file.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ecore:EPackage xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="library"
> nsURI="http://www.example.eclipse.org/Library" nsPrefix="library">
> <eClassifiers xsi:type="ecore:EClass" name="Book">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="Book"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="title"
> unique="false" lowerBound="1"
> eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="title"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="pages"
> unique="false" lowerBound="1"
> eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="pages"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="category"
> unique="false"
> lowerBound="1" eType="#//BookCategory"
> defaultValueLiteral="Mystery" unsettable="true">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="category"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference" name="author"
> lowerBound="1"
> eType="#//Writer" eOpposite="#//Writer/books">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="author"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EEnum" name="BookCategory">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="BookCategory"/>
> </eAnnotations>
> <eLiterals name="Mystery"/>
> <eLiterals name="ScienceFiction" value="1"/>
> <eLiterals name="Biography" value="2"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EDataType" name="BookCategoryObject"
> instanceClassName="org.eclipse.emf.common.util.Enumerator">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="BookCategory:Object"/>
> <details key="baseType" value="BookCategory"/>
> </eAnnotations>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Library">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="Library"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
> unique="false" lowerBound="1"
> eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="name"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference" name="writers"
> upperBound="-1"
> eType="#//Writer" containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="writers"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference" name="books"
> upperBound="-1"
> eType="#//Book" containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="books"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Writer">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="Writer"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
> unique="false" lowerBound="1"
> eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="name"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference" name="books"
> upperBound="-1"
> eType="#//Book" eOpposite="#//Book/author">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="books"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> </ecore:EPackage>
>
> Regards,
> Vijayan
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #59211 is a reply to message #58982] Wed, 25 October 2006 08:51 Go to previous messageGo to next message
Vijayan is currently offline VijayanFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Martin,

Thanks that problem is solved.

I am getting the following error now.

org.eclipse.emf.teneo.hibernate.HbStoreException: Exception when saving
resource library
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadResource(HibernateResource.java:245)
at
org.eclipse.emf.teneo.resource.StoreResource.load(StoreResou rce.java:236)
at
org.eclipse.emf.teneo.resource.StoreResource.getContents(Sto reResource.java:347)
at
org.eclipse.example.library.presentation.LibraryModelWizard$ 1.execute(LibraryModelWizard.java:214)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1737)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 851)
at
org.eclipse.example.library.presentation.LibraryModelWizard. performFinish(LibraryModelWizard.java:245)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:680)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:355)
at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: org.hibernate.exception.SQLGrammarException: could not execute
query
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
at org.hibernate.loader.Loader.doList(Loader.java:2147)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java :2028)
at org.hibernate.loader.Loader.list(Loader.java:2023)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:3 93)
at
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslat orImpl.java:338)
at
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQuery Plan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadUsingTopClasses(HibernateResource.java:291)
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadFromStore(HibernateResource.java:277)
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadResource(HibernateResource.java:239)
... 47 more
Caused by: java.sql.SQLException: ORA-00942: table or view does not exist

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java: 114)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311 )
at
oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Proto col.java:595)
at
oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStat ement.java:1600)
at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement .java:1758)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(Orac leStatement.java:1805)
at
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(Ora clePreparedStatement.java:322)
at
oracle.jdbc.driver.OraclePreparedStatement.executeQuery(Orac lePreparedStatement.java:280)
at
org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatc her.java:186)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1668)
at org.hibernate.loader.Loader.doQuery(Loader.java:662)
at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2144)
... 57 more

It also shows the warning
WARN main org.hibernate.util.JDBCExceptionReporter - SQL Error: 942,
SQLState: 42000

Regards,
Vijayan
Re: Teneo : Problem with Library Editor Tutorial [message #59262 is a reply to message #59211] Wed, 25 October 2006 15:10 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Vijayan,
The tables are not present in the database, so they are not created by Hibernate. My experience is
that Hibernate will not stop if the database creation fails, the error is shown when you actually
try to use the tables.
Can you check the log why no tables are created (permission issue maybe?)?

Btw, there is a Teneo option to prevent schema update/creation: PersistenceOptions.UPDATE_SCHEMA
But as this is not part of the tutorial I don't think that you set that.

gr. Martin

Vijayan wrote:
> Hi Martin,
>
> Thanks that problem is solved.
> I am getting the following error now.
>
> org.eclipse.emf.teneo.hibernate.HbStoreException: Exception when saving
> resource library
> at
> org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadResource(HibernateResource.java:245)
>
> at
> org.eclipse.emf.teneo.resource.StoreResource.load(StoreResou rce.java:236)
> at
> org.eclipse.emf.teneo.resource.StoreResource.getContents(Sto reResource.java:347)
>
> at
> org.eclipse.example.library.presentation.LibraryModelWizard$ 1.execute(LibraryModelWizard.java:214)
>
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
>
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1737)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
>
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:369)
>
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 851)
> at
> org.eclipse.example.library.presentation.LibraryModelWizard. performFinish(LibraryModelWizard.java:245)
>
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:680)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:355)
> at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
> at org.eclipse.jface.window.Window.open(Window.java:796)
> at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>
> 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.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
> Caused by: org.hibernate.exception.SQLGrammarException: could not
> execute query
> at
> org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
>
> at
> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
>
> at org.hibernate.loader.Loader.doList(Loader.java:2147)
> at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java :2028)
> at org.hibernate.loader.Loader.list(Loader.java:2023)
> at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:3 93)
> at
> org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslat orImpl.java:338)
>
> at
> org.hibernate.engine.query.HQLQueryPlan.performList(HQLQuery Plan.java:172)
> at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
> at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
> at
> org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadUsingTopClasses(HibernateResource.java:291)
>
> at
> org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadFromStore(HibernateResource.java:277)
>
> at
> org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadResource(HibernateResource.java:239)
>
> ... 47 more
> Caused by: java.sql.SQLException: ORA-00942: table or view does not exist
>
> at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java: 114)
> at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
> at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542)
> at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311 )
> at
> oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Proto col.java:595)
> at
> oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStat ement.java:1600)
>
> at
> oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement .java:1758)
> at
> oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(Orac leStatement.java:1805)
>
> at
> oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(Ora clePreparedStatement.java:322)
>
> at
> oracle.jdbc.driver.OraclePreparedStatement.executeQuery(Orac lePreparedStatement.java:280)
>
> at
> org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatc her.java:186)
> at org.hibernate.loader.Loader.getResultSet(Loader.java:1668)
> at org.hibernate.loader.Loader.doQuery(Loader.java:662)
> at
> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:224)
>
> at org.hibernate.loader.Loader.doList(Loader.java:2144)
> ... 57 more
>
> It also shows the warning
> WARN main org.hibernate.util.JDBCExceptionReporter - SQL Error: 942,
> SQLState: 42000
>
> Regards,
> Vijayan
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #59539 is a reply to message #59262] Mon, 30 October 2006 10:40 Go to previous messageGo to next message
Vijayan is currently offline VijayanFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Martin,

Thanks a lot. I dropped the Database schema and recreated, it works fine
now. I am able to create a library, add books and writers. But everytime i
try to change some feature and save i get the following error.

org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
org.eclipse.example.library.impl.BookImpl@805550{platform:/resource/librarySample/My.library#/0/@books.2}
The required feature 'category' of
'org.eclipse.example.library.impl.BookImpl@805550{platform:/resource/librarySample/My.library#/0/@books.2}'
must be set
at
org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:326)
at
org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:270)
at
org.eclipse.example.library.presentation.LibraryEditor$16.ex ecute(LibraryEditor.java:1370)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1737)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:113)

I could not understand why it is not saving the value that was already set
for the category feature when i am trying to change the pages/Author
property of the book.

Also i can see the tables and the values stored in the database, but when
i execute a select query on the table i get an error saying table or view
does not exist.

Regards,
Vijayan
Re: Teneo : Problem with Library Editor Tutorial [message #59586 is a reply to message #59539] Mon, 30 October 2006 11:02 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Vijayan,
Can you try to set the bookcategory to something else than the default value before saving? It looks
similar to this old issue (url can be truncated by end-of-line):
http://www.elver.org/hibernate/troubleshooting.html#Validati on+exception+on+enumerate+properties+when+saving+the+editor+ content

This should be solved in emf 2.2.

gr. Martin

Vijayan wrote:
> Hi Martin,
>
> Thanks a lot. I dropped the Database schema and recreated, it works fine
> now. I am able to create a library, add books and writers. But everytime
> i try to change some feature and save i get the following error.
> org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
> org.eclipse.example.library.impl.BookImpl@805550{platform:/resource/librarySample/My.library#/0/@books.2}
>
> The required feature 'category' of
> 'org.eclipse.example.library.impl.BookImpl@805550{platform:/resource/librarySample/My.library#/0/@books.2}'
> must be set
> at
> org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:326)
>
> at
> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:270)
> at
> org.eclipse.example.library.presentation.LibraryEditor$16.ex ecute(LibraryEditor.java:1370)
>
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
>
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1737)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
>
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:113)
>
>
> I could not understand why it is not saving the value that was already
> set for the category feature when i am trying to change the pages/Author
> property of the book.
> Also i can see the tables and the values stored in the database, but
> when i execute a select query on the table i get an error saying table
> or view does not exist.
> Regards,
> Vijayan
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #59658 is a reply to message #59586] Mon, 30 October 2006 14:07 Go to previous message
Vijayan is currently offline VijayanFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Martin,

It works fine if i change the default value to something else.

Thanks for your help.

Regards,
Vijayan
Re: Teneo : Problem with Library Editor Tutorial [message #591612 is a reply to message #51378] Thu, 21 September 2006 14:51 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Nicolas,
My guess is that this is related to dependencies which are not resolved. In the hibernate plugin did
you export all (is the savest) hibernate java packages?
Did you check the reexport property of the dependency of the hibernate plugin in the model plugin?

gr. Martin

Nicolas Robin wrote:
> Hi Martin,
>
> We wanted to switch our application, that was working fine with Elver
> Store, to Teneo. We experienced problems ("NoClassDefFound" errors
> loading Dom4J classes) so we decided to return to the Library Editor
> Tutorial. And it doesn't seem to work with us. The EMF part of the
> tutorial is working fine but when we add the Teneo code, we're having
> this error message :
>
> "Problem Opening Wizard"
> "The selected wizard could not be started.
> Reason:
> Plug-in library.editor was unable to load class
> org.eclipse.example.library.presentation.LibraryModelWizard"
>
> And here is the stack trace we got from catching the exception :
>
> "org.hibernate.MappingException: Could not determine type for:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
> for columns: [org.hibernate.mapping.Column(econtainer_class),
> org.hibernate.mapping.Column(e_container)]
> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
> at org.hibernate.mapping.Property.isValid(Property.java:185)
> at
> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:399)
> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
> at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>
> at
> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:119)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>
> 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:242)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>
> at
> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>
> at
> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>
> at
> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:751)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
> at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
> at org.eclipse.jface.window.Window.open(Window.java:796)
> at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>
> We're using the Teneo version from the update site (0.7.5) and we
> created a separated Hibernate plug-in with version 3.2.0 cr3.
> We also have Eclipse 3.2.0, EMF 2.2.0 and a JDK 1.5.0_04.
>
> Thanks for your help,
>
> Nicolas ROBIN & Benoît LAMARCHE


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #591700 is a reply to message #51588] Fri, 22 September 2006 08:43 Go to previous message
Eclipse UserFriend
Originally posted by: nrobin.irisa.fr

Hi Martin,

Thanks for your answer. We've restarted the Library Editor Tutorial from
scratch, in a new workspace and created a new Hibernate plug-in. We're
having the same error but a different stack trace.

In our Hibernate plug-in, we've added the hibernate3.jar and all the
jars that were in the "lib" directory, and we've exported each of them.
The reexport properties of the Hibernate and Teneo plug-ins dependencies
in the model plug-in are set. The "org/hibernate/mapping/Value" class
does exist in the hibernate jar. I don't understand what we did wrong.

Here is the new stack trace :

"java.lang.NoClassDefFoundError: org/hibernate/mapping/Value
at
org.eclipse.emf.teneo.hibernate.HbHelper$1.createHbDataStore (HbHelper.java:56)
at
org.eclipse.emf.teneo.hibernate.HbHelper.createRegisterDataS tore(HbHelper.java:150)
at
org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:117)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
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:242)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
at
org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
at
org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
at
org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
at
org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
at
org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
at
org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
at
org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
at
org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)"

Thanks for your time

Nicolas ROBIN & Benoît LAMARCHE

Martin Taal wrote :
> Hi Nicolas,
> My guess is that this is related to dependencies which are not resolved.
> In the hibernate plugin did you export all (is the savest) hibernate
> java packages?
> Did you check the reexport property of the dependency of the hibernate
> plugin in the model plugin?
>
> gr. Martin
>
> Nicolas Robin wrote:
>
>> Hi Martin,
>>
>> We wanted to switch our application, that was working fine with Elver
>> Store, to Teneo. We experienced problems ("NoClassDefFound" errors
>> loading Dom4J classes) so we decided to return to the Library Editor
>> Tutorial. And it doesn't seem to work with us. The EMF part of the
>> tutorial is working fine but when we add the Teneo code, we're having
>> this error message :
>>
>> "Problem Opening Wizard"
>> "The selected wizard could not be started.
>> Reason:
>> Plug-in library.editor was unable to load class
>> org.eclipse.example.library.presentation.LibraryModelWizard"
>>
>> And here is the stack trace we got from catching the exception :
>>
>> "org.hibernate.MappingException: Could not determine type for:
>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
>> for columns: [org.hibernate.mapping.Column(econtainer_class),
>> org.hibernate.mapping.Column(e_container)]
>> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
>> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
>> at org.hibernate.mapping.Property.isValid(Property.java:185)
>> at
>> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:399)
>> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
>> at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
>> at
>> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>>
>> at
>> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>>
>> at
>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>>
>> at
>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:119)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>
>> at
>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>
>> at
>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>
>> at
>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>
>> 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:242)
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>
>> at
>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>
>> at
>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>
>> at
>> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:751)
>> at
>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
>>
>> at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
>> at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>> at org.eclipse.jface.window.Window.open(Window.java:796)
>> at
>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>> at
>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>> at
>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>
>> We're using the Teneo version from the update site (0.7.5) and we
>> created a separated Hibernate plug-in with version 3.2.0 cr3.
>> We also have Eclipse 3.2.0, EMF 2.2.0 and a JDK 1.5.0_04.
>>
>> Thanks for your help,
>>
>> Nicolas ROBIN & Benoît LAMARCHE
>
>
>
Re: Teneo : Problem with Library Editor Tutorial [message #591716 is a reply to message #51818] Fri, 22 September 2006 11:14 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Nicolas,
When you add the import statement:
import org.hibernate.mapping.Value;

to the class: org.eclipse.example.library.presentation.LibraryEditorPlugin .
Does the compiler complain?

If the compiler complains, can you then check if the hibernate packages are exported in the runtime
tab of the hibernate plugin Manifest.MF?

Also the hibernate plugin must have this in the manifest.mf:
Eclipse-BuddyPolicy: dependent
Another eclipse-buddypolicy can work also. Although this is not related to this issue.

gr. Martin


Nicolas Robin wrote:
> Hi Martin,
>
> Thanks for your answer. We've restarted the Library Editor Tutorial from
> scratch, in a new workspace and created a new Hibernate plug-in. We're
> having the same error but a different stack trace.
>
> In our Hibernate plug-in, we've added the hibernate3.jar and all the
> jars that were in the "lib" directory, and we've exported each of them.
> The reexport properties of the Hibernate and Teneo plug-ins dependencies
> in the model plug-in are set. The "org/hibernate/mapping/Value" class
> does exist in the hibernate jar. I don't understand what we did wrong.
>
> Here is the new stack trace :
>
> "java.lang.NoClassDefFoundError: org/hibernate/mapping/Value
> at
> org.eclipse.emf.teneo.hibernate.HbHelper$1.createHbDataStore (HbHelper.java:56)
>
> at
> org.eclipse.emf.teneo.hibernate.HbHelper.createRegisterDataS tore(HbHelper.java:150)
>
> at
> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:117)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>
> 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:242)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>
> at
> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>
> at
> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>
> at
> org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
>
> at
> org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
>
> at
> org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
>
> at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
> at org.eclipse.jface.window.Window.open(Window.java:796)
> at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>
> 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.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>
> Thanks for your time
>
> Nicolas ROBIN & Benoît LAMARCHE
>
> Martin Taal wrote :
>> Hi Nicolas,
>> My guess is that this is related to dependencies which are not
>> resolved. In the hibernate plugin did you export all (is the savest)
>> hibernate java packages?
>> Did you check the reexport property of the dependency of the hibernate
>> plugin in the model plugin?
>>
>> gr. Martin
>>
>> Nicolas Robin wrote:
>>
>>> Hi Martin,
>>>
>>> We wanted to switch our application, that was working fine with Elver
>>> Store, to Teneo. We experienced problems ("NoClassDefFound" errors
>>> loading Dom4J classes) so we decided to return to the Library Editor
>>> Tutorial. And it doesn't seem to work with us. The EMF part of the
>>> tutorial is working fine but when we add the Teneo code, we're having
>>> this error message :
>>>
>>> "Problem Opening Wizard"
>>> "The selected wizard could not be started.
>>> Reason:
>>> Plug-in library.editor was unable to load class
>>> org.eclipse.example.library.presentation.LibraryModelWizard"
>>>
>>> And here is the stack trace we got from catching the exception :
>>>
>>> "org.hibernate.MappingException: Could not determine type for:
>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
>>> for columns: [org.hibernate.mapping.Column(econtainer_class),
>>> org.hibernate.mapping.Column(e_container)]
>>> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
>>> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
>>> at org.hibernate.mapping.Property.isValid(Property.java:185)
>>> at
>>> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:399)
>>> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
>>> at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
>>> at
>>> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>>>
>>> at
>>> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>>>
>>> at
>>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>>>
>>> at
>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:119)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>
>>> at
>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>
>>> at
>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>
>>> at
>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>
>>> 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:242)
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>
>>> at
>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>
>>> at
>>> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:751)
>>> at
>>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
>>>
>>> at
>>> org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
>>> at
>>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>> at
>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>> at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at
>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>> at
>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:585)
>>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>
>>> We're using the Teneo version from the update site (0.7.5) and we
>>> created a separated Hibernate plug-in with version 3.2.0 cr3.
>>> We also have Eclipse 3.2.0, EMF 2.2.0 and a JDK 1.5.0_04.
>>>
>>> Thanks for your help,
>>>
>>> Nicolas ROBIN & Benoît LAMARCHE
>>
>>
>>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #591720 is a reply to message #51871] Fri, 22 September 2006 11:51 Go to previous message
Eclipse UserFriend
Originally posted by: nrobin.irisa.fr

When we add the import statement, there's no error. We had forgotten to
put the "Eclipse-BuddyPolicy: dependent" but it didn't change anything.
We still have the same error and stack trace.

Thanks for trying to help

Nicolas ROBIN & Benoît LAMARCHE

Martin Taal wrote :
> Hi Nicolas,
> When you add the import statement:
> import org.hibernate.mapping.Value;
>
> to the class: org.eclipse.example.library.presentation.LibraryEditorPlugin .
> Does the compiler complain?
>
> If the compiler complains, can you then check if the hibernate packages
> are exported in the runtime tab of the hibernate plugin Manifest.MF?
>
> Also the hibernate plugin must have this in the manifest.mf:
> Eclipse-BuddyPolicy: dependent
> Another eclipse-buddypolicy can work also. Although this is not related
> to this issue.
>
> gr. Martin
>
>
> Nicolas Robin wrote:
>
>> Hi Martin,
>>
>> Thanks for your answer. We've restarted the Library Editor Tutorial
>> from scratch, in a new workspace and created a new Hibernate plug-in.
>> We're having the same error but a different stack trace.
>>
>> In our Hibernate plug-in, we've added the hibernate3.jar and all the
>> jars that were in the "lib" directory, and we've exported each of
>> them. The reexport properties of the Hibernate and Teneo plug-ins
>> dependencies in the model plug-in are set. The
>> "org/hibernate/mapping/Value" class does exist in the hibernate jar. I
>> don't understand what we did wrong.
>>
>> Here is the new stack trace :
>>
>> "java.lang.NoClassDefFoundError: org/hibernate/mapping/Value
>> at
>> org.eclipse.emf.teneo.hibernate.HbHelper$1.createHbDataStore (HbHelper.java:56)
>>
>> at
>> org.eclipse.emf.teneo.hibernate.HbHelper.createRegisterDataS tore(HbHelper.java:150)
>>
>> at
>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:117)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>
>> at
>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>
>> at
>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>
>> at
>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>
>> 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:242)
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>
>> at
>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>
>> at
>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>
>> at
>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>
>> at
>> org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
>>
>> at
>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
>>
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
>> at
>> org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
>>
>> at
>> org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
>>
>> at
>> org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
>> at
>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>> at org.eclipse.jface.window.Window.open(Window.java:796)
>> at
>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>> at
>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>
>> at
>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>> at
>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>
>> 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.invokeFramework(Main.java:336 )
>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>
>> Thanks for your time
>>
>> Nicolas ROBIN & Benoît LAMARCHE
>>
>> Martin Taal wrote :
>>
>>> Hi Nicolas,
>>> My guess is that this is related to dependencies which are not
>>> resolved. In the hibernate plugin did you export all (is the savest)
>>> hibernate java packages?
>>> Did you check the reexport property of the dependency of the
>>> hibernate plugin in the model plugin?
>>>
>>> gr. Martin
>>>
>>> Nicolas Robin wrote:
>>>
>>>> Hi Martin,
>>>>
>>>> We wanted to switch our application, that was working fine with
>>>> Elver Store, to Teneo. We experienced problems ("NoClassDefFound"
>>>> errors loading Dom4J classes) so we decided to return to the Library
>>>> Editor Tutorial. And it doesn't seem to work with us. The EMF part
>>>> of the tutorial is working fine but when we add the Teneo code,
>>>> we're having this error message :
>>>>
>>>> "Problem Opening Wizard"
>>>> "The selected wizard could not be started.
>>>> Reason:
>>>> Plug-in library.editor was unable to load class
>>>> org.eclipse.example.library.presentation.LibraryModelWizard"
>>>>
>>>> And here is the stack trace we got from catching the exception :
>>>>
>>>> "org.hibernate.MappingException: Could not determine type for:
>>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
>>>> for columns: [org.hibernate.mapping.Column(econtainer_class),
>>>> org.hibernate.mapping.Column(e_container)]
>>>> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
>>>> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
>>>> at org.hibernate.mapping.Property.isValid(Property.java:185)
>>>> at
>>>> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:399)
>>>>
>>>> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
>>>> at
>>>> org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
>>>> at
>>>> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>>>>
>>>> at
>>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:119)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>>
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>>
>>>> at
>>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>>
>>>> at
>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>>
>>>> at
>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>>
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>>
>>>> at
>>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>>
>>>> at
>>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>>
>>>> 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:242)
>>>> at
>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>>
>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>>
>>>> at
>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>>
>>>> at
>>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>>
>>>> at
>>>> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:751)
>>>>
>>>> at
>>>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
>>>>
>>>> at
>>>> org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
>>>> at
>>>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
>>>>
>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>> at
>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>> at
>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>>> at
>>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>>
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>>
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>>
>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>> at
>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>> at
>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>> at
>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>>> at
>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>>
>>>> at
>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>> at
>>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>>> at
>>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>>
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>>
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>>
>>>> at java.lang.reflect.Method.invoke(Method.java:585)
>>>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>>
>>>> We're using the Teneo version from the update site (0.7.5) and we
>>>> created a separated Hibernate plug-in with version 3.2.0 cr3.
>>>> We also have Eclipse 3.2.0, EMF 2.2.0 and a JDK 1.5.0_04.
>>>>
>>>> Thanks for your help,
>>>>
>>>> Nicolas ROBIN & Benoît LAMARCHE
>>>
>>>
>>>
>>>
>>
>
>
Re: Teneo : Problem with Library Editor Tutorial [message #591727 is a reply to message #51899] Fri, 22 September 2006 12:07 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Nicolas,
Okay, can you upload a screendump of the jars in your hibernate plugin as eclipse display it?

Can you comment out the teneo part in the editorplugin and just try some basic hibernate stuff such
as create a configuration and a SessionFactory? To see if that also fails.

gr. Martin

Nicolas Robin wrote:
> When we add the import statement, there's no error. We had forgotten to
> put the "Eclipse-BuddyPolicy: dependent" but it didn't change anything.
> We still have the same error and stack trace.
>
> Thanks for trying to help
>
> Nicolas ROBIN & Benoît LAMARCHE
>
> Martin Taal wrote :
>> Hi Nicolas,
>> When you add the import statement:
>> import org.hibernate.mapping.Value;
>>
>> to the class:
>> org.eclipse.example.library.presentation.LibraryEditorPlugin .
>> Does the compiler complain?
>>
>> If the compiler complains, can you then check if the hibernate
>> packages are exported in the runtime tab of the hibernate plugin
>> Manifest.MF?
>>
>> Also the hibernate plugin must have this in the manifest.mf:
>> Eclipse-BuddyPolicy: dependent
>> Another eclipse-buddypolicy can work also. Although this is not
>> related to this issue.
>>
>> gr. Martin
>>
>>
>> Nicolas Robin wrote:
>>
>>> Hi Martin,
>>>
>>> Thanks for your answer. We've restarted the Library Editor Tutorial
>>> from scratch, in a new workspace and created a new Hibernate plug-in.
>>> We're having the same error but a different stack trace.
>>>
>>> In our Hibernate plug-in, we've added the hibernate3.jar and all the
>>> jars that were in the "lib" directory, and we've exported each of
>>> them. The reexport properties of the Hibernate and Teneo plug-ins
>>> dependencies in the model plug-in are set. The
>>> "org/hibernate/mapping/Value" class does exist in the hibernate jar.
>>> I don't understand what we did wrong.
>>>
>>> Here is the new stack trace :
>>>
>>> "java.lang.NoClassDefFoundError: org/hibernate/mapping/Value
>>> at
>>> org.eclipse.emf.teneo.hibernate.HbHelper$1.createHbDataStore (HbHelper.java:56)
>>>
>>> at
>>> org.eclipse.emf.teneo.hibernate.HbHelper.createRegisterDataS tore(HbHelper.java:150)
>>>
>>> at
>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:117)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>
>>> at
>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>
>>> at
>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>
>>> at
>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>
>>> 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:242)
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>
>>> at
>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
>>>
>>> at
>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
>>>
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
>>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
>>>
>>> at
>>> org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
>>>
>>> at
>>> org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
>>>
>>> at
>>> org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
>>> at
>>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>> at
>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>
>>> at
>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>> at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at
>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>> at
>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>
>>> 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.invokeFramework(Main.java:336 )
>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>
>>> Thanks for your time
>>>
>>> Nicolas ROBIN & Benoît LAMARCHE
>>>
>>> Martin Taal wrote :
>>>
>>>> Hi Nicolas,
>>>> My guess is that this is related to dependencies which are not
>>>> resolved. In the hibernate plugin did you export all (is the savest)
>>>> hibernate java packages?
>>>> Did you check the reexport property of the dependency of the
>>>> hibernate plugin in the model plugin?
>>>>
>>>> gr. Martin
>>>>
>>>> Nicolas Robin wrote:
>>>>
>>>>> Hi Martin,
>>>>>
>>>>> We wanted to switch our application, that was working fine with
>>>>> Elver Store, to Teneo. We experienced problems ("NoClassDefFound"
>>>>> errors loading Dom4J classes) so we decided to return to the
>>>>> Library Editor Tutorial. And it doesn't seem to work with us. The
>>>>> EMF part of the tutorial is working fine but when we add the Teneo
>>>>> code, we're having this error message :
>>>>>
>>>>> "Problem Opening Wizard"
>>>>> "The selected wizard could not be started.
>>>>> Reason:
>>>>> Plug-in library.editor was unable to load class
>>>>> org.eclipse.example.library.presentation.LibraryModelWizard"
>>>>>
>>>>> And here is the stack trace we got from catching the exception :
>>>>>
>>>>> "org.hibernate.MappingException: Could not determine type for:
>>>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
>>>>> for columns: [org.hibernate.mapping.Column(econtainer_class),
>>>>> org.hibernate.mapping.Column(e_container)]
>>>>> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
>>>>> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
>>>>> at org.hibernate.mapping.Property.isValid(Property.java:185)
>>>>> at
>>>>> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:399)
>>>>>
>>>>> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
>>>>> at
>>>>> org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
>>>>> at
>>>>> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>>>>>
>>>>> at
>>>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:119)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>>>
>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>>>
>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>>>
>>>>> at
>>>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>>>
>>>>> at
>>>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>>>
>>>>> 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:242)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>>>
>>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:751)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
>>>>> at
>>>>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>>>> at
>>>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>> at
>>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>>>> at
>>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>>> at
>>>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>>>> at
>>>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>>>
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>>>
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>>>
>>>>> at java.lang.reflect.Method.invoke(Method.java:585)
>>>>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>>>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>>>
>>>>> We're using the Teneo version from the update site (0.7.5) and we
>>>>> created a separated Hibernate plug-in with version 3.2.0 cr3.
>>>>> We also have Eclipse 3.2.0, EMF 2.2.0 and a JDK 1.5.0_04.
>>>>>
>>>>> Thanks for your help,
>>>>>
>>>>> Nicolas ROBIN & Benoît LAMARCHE
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #591774 is a reply to message #51928] Fri, 22 September 2006 13:44 Go to previous message
Eclipse UserFriend
Originally posted by: nrobin.irisa.fr

We've tried to comment out all the teneo part and we only left this line
in the start() function : "Configuration cfg = new Configuration();". It
failed. I guess there's really a problem with our Hibernate plug-in.

Here is the screen dump (I hope this is what you wanted) :
http://www.onetwothreefour.info/screendump.gif

Nicolas ROBIN & Benoît LAMARCHE



Martin Taal wrote :
> Hi Nicolas,
> Okay, can you upload a screendump of the jars in your hibernate plugin
> as eclipse display it?
>
> Can you comment out the teneo part in the editorplugin and just try some
> basic hibernate stuff such as create a configuration and a
> SessionFactory? To see if that also fails.
>
> gr. Martin
>
> Nicolas Robin wrote:
>
>> When we add the import statement, there's no error. We had forgotten
>> to put the "Eclipse-BuddyPolicy: dependent" but it didn't change
>> anything.
>> We still have the same error and stack trace.
>>
>> Thanks for trying to help
>>
>> Nicolas ROBIN & Benoît LAMARCHE
>>
>> Martin Taal wrote :
>>
>>> Hi Nicolas,
>>> When you add the import statement:
>>> import org.hibernate.mapping.Value;
>>>
>>> to the class:
>>> org.eclipse.example.library.presentation.LibraryEditorPlugin .
>>> Does the compiler complain?
>>>
>>> If the compiler complains, can you then check if the hibernate
>>> packages are exported in the runtime tab of the hibernate plugin
>>> Manifest.MF?
>>>
>>> Also the hibernate plugin must have this in the manifest.mf:
>>> Eclipse-BuddyPolicy: dependent
>>> Another eclipse-buddypolicy can work also. Although this is not
>>> related to this issue.
>>>
>>> gr. Martin
>>>
>>>
>>> Nicolas Robin wrote:
>>>
>>>> Hi Martin,
>>>>
>>>> Thanks for your answer. We've restarted the Library Editor Tutorial
>>>> from scratch, in a new workspace and created a new Hibernate
>>>> plug-in. We're having the same error but a different stack trace.
>>>>
>>>> In our Hibernate plug-in, we've added the hibernate3.jar and all the
>>>> jars that were in the "lib" directory, and we've exported each of
>>>> them. The reexport properties of the Hibernate and Teneo plug-ins
>>>> dependencies in the model plug-in are set. The
>>>> "org/hibernate/mapping/Value" class does exist in the hibernate jar.
>>>> I don't understand what we did wrong.
>>>>
>>>> Here is the new stack trace :
>>>>
>>>> "java.lang.NoClassDefFoundError: org/hibernate/mapping/Value
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.HbHelper$1.createHbDataStore (HbHelper.java:56)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.HbHelper.createRegisterDataS tore(HbHelper.java:150)
>>>>
>>>> at
>>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:117)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>>
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>>
>>>> at
>>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>>
>>>> at
>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>>
>>>> at
>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>>
>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>>
>>>> at
>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>>
>>>> at
>>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>>
>>>> at
>>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>>
>>>> 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:242)
>>>> at
>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>>
>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>>
>>>> at
>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>>
>>>> at
>>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
>>>>
>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
>>>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
>>>>
>>>> at
>>>> org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
>>>>
>>>> at
>>>> org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
>>>>
>>>> at
>>>> org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
>>>> at
>>>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
>>>>
>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>> at
>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>> at
>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>>> at
>>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>>
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>>
>>>> at
>>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>>
>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>> at
>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>> at
>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>> at
>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>>> at
>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>>
>>>> at
>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>> at
>>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>>> at
>>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>>
>>>> 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.invokeFramework(Main.java:336 )
>>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>>
>>>> Thanks for your time
>>>>
>>>> Nicolas ROBIN & Benoît LAMARCHE
>>>>
>>>> Martin Taal wrote :
>>>>
>>>>> Hi Nicolas,
>>>>> My guess is that this is related to dependencies which are not
>>>>> resolved. In the hibernate plugin did you export all (is the
>>>>> savest) hibernate java packages?
>>>>> Did you check the reexport property of the dependency of the
>>>>> hibernate plugin in the model plugin?
>>>>>
>>>>> gr. Martin
>>>>>
>>>>> Nicolas Robin wrote:
>>>>>
>>>>>> Hi Martin,
>>>>>>
>>>>>> We wanted to switch our application, that was working fine with
>>>>>> Elver Store, to Teneo. We experienced problems ("NoClassDefFound"
>>>>>> errors loading Dom4J classes) so we decided to return to the
>>>>>> Library Editor Tutorial. And it doesn't seem to work with us. The
>>>>>> EMF part of the tutorial is working fine but when we add the Teneo
>>>>>> code, we're having this error message :
>>>>>>
>>>>>> "Problem Opening Wizard"
>>>>>> "The selected wizard could not be started.
>>>>>> Reason:
>>>>>> Plug-in library.editor was unable to load class
>>>>>> org.eclipse.example.library.presentation.LibraryModelWizard"
>>>>>>
>>>>>> And here is the stack trace we got from catching the exception :
>>>>>>
>>>>>> "org.hibernate.MappingException: Could not determine type for:
>>>>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
>>>>>> for columns: [org.hibernate.mapping.Column(econtainer_class),
>>>>>> org.hibernate.mapping.Column(e_container)]
>>>>>> at
>>>>>> org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
>>>>>> at
>>>>>> org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
>>>>>> at org.hibernate.mapping.Property.isValid(Property.java:185)
>>>>>> at
>>>>>> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:399)
>>>>>>
>>>>>> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
>>>>>> at
>>>>>> org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
>>>>>> at
>>>>>> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:119)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>>>>
>>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>>>>
>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>>>>
>>>>>> 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:242)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>>> at
>>>>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>>>>
>>>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>>>> at
>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>>> at
>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:751)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
>>>>>> at
>>>>>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>>> at
>>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>>> at
>>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>>>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>>>>> at
>>>>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>>>> at
>>>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>>> at
>>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>>> at
>>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>>> at
>>>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>>>>> at
>>>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>>>> at
>>>>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>>>>
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>>>>
>>>>>> at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>>>>
>>>>>> at java.lang.reflect.Method.invoke(Method.java:585)
>>>>>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>>>>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>>>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>>>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>>>>
>>>>>> We're using the Teneo version from the update site (0.7.5) and we
>>>>>> created a separated Hibernate plug-in with version 3.2.0 cr3.
>>>>>> We also have Eclipse 3.2.0, EMF 2.2.0 and a JDK 1.5.0_04.
>>>>>>
>>>>>> Thanks for your help,
>>>>>>
>>>>>> Nicolas ROBIN & Benoît LAMARCHE
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>
>
Re: Teneo : Problem with Library Editor Tutorial [message #591786 is a reply to message #52115] Fri, 22 September 2006 14:00 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Nicolas,
You can also try the following: add the hibernate plugin directly to the edit plugin dependency (and
remove it from the model).
Or copy all the hibernate jars to the edit plugin and add the jars directly to the dependencies.
This is not to nice but maybe helps you to get further and diagnose the issue.

Btw, I will be away in about 30 minutes and will be back on monday evening.

gr. Martin

Nicolas Robin wrote:
> We've tried to comment out all the teneo part and we only left this line
> in the start() function : "Configuration cfg = new Configuration();". It
> failed. I guess there's really a problem with our Hibernate plug-in.
>
> Here is the screen dump (I hope this is what you wanted) :
> http://www.onetwothreefour.info/screendump.gif
>
> Nicolas ROBIN & Benoît LAMARCHE
>
>
>
> Martin Taal wrote :
>> Hi Nicolas,
>> Okay, can you upload a screendump of the jars in your hibernate plugin
>> as eclipse display it?
>>
>> Can you comment out the teneo part in the editorplugin and just try
>> some basic hibernate stuff such as create a configuration and a
>> SessionFactory? To see if that also fails.
>>
>> gr. Martin
>>
>> Nicolas Robin wrote:
>>
>>> When we add the import statement, there's no error. We had forgotten
>>> to put the "Eclipse-BuddyPolicy: dependent" but it didn't change
>>> anything.
>>> We still have the same error and stack trace.
>>>
>>> Thanks for trying to help
>>>
>>> Nicolas ROBIN & Benoît LAMARCHE
>>>
>>> Martin Taal wrote :
>>>
>>>> Hi Nicolas,
>>>> When you add the import statement:
>>>> import org.hibernate.mapping.Value;
>>>>
>>>> to the class:
>>>> org.eclipse.example.library.presentation.LibraryEditorPlugin .
>>>> Does the compiler complain?
>>>>
>>>> If the compiler complains, can you then check if the hibernate
>>>> packages are exported in the runtime tab of the hibernate plugin
>>>> Manifest.MF?
>>>>
>>>> Also the hibernate plugin must have this in the manifest.mf:
>>>> Eclipse-BuddyPolicy: dependent
>>>> Another eclipse-buddypolicy can work also. Although this is not
>>>> related to this issue.
>>>>
>>>> gr. Martin
>>>>
>>>>
>>>> Nicolas Robin wrote:
>>>>
>>>>> Hi Martin,
>>>>>
>>>>> Thanks for your answer. We've restarted the Library Editor Tutorial
>>>>> from scratch, in a new workspace and created a new Hibernate
>>>>> plug-in. We're having the same error but a different stack trace.
>>>>>
>>>>> In our Hibernate plug-in, we've added the hibernate3.jar and all
>>>>> the jars that were in the "lib" directory, and we've exported each
>>>>> of them. The reexport properties of the Hibernate and Teneo
>>>>> plug-ins dependencies in the model plug-in are set. The
>>>>> "org/hibernate/mapping/Value" class does exist in the hibernate
>>>>> jar. I don't understand what we did wrong.
>>>>>
>>>>> Here is the new stack trace :
>>>>>
>>>>> "java.lang.NoClassDefFoundError: org/hibernate/mapping/Value
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.HbHelper$1.createHbDataStore (HbHelper.java:56)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.HbHelper.createRegisterDataS tore(HbHelper.java:150)
>>>>>
>>>>> at
>>>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:117)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>>>
>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>>>
>>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>>>
>>>>> at
>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>>>
>>>>> at
>>>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>>>
>>>>> at
>>>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>>>
>>>>> 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:242)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>> at
>>>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>>>
>>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
>>>>>
>>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
>>>>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
>>>>> at
>>>>> org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
>>>>> at
>>>>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>>>> at
>>>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>>>
>>>>> at
>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>> at
>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>> at
>>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>>>> at
>>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>>>
>>>>> at
>>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>>> at
>>>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>>>> at
>>>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>>>
>>>>> at
>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>>>
>>>>> 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.invokeFramework(Main.java:336 )
>>>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>>>
>>>>> Thanks for your time
>>>>>
>>>>> Nicolas ROBIN & Benoît LAMARCHE
>>>>>
>>>>> Martin Taal wrote :
>>>>>
>>>>>> Hi Nicolas,
>>>>>> My guess is that this is related to dependencies which are not
>>>>>> resolved. In the hibernate plugin did you export all (is the
>>>>>> savest) hibernate java packages?
>>>>>> Did you check the reexport property of the dependency of the
>>>>>> hibernate plugin in the model plugin?
>>>>>>
>>>>>> gr. Martin
>>>>>>
>>>>>> Nicolas Robin wrote:
>>>>>>
>>>>>>> Hi Martin,
>>>>>>>
>>>>>>> We wanted to switch our application, that was working fine with
>>>>>>> Elver Store, to Teneo. We experienced problems ("NoClassDefFound"
>>>>>>> errors loading Dom4J classes) so we decided to return to the
>>>>>>> Library Editor Tutorial. And it doesn't seem to work with us. The
>>>>>>> EMF part of the tutorial is working fine but when we add the
>>>>>>> Teneo code, we're having this error message :
>>>>>>>
>>>>>>> "Problem Opening Wizard"
>>>>>>> "The selected wizard could not be started.
>>>>>>> Reason:
>>>>>>> Plug-in library.editor was unable to load class
>>>>>>> org.eclipse.example.library.presentation.LibraryModelWizard"
>>>>>>>
>>>>>>> And here is the stack trace we got from catching the exception :
>>>>>>>
>>>>>>> "org.hibernate.MappingException: Could not determine type for:
>>>>>>> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
>>>>>>> for columns: [org.hibernate.mapping.Column(econtainer_class),
>>>>>>> org.hibernate.mapping.Column(e_container)]
>>>>>>> at
>>>>>>> org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
>>>>>>> at
>>>>>>> org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
>>>>>>> at org.hibernate.mapping.Property.isValid(Property.java:185)
>>>>>>> at
>>>>>>> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:399)
>>>>>>>
>>>>>>> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
>>>>>>> at
>>>>>>> org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
>>>>>>> at
>>>>>>> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:119)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>>>>>>>
>>>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>>>>>>
>>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>>>>>>>
>>>>>>> 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:242)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>>>>>>>
>>>>>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>>>>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:751)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:351)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>>>> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
>>>>>>> at org.eclipse.jface.window.Window.open(Window.java:796)
>>>>>>> at
>>>>>>> org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
>>>>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>>>>> at
>>>>>>> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>>>>>>> at
>>>>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>>>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>>>>> at
>>>>>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>>>>>
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>>>>>
>>>>>>> at
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>>>>>
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>>>>>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>>>>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>>>>>> at org.eclipse.core.launcher.Main.main(Main.java:952)"
>>>>>>>
>>>>>>> We're using the Teneo version from the update site (0.7.5) and we
>>>>>>> created a separated Hibernate plug-in with version 3.2.0 cr3.
>>>>>>> We also have Eclipse 3.2.0, EMF 2.2.0 and a JDK 1.5.0_04.
>>>>>>>
>>>>>>> Thanks for your help,
>>>>>>>
>>>>>>> Nicolas ROBIN & Benoît LAMARCHE
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #594200 is a reply to message #52168] Tue, 17 October 2006 11:06 Go to previous message
Vijayan is currently offline VijayanFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,

I am also facing problems while trying to run the sample Library
application. Please find below the error message that i get.

org.hibernate.MappingException: Could not determine type for:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType, for
columns: [org.hibernate.mapping.Column(econtainer_class),
org.hibernate.mapping.Column(e_container)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
at org.hibernate.mapping.Property.isValid(Property.java:185)
at
org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:395)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
at
org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:130)


I have checked all the teneo dependencies for the reexport option also.
Please let me know on what is the problem.

Regards,
Vijayan
Re: Teneo : Problem with Library Editor Tutorial [message #594210 is a reply to message #57902] Tue, 17 October 2006 11:13 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Vijayan,
Can you check if there is another underlying (or earlier) exception in the trace. My experience is
that this exception is just a signal of another exception.

gr. Martin

Vijayan wrote:
> Hi,
>
> I am also facing problems while trying to run the sample Library
> application. Please find below the error message that i get.
>
> org.hibernate.MappingException: Could not determine type for:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
> for columns: [org.hibernate.mapping.Column(econtainer_class),
> org.hibernate.mapping.Column(e_container)]
> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
> at org.hibernate.mapping.Property.isValid(Property.java:185)
> at
> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:395)
> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
> at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>
> at
> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:130)
>
>
>
> I have checked all the teneo dependencies for the reexport option also.
> Please let me know on what is the problem.
>
> Regards,
> Vijayan
>



--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #594644 is a reply to message #57927] Tue, 24 October 2006 05:42 Go to previous message
Vijayan is currently offline VijayanFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Martin,

I could not see any other exception. Please find below the complete stack
trace.

org.hibernate.MappingException: Could not determine type for:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType, for
columns: [org.hibernate.mapping.Column(econtainer_class),
org.hibernate.mapping.Column(e_container)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
at org.hibernate.mapping.Property.isValid(Property.java:185)
at
org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:395)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
at
org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:130)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
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:242)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
at
org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
at
org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
at
org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
at
org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
at
org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
at
org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
at
org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
at
org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

Regards,
Vijayan
Re: Teneo : Problem with Library Editor Tutorial [message #594663 is a reply to message #58805] Tue, 24 October 2006 05:52 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Vijayan,
Can you post/send me the ecore file? Then I can test myself were it fails.

gr. Martin

Vijayan wrote:
> Hi Martin,
>
> I could not see any other exception. Please find below the complete
> stack trace.
>
> org.hibernate.MappingException: Could not determine type for:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
> for columns: [org.hibernate.mapping.Column(econtainer_class),
> org.hibernate.mapping.Column(e_container)]
> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:2 66)
> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:2 53)
> at org.hibernate.mapping.Property.isValid(Property.java:185)
> at
> org.hibernate.mapping.PersistentClass.validate(PersistentCla ss.java:395)
> at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
> at org.hibernate.cfg.Configuration.validate(Configuration.java: 1026)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1211)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.buildSessionFact ory(HbDataStore.java:474)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:187)
>
> at
> org.eclipse.example.library.presentation.LibraryEditorPlugin $Implementation.start(LibraryEditorPlugin.java:130)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:995)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:989)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:256)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .preFindLocalClass(EclipseLazyStarter.java:86)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:409)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:188)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:339)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:391)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
>
> 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:242)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:238)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eExecutableExtension(WorkbenchWizardElement.java:117)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.creat eWizard(WorkbenchWizardElement.java:261)
>
> at
> org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWiz ard(NewWizardNewPage.java:766)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(Wo rkbenchWizardNode.java:148)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(Wo rkbenchWizardNode.java:131)
>
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizar d(WorkbenchWizardNode.java:128)
>
> at
> org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(Wiz ardSelectionPage.java:104)
>
> at
> org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage .getNextPage(WorkbenchWizardSelectionPage.java:100)
>
> at
> org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advan ceToNextPageOrFinish(NewWizardSelectionPage.java:71)
>
> at
> org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleCli ck(NewWizardNewPage.java:364)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredV iewer.java:796)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(S tructuredViewer.java:794)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSel ect(AbstractTreeViewer.java:1216)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSe lected(StructuredViewer.java:1158)
>
> at
> org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEven t(OpenStrategy.java:223)
>
> at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.ja va:220)
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:281)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
> at org.eclipse.jface.window.Window.open(Window.java:796)
> at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>
> 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.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
>
> Regards,
> Vijayan
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #594689 is a reply to message #58855] Tue, 24 October 2006 09:08 Go to previous message
Vijayan is currently offline VijayanFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Martin,

Please find the ecore file.

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="library"
nsURI="http://www.example.eclipse.org/Library" nsPrefix="library">
<eClassifiers xsi:type="ecore:EClass" name="Book">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Book"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="title"
unique="false" lowerBound="1"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="title"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="pages"
unique="false" lowerBound="1"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="pages"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="category"
unique="false"
lowerBound="1" eType="#//BookCategory"
defaultValueLiteral="Mystery" unsettable="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="category"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="author"
lowerBound="1"
eType="#//Writer" eOpposite="#//Writer/books">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="author"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="BookCategory">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="BookCategory"/>
</eAnnotations>
<eLiterals name="Mystery"/>
<eLiterals name="ScienceFiction" value="1"/>
<eLiterals name="Biography" value="2"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="BookCategoryObject"
instanceClassName="org.eclipse.emf.common.util.Enumerator">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="BookCategory:Object"/>
<details key="baseType" value="BookCategory"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Library">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Library"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
unique="false" lowerBound="1"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="name"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="writers"
upperBound="-1"
eType="#//Writer" containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="writers"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="books"
upperBound="-1"
eType="#//Book" containment="true" resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="books"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Writer">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Writer"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
unique="false" lowerBound="1"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="name"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="books"
upperBound="-1"
eType="#//Book" eOpposite="#//Book/author">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="books"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
</ecore:EPackage>

Regards,
Vijayan
Re: Teneo : Problem with Library Editor Tutorial [message #594702 is a reply to message #58931] Tue, 24 October 2006 09:50 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Vijayan,
This initializing correctly with me (is the standard library example).

This could be a classloading issue (teneo library is not visible to hibernate library).
I guess that all your hibernate libraries are in a separate plugin? Did you set the
eclipse-buddypolicy of this plugin to dependent? See here:
http://www.elver.org/hibernate/installation.html#Hibernate+L ibraries

Can you try to initialize the datastore outside of the editor, just in a junit test case or
something and then check if it works?

gr. Martin

Vijayan wrote:
> Hi Martin,
>
> Please find the ecore file.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ecore:EPackage xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="library"
> nsURI="http://www.example.eclipse.org/Library" nsPrefix="library">
> <eClassifiers xsi:type="ecore:EClass" name="Book">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="Book"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="title"
> unique="false" lowerBound="1"
> eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="title"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="pages"
> unique="false" lowerBound="1"
> eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="pages"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="category"
> unique="false"
> lowerBound="1" eType="#//BookCategory"
> defaultValueLiteral="Mystery" unsettable="true">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="category"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference" name="author"
> lowerBound="1"
> eType="#//Writer" eOpposite="#//Writer/books">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="author"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EEnum" name="BookCategory">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="BookCategory"/>
> </eAnnotations>
> <eLiterals name="Mystery"/>
> <eLiterals name="ScienceFiction" value="1"/>
> <eLiterals name="Biography" value="2"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EDataType" name="BookCategoryObject"
> instanceClassName="org.eclipse.emf.common.util.Enumerator">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="BookCategory:Object"/>
> <details key="baseType" value="BookCategory"/>
> </eAnnotations>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Library">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="Library"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
> unique="false" lowerBound="1"
> eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="name"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference" name="writers"
> upperBound="-1"
> eType="#//Writer" containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="writers"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference" name="books"
> upperBound="-1"
> eType="#//Book" containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="books"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Writer">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="Writer"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
> unique="false" lowerBound="1"
> eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="name"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EReference" name="books"
> upperBound="-1"
> eType="#//Book" eOpposite="#//Book/author">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="books"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> </ecore:EPackage>
>
> Regards,
> Vijayan
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #594796 is a reply to message #58982] Wed, 25 October 2006 08:51 Go to previous message
Vijayan is currently offline VijayanFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Martin,

Thanks that problem is solved.

I am getting the following error now.

org.eclipse.emf.teneo.hibernate.HbStoreException: Exception when saving
resource library
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadResource(HibernateResource.java:245)
at
org.eclipse.emf.teneo.resource.StoreResource.load(StoreResou rce.java:236)
at
org.eclipse.emf.teneo.resource.StoreResource.getContents(Sto reResource.java:347)
at
org.eclipse.example.library.presentation.LibraryModelWizard$ 1.execute(LibraryModelWizard.java:214)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1737)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 851)
at
org.eclipse.example.library.presentation.LibraryModelWizard. performFinish(LibraryModelWizard.java:245)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:680)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:355)
at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: org.hibernate.exception.SQLGrammarException: could not execute
query
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
at org.hibernate.loader.Loader.doList(Loader.java:2147)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java :2028)
at org.hibernate.loader.Loader.list(Loader.java:2023)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:3 93)
at
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslat orImpl.java:338)
at
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQuery Plan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadUsingTopClasses(HibernateResource.java:291)
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadFromStore(HibernateResource.java:277)
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadResource(HibernateResource.java:239)
... 47 more
Caused by: java.sql.SQLException: ORA-00942: table or view does not exist

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java: 114)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311 )
at
oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Proto col.java:595)
at
oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStat ement.java:1600)
at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement .java:1758)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(Orac leStatement.java:1805)
at
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(Ora clePreparedStatement.java:322)
at
oracle.jdbc.driver.OraclePreparedStatement.executeQuery(Orac lePreparedStatement.java:280)
at
org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatc her.java:186)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1668)
at org.hibernate.loader.Loader.doQuery(Loader.java:662)
at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2144)
... 57 more

It also shows the warning
WARN main org.hibernate.util.JDBCExceptionReporter - SQL Error: 942,
SQLState: 42000

Regards,
Vijayan
Re: Teneo : Problem with Library Editor Tutorial [message #594810 is a reply to message #59211] Wed, 25 October 2006 15:10 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Vijayan,
The tables are not present in the database, so they are not created by Hibernate. My experience is
that Hibernate will not stop if the database creation fails, the error is shown when you actually
try to use the tables.
Can you check the log why no tables are created (permission issue maybe?)?

Btw, there is a Teneo option to prevent schema update/creation: PersistenceOptions.UPDATE_SCHEMA
But as this is not part of the tutorial I don't think that you set that.

gr. Martin

Vijayan wrote:
> Hi Martin,
>
> Thanks that problem is solved.
> I am getting the following error now.
>
> org.eclipse.emf.teneo.hibernate.HbStoreException: Exception when saving
> resource library
> at
> org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadResource(HibernateResource.java:245)
>
> at
> org.eclipse.emf.teneo.resource.StoreResource.load(StoreResou rce.java:236)
> at
> org.eclipse.emf.teneo.resource.StoreResource.getContents(Sto reResource.java:347)
>
> at
> org.eclipse.example.library.presentation.LibraryModelWizard$ 1.execute(LibraryModelWizard.java:214)
>
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
>
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1737)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
>
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:369)
>
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 851)
> at
> org.eclipse.example.library.presentation.LibraryModelWizard. performFinish(LibraryModelWizard.java:245)
>
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:680)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:355)
> at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
> at org.eclipse.jface.window.Window.open(Window.java:796)
> at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:181)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>
> 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.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
> Caused by: org.hibernate.exception.SQLGrammarException: could not
> execute query
> at
> org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
>
> at
> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
>
> at org.hibernate.loader.Loader.doList(Loader.java:2147)
> at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java :2028)
> at org.hibernate.loader.Loader.list(Loader.java:2023)
> at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:3 93)
> at
> org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslat orImpl.java:338)
>
> at
> org.hibernate.engine.query.HQLQueryPlan.performList(HQLQuery Plan.java:172)
> at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
> at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
> at
> org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadUsingTopClasses(HibernateResource.java:291)
>
> at
> org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadFromStore(HibernateResource.java:277)
>
> at
> org.eclipse.emf.teneo.hibernate.resource.HibernateResource.l oadResource(HibernateResource.java:239)
>
> ... 47 more
> Caused by: java.sql.SQLException: ORA-00942: table or view does not exist
>
> at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java: 114)
> at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
> at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542)
> at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311 )
> at
> oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Proto col.java:595)
> at
> oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStat ement.java:1600)
>
> at
> oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement .java:1758)
> at
> oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(Orac leStatement.java:1805)
>
> at
> oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(Ora clePreparedStatement.java:322)
>
> at
> oracle.jdbc.driver.OraclePreparedStatement.executeQuery(Orac lePreparedStatement.java:280)
>
> at
> org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatc her.java:186)
> at org.hibernate.loader.Loader.getResultSet(Loader.java:1668)
> at org.hibernate.loader.Loader.doQuery(Loader.java:662)
> at
> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:224)
>
> at org.hibernate.loader.Loader.doList(Loader.java:2144)
> ... 57 more
>
> It also shows the warning
> WARN main org.hibernate.util.JDBCExceptionReporter - SQL Error: 942,
> SQLState: 42000
>
> Regards,
> Vijayan
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #594928 is a reply to message #59262] Mon, 30 October 2006 10:40 Go to previous message
Vijayan is currently offline VijayanFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Martin,

Thanks a lot. I dropped the Database schema and recreated, it works fine
now. I am able to create a library, add books and writers. But everytime i
try to change some feature and save i get the following error.

org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
org.eclipse.example.library.impl.BookImpl@805550{platform:/resource/librarySample/My.library#/0/@books.2}
The required feature 'category' of
'org.eclipse.example.library.impl.BookImpl@805550{platform:/resource/librarySample/My.library#/0/@books.2}'
must be set
at
org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:326)
at
org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:270)
at
org.eclipse.example.library.presentation.LibraryEditor$16.ex ecute(LibraryEditor.java:1370)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1737)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:113)

I could not understand why it is not saving the value that was already set
for the category feature when i am trying to change the pages/Author
property of the book.

Also i can see the tables and the values stored in the database, but when
i execute a select query on the table i get an error saying table or view
does not exist.

Regards,
Vijayan
Re: Teneo : Problem with Library Editor Tutorial [message #594942 is a reply to message #59539] Mon, 30 October 2006 11:02 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Vijayan,
Can you try to set the bookcategory to something else than the default value before saving? It looks
similar to this old issue (url can be truncated by end-of-line):
http://www.elver.org/hibernate/troubleshooting.html#Validati on+exception+on+enumerate+properties+when+saving+the+editor+ content

This should be solved in emf 2.2.

gr. Martin

Vijayan wrote:
> Hi Martin,
>
> Thanks a lot. I dropped the Database schema and recreated, it works fine
> now. I am able to create a library, add books and writers. But everytime
> i try to change some feature and save i get the following error.
> org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
> org.eclipse.example.library.impl.BookImpl@805550{platform:/resource/librarySample/My.library#/0/@books.2}
>
> The required feature 'category' of
> 'org.eclipse.example.library.impl.BookImpl@805550{platform:/resource/librarySample/My.library#/0/@books.2}'
> must be set
> at
> org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:326)
>
> at
> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:270)
> at
> org.eclipse.example.library.presentation.LibraryEditor$16.ex ecute(LibraryEditor.java:1370)
>
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
>
> at
> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1737)
> at
> org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
>
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:113)
>
>
> I could not understand why it is not saving the value that was already
> set for the category feature when i am trying to change the pages/Author
> property of the book.
> Also i can see the tables and the values stored in the database, but
> when i execute a select query on the table i get an error saying table
> or view does not exist.
> Regards,
> Vijayan
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Teneo : Problem with Library Editor Tutorial [message #594975 is a reply to message #59586] Mon, 30 October 2006 14:07 Go to previous message
Vijayan is currently offline VijayanFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Martin,

It works fine if i change the default value to something else.

Thanks for your help.

Regards,
Vijayan
Previous Topic:Specifying Annotations in Rose
Next Topic:Specifying Annotations in Rose
Goto Forum:
  


Current Time: Fri Apr 26 18:34:31 GMT 2024

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

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

Back to the top