-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Cannot create tables from entities
PostPosted: Sun Apr 13, 2014 6:29 am 
Newbie

Joined: Sun Apr 13, 2014 5:54 am
Posts: 1
Hey all,
I can't create tables from my entities in Eclipse.
When I right click on the project containing my entities->JPA Tools->Create tables from entities (using console configuration and export to database), Eclipse's error log shows an exception:
Code:
eclipse.buildId=4.3.0.M20130911-1000
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

Error
Sun Apr 13 12:45:54 IDT 2014
org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration

org.eclipse.core.runtime.CoreException: org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration
   at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.launchExporters(ConsoleExtension4_0.java:145)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:270)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:700)
   at org.jboss.tools.hibernate.jpt.ui.wizard.GenerateDdlWizard.performFinish(GenerateDdlWizard.java:70)
   at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
   at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
   at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)
   at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
   at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
   at org.eclipse.jface.window.Window.open(Window.java:802)
   at org.jboss.tools.hibernate.jpt.ui.internal.platform.HibernateJpaPlatformUi.generateDDL(HibernateJpaPlatformUi.java:64)
   at org.eclipse.jpt.jpa.ui.internal.handlers.GenerateDDLHandler.generateDDL(GenerateDDLHandler.java:45)
   at org.eclipse.jpt.jpa.ui.internal.handlers.GenerateDDLHandler.execute(GenerateDDLHandler.java:37)
   at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
   at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
   at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
   at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
   at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
   at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
   at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
   at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
   at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
   at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:850)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:743)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:727)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:662)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
   at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
   at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
   at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration
   at org.jboss.tools.hibernate4_0.ConfigurationFactory.buildJPAConfiguration(ConfigurationFactory.java:235)
   at org.jboss.tools.hibernate4_0.ConfigurationFactory.buildConfiguration(ConfigurationFactory.java:161)
   at org.jboss.tools.hibernate4_0.ConfigurationFactory.createConfiguration(ConfigurationFactory.java:98)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0$4.execute(HibernateExtension4_0.java:144)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0.execute(HibernateExtension4_0.java:211)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0.buildWith(HibernateExtension4_0.java:141)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0.build(HibernateExtension4_0.java:105)
   at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.buildConfiguration(ConsoleExtension4_0.java:277)
   at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.runExporters(ConsoleExtension4_0.java:167)
   at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.launchExporters(ConsoleExtension4_0.java:126)
   ... 61 more
Caused by: java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.jboss.tools.hibernate4_0.ConfigurationFactory.buildJPAConfiguration(ConfigurationFactory.java:218)
   ... 71 more
Caused by: javax.persistence.PersistenceException: Invalid persistence.xml.
Error parsing XML (line-1 : column -1): cvc-elt.1: Cannot find the declaration of element 'persistence'.

   at org.hibernate.ejb.packaging.PersistenceXmlLoader.loadURL(PersistenceXmlLoader.java:145)
   at org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(PersistenceXmlLoader.java:169)
   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:324)
   ... 76 more
Contains: org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration
org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration
   at org.jboss.tools.hibernate4_0.ConfigurationFactory.buildJPAConfiguration(ConfigurationFactory.java:235)
   at org.jboss.tools.hibernate4_0.ConfigurationFactory.buildConfiguration(ConfigurationFactory.java:161)
   at org.jboss.tools.hibernate4_0.ConfigurationFactory.createConfiguration(ConfigurationFactory.java:98)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0$4.execute(HibernateExtension4_0.java:144)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0.execute(HibernateExtension4_0.java:211)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0.buildWith(HibernateExtension4_0.java:141)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0.build(HibernateExtension4_0.java:105)
   at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.buildConfiguration(ConsoleExtension4_0.java:277)
   at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.runExporters(ConsoleExtension4_0.java:167)
   at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.launchExporters(ConsoleExtension4_0.java:126)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:270)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:700)
   at org.jboss.tools.hibernate.jpt.ui.wizard.GenerateDdlWizard.performFinish(GenerateDdlWizard.java:70)
   at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
   at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
   at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)
   at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
   at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
   at org.eclipse.jface.window.Window.open(Window.java:802)
   at org.jboss.tools.hibernate.jpt.ui.internal.platform.HibernateJpaPlatformUi.generateDDL(HibernateJpaPlatformUi.java:64)
   at org.eclipse.jpt.jpa.ui.internal.handlers.GenerateDDLHandler.generateDDL(GenerateDDLHandler.java:45)
   at org.eclipse.jpt.jpa.ui.internal.handlers.GenerateDDLHandler.execute(GenerateDDLHandler.java:37)
   at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
   at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
   at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
   at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
   at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
   at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
   at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
   at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
   at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
   at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:850)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:743)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:727)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:662)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
   at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
   at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
   at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.jboss.tools.hibernate4_0.ConfigurationFactory.buildJPAConfiguration(ConfigurationFactory.java:218)
   ... 71 more
