-->
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.  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Hibernate Eclipse Tool Install
PostPosted: Tue Jun 14, 2005 4:33 pm 
Newbie

Joined: Tue Jun 14, 2005 4:23 pm
Posts: 5
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: hibernate-tools-3.0.0.alpha4a

Mapping documents:http://www.hibernate.org/hib_docs/tools/eclipse/index.html

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using: Eclipse 3.0.1

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

Hi,
I follow the rule to install Eclipse and JBossIDE on my machine. After that, I unzip hibernate-tools-3.0.0.alpha4a.zip and copy all the files to Eclipse/plugin folder. In Eclipse, I clicked file/new/Other.../Hibernate Configuration File (cfg.xml) and GOT ERROR:

Reason:
Plug-in org.hibernate.eclipse.console was unable to load class org.hibernate.eclipse.console.wizards.NewConfigurationWizard

WHY???

Sunny


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 14, 2005 4:37 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Read the documentation and requirements!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 14, 2005 7:44 pm 
Newbie

Joined: Fri May 06, 2005 5:11 pm
Posts: 14
Location: San Francisco
I also run into the same problem. where can i find the documentation and requirements for just the hibernate tools only? If anyone knows the quick fix to this, I really appreciate that.

Sahra


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 14, 2005 7:48 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://tools.hibernate.org/


Top
 Profile  
 
 Post subject: PROBLEM. HELP!
PostPosted: Tue Jun 14, 2005 9:55 pm 
Newbie

Joined: Tue Jun 14, 2005 4:23 pm
Posts: 5
This is from ORIGIONAL DOCUMENT from http://www.hibernate.org/hib_docs/tools ... index.html:

"Install Eclipse 3.1M5 (http://www.eclipse.org)
Install JBoss Eclipse IDE 1.5.x - required for the mapping file editor (http://www.jboss.org/)

After you have downloaded the Hibernate Tools for Eclipse, unpack and copy the plugins to your Eclipse plugins directory. You will also need JDBC drivers for your database available to use the reverse engineering and querying support."

And that what I did. I install Eclipse and jboss as document said. Copy the hibernate tools to plugin folder. But I still got ERROR:

ERROR:
Plug-in org.hibernate.eclipse.console was unable to load class org.hibernate.eclipse.console.wizards.NewConfigurationWizard

How come???


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 15, 2005 8:00 am 
Newbie

Joined: Wed Jun 15, 2005 7:42 am
Posts: 1
I got the same problem. Has anybody fixed it yet?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 15, 2005 8:52 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
No you didn't, because it works here flawlessly.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 15, 2005 9:16 am 
Newbie

Joined: Thu Jun 09, 2005 10:34 am
Posts: 10
Look for the exception in the log file of the .metadata directory of your workspace. If it's not obvious from that what the problem is, post it here and I'll take a look. I'm VERY far from an expert in these matters, but perhaps I can help just the same.

You don't actually need JBossIDE anymore to use hibernate tools. I can't imagine that having it installed is hurting anything though.

Scott


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 15, 2005 9:18 am 
Newbie

Joined: Thu Jun 09, 2005 10:34 am
Posts: 10
Oh, your issue is likely because of your eclipse version. Try again with a newer version. Eclipse 3.1RC2 is really slick. It's worth the upgrade.


Top
 Profile  
 
 Post subject: ERROR on metadata
PostPosted: Wed Jun 15, 2005 10:37 am 
Newbie

Joined: Tue Jun 14, 2005 4:23 pm
Posts: 5
Hi,
This is the Error I found on log file.

!ENTRY org.eclipse.osgi Jun 15, 2005 10:36:48.937
!MESSAGE An error occured while automatically activating bundle org.hibernate.eclipse.console (211).
!STACK 0
org.osgi.framework.BundleException: The activator org.hibernate.eclipse.console.HibernateConsolePlugin for bundle org.hibernate.eclipse.console is invalid
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:158)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:933)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:421)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:293)
at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:110)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findImportedClass(BundleLoader.java:794)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:395)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:307)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:336)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1313)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:131)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:124)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:113)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:196)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:193)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createExecutableExtension(WorkbenchWizardElement.java:96)
at org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWizard(NewWizardNewPage.java:740)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(WorkbenchWizardNode.java:133)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(WorkbenchWizardNode.java:114)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizard(WorkbenchWizardNode.java:112)
at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:96)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSelectionPage.java:82)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:674)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:300)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
at org.eclipse.jface.window.Window.open(Window.java:648)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:163)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
Caused by: java.lang.NoClassDefFoundError: org/hibernate/console/HibernateConsoleRuntimeException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
at java.lang.Class.getConstructor0(Class.java:1930)
at java.lang.Class.newInstance0(Class.java:278)
at java.lang.Class.newInstance(Class.java:261)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:153)
... 62 more


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 15, 2005 10:47 am 
Newbie

Joined: Thu Jun 09, 2005 10:34 am
Posts: 10
Well, if you are in fact using Eclipse 3.0.1 this is almost certainly your problem. Hibernate tools requies eclipse 3.1. Hibernate tools alpha4a works great with Eclipse 3.1RC1 and 3.1RC2. I can't vouch for any older versions.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 15, 2005 11:50 am 
Newbie

Joined: Fri May 06, 2005 5:11 pm
Posts: 14
Location: San Francisco
Instead of using hibernate tools, I use hibernate synchronizer and it works so much better. Just go to the web site and follow instruction.

Sahra


Top
 Profile  
 
 Post subject: PROBLEM SOLVED
PostPosted: Wed Jun 15, 2005 12:01 pm 
Newbie

Joined: Tue Jun 14, 2005 4:23 pm
Posts: 5
Thank you very much.
You are right. I have to upgrade my Eclipse to eclipse 3.1RC2 and now it's working.
Thanks again.


Top
 Profile  
 
 Post subject: Be careful
PostPosted: Wed Jun 15, 2005 12:55 pm 
Newbie

Joined: Tue Jun 14, 2005 4:23 pm
Posts: 5
hibernate synchronizer is use Hibernate 2.* Not 3


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 15, 2005 3:16 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hibernate synchronzier and hibernate tools do different things, so cant compare them that way ,)

the author behind hibernate synchronizer stuff is planning to join us making the missing stuff available in hibernate tools.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 16 posts ]  Go to page 1, 2  Next

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.