-->
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.  [ 10 posts ] 
Author Message
 Post subject: NoClassDefFoundError: ConsoleConfigurationPreferences why?
PostPosted: Wed Feb 21, 2007 7:49 am 
Beginner
Beginner

Joined: Sun Sep 04, 2005 3:10 am
Posts: 24
Location: CH
Hello,
I am a Hibernate Newby and an Eclipse Midby.
I have just installed Hibernate and Hibernate Tools
Hibernate version: 3.2.2 GA, Hibernate Tools 3.2 beta9, Eclipse 3.2.1
eclipse.buildId=M20060921-0945
java.version=1.4.2_12
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_CH
Command-line arguments: -os win32 -ws win32 -arch x86

Whatever I do after installation I receive the below NoClassDefFoundError in
Code:
org.eclipse.ui

Does anybody have an idea what I have done wrong?

Full stack trace of any exception that occurs:
Code:
java.lang.NoClassDefFoundError: org/hibernate/console/preferences/ConsoleConfigurationPreferences$ConfigurationMode
   at org.hibernate.eclipse.console.wizards.ConsoleConfigurationWizardPage.getConfigurationMode(ConsoleConfigurationWizardPage.java:797)
   at org.hibernate.eclipse.console.wizards.ConsoleConfigurationWizardPage.dialogChanged(ConsoleConfigurationWizardPage.java:663)
   at org.hibernate.eclipse.console.wizards.ConsoleConfigurationWizardPage.createControl(ConsoleConfigurationWizardPage.java:168)
   at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:180)
   at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:614)
   at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:502)
   at org.eclipse.jface.window.Window.create(Window.java:426)
   at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1124)
   at org.eclipse.jface.window.Window.open(Window.java:785)
   at org.hibernate.eclipse.console.actions.AddConfigurationAction.doAddConfiguration(AddConfigurationAction.java:56)
   at org.hibernate.eclipse.console.actions.AddConfigurationAction.run(AddConfigurationAction.java:49)
   at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
   at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
   at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
   at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441)
   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.java:3348)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
   at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
   at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.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(EclipseStarter.java:400)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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 in advance,
chk


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 21, 2007 8:48 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
do you by chance have any old/conflicting plugins installed ?

previous hibernate tools versions or e.g. myeclipse fork?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Not that I would be aware of ...
PostPosted: Wed Feb 21, 2007 10:30 am 
Beginner
Beginner

Joined: Sun Sep 04, 2005 3:10 am
Posts: 24
Location: CH
max wrote:
do you by chance have any old/conflicting plugins installed ?

previous hibernate tools versions or e.g. myeclipse fork?

Salut Max,
besides the latest eclipse (3.2.1), I do only have exadel studio 4.x (NOT pro) installed. That's all.

Could it be because the configuration has not been done properly? Which config filey would be necessary to have a complete console configuration?

Regards, chk


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 21, 2007 10:42 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
it is complaining about a class which is definitly in the distribution of b9; so not sure what it is complaining about ;( (and I know others have used it without problems)

could you try and run it in the a clean eclipse ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: It works with a clean version
PostPosted: Wed Feb 21, 2007 11:15 am 
Beginner
Beginner

Joined: Sun Sep 04, 2005 3:10 am
Posts: 24
Location: CH
Hello Max,
good hint!
I do not have problems with a clean version.
Do you have a hint for recociliating those two plugins?

Regards, chk


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 21, 2007 11:19 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
i think Exadel bundles a version of the hibernate tools plugins.

Try and remove those old ones and you should avoid any conflicts.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Indeed, they do not like each other
PostPosted: Wed Feb 21, 2007 11:42 am 
Beginner
Beginner

Joined: Sun Sep 04, 2005 3:10 am
Posts: 24
Location: CH
Hi Max,
now I had redirected Exadel to the new eclipse+hibernate tools installation (in file re.properties).
In the new workspace I opened a new J2EE-project, linked it with a J2EE Perspective and ... knack .... I could not add a new hibernate configuration to it. I received an error message, saying that it cannot save the ConsoleConfigurationPreferences.

So: one cannot use the two together. Thankyou for the hint. Where can I rate you?
:-)

Regards, chk


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 21, 2007 11:46 am 
Beginner
Beginner

Joined: Sun Sep 04, 2005 3:10 am
Posts: 24
Location: CH
max wrote:
i think Exadel bundles a version of the hibernate tools plugins.

Try and remove those old ones and you should avoid any conflicts.
I just saw your posting.
Exadel has bundled hibernate tools 3.2.06. I will try as you said above.
chk


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 21, 2007 11:48 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
did you physically remove the exadel distributed org.hibernate plugins/features ?

the two products should work fine together ..

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Now it works
PostPosted: Sat Feb 24, 2007 6:03 am 
Beginner
Beginner

Joined: Sun Sep 04, 2005 3:10 am
Posts: 24
Location: CH
So, now finally it works.
Max, indeed you were right. I have exchanged the Exadel incorporated Hibernate tool part (3.0.2.beta6) with the Hibernate tool part (3.0.2.beta9) and then everything went fine.
Thanks again.

Regards, chk


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

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.