Caused by: javax.persistence.PersistenceException: Invalid persistence.xml.
Error parsing XML (line-1 : column -1): cvc-elt.1: Cannot find the declaration of element 'persistence'.

   at org.hibernate.ejb.packaging.PersistenceXmlLoader.loadURL(PersistenceXmlLoader.java:145)
   at org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(PersistenceXmlLoader.java:169)
   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:324)
   ... 76 more
Contains: java.lang.reflect.InvocationTargetException: <no message>
java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.jboss.tools.hibernate4_0.ConfigurationFactory.buildJPAConfiguration(ConfigurationFactory.java:218)
   at org.jboss.tools.hibernate4_0.ConfigurationFactory.buildConfiguration(ConfigurationFactory.java:161)
   at org.jboss.tools.hibernate4_0.ConfigurationFactory.createConfiguration(ConfigurationFactory.java:98)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0$4.execute(HibernateExtension4_0.java:144)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0.execute(HibernateExtension4_0.java:211)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0.buildWith(HibernateExtension4_0.java:141)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0.build(HibernateExtension4_0.java:105)
   at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.buildConfiguration(ConsoleExtension4_0.java:277)
   at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.runExporters(ConsoleExtension4_0.java:167)
   at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.launchExporters(ConsoleExtension4_0.java:126)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:270)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:700)
   at org.jboss.tools.hibernate.jpt.ui.wizard.GenerateDdlWizard.performFinish(GenerateDdlWizard.java:70)
   at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
   at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
   at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)
   at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
   at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
   at org.eclipse.jface.window.Window.open(Window.java:802)
   at org.jboss.tools.hibernate.jpt.ui.internal.platform.HibernateJpaPlatformUi.generateDDL(HibernateJpaPlatformUi.java:64)
   at org.eclipse.jpt.jpa.ui.internal.handlers.GenerateDDLHandler.generateDDL(GenerateDDLHandler.java:45)
   at org.eclipse.jpt.jpa.ui.internal.handlers.GenerateDDLHandler.execute(GenerateDDLHandler.java:37)
   at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
   at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
   at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
   at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
   at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
   at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
   at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
   at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
   at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
   at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:850)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:743)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:727)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:662)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
   at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
   at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
   at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: javax.persistence.PersistenceException: Invalid persistence.xml.
Error parsing XML (line-1 : column -1): cvc-elt.1: Cannot find the declaration of element 'persistence'.

   at org.hibernate.ejb.packaging.PersistenceXmlLoader.loadURL(PersistenceXmlLoader.java:145)
   at org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(PersistenceXmlLoader.java:169)
   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:324)
   ... 76 more
Contains: javax.persistence.PersistenceException: Invalid persistence.xml.
Error parsing XML (line-1 : column -1): cvc-elt.1: Cannot find the declaration of element 'persistence'.

javax.persistence.PersistenceException: Invalid persistence.xml.
Error parsing XML (line-1 : column -1): cvc-elt.1: Cannot find the declaration of element 'persistence'.

   at org.hibernate.ejb.packaging.PersistenceXmlLoader.loadURL(PersistenceXmlLoader.java:145)
   at org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(PersistenceXmlLoader.java:169)
   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:324)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.jboss.tools.hibernate4_0.ConfigurationFactory.buildJPAConfiguration(ConfigurationFactory.java:218)
   at org.jboss.tools.hibernate4_0.ConfigurationFactory.buildConfiguration(ConfigurationFactory.java:161)
   at org.jboss.tools.hibernate4_0.ConfigurationFactory.createConfiguration(ConfigurationFactory.java:98)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0$4.execute(HibernateExtension4_0.java:144)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0.execute(HibernateExtension4_0.java:211)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0.buildWith(HibernateExtension4_0.java:141)
   at org.jboss.tools.hibernate4_0.HibernateExtension4_0.build(HibernateExtension4_0.java:105)
   at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.buildConfiguration(ConsoleExtension4_0.java:277)
   at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.runExporters(ConsoleExtension4_0.java:167)
   at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.launchExporters(ConsoleExtension4_0.java:126)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:270)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:700)
   at org.jboss.tools.hibernate.jpt.ui.wizard.GenerateDdlWizard.performFinish(GenerateDdlWizard.java:70)
   at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
   at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
   at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)
   at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
   at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
   at org.eclipse.jface.window.Window.open(Window.java:802)
   at org.jboss.tools.hibernate.jpt.ui.internal.platform.HibernateJpaPlatformUi.generateDDL(HibernateJpaPlatformUi.java:64)
   at org.eclipse.jpt.jpa.ui.internal.handlers.GenerateDDLHandler.generateDDL(GenerateDDLHandler.java:45)
   at org.eclipse.jpt.jpa.ui.internal.handlers.GenerateDDLHandler.execute(GenerateDDLHandler.java:37)
   at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
   at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
   at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
   at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
   at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
   at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
   at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
   at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
   at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
   at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:850)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:743)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:727)
   at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:662)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
   at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
   at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
   at org.eclipse.equinox.launcher.Main.main(Main.java:1426)



When searching for it I found https://issues.jboss.org/browse/JBIDE-7726, suggesting changing the type to "Core" instead of "JPA (jdk 1.5+)". I managed to create the schema file, but it was empty.

any suggestions ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.