-->
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.  [ 6 posts ] 
Author Message
 Post subject: Using hibernate's eclipse console - problems
PostPosted: Fri Feb 18, 2005 3:42 am 
Regular
Regular

Joined: Fri Feb 18, 2005 3:34 am
Posts: 88
Location: Poland/Wrocław
Hi,

Since I have been trying to use eclipse console many times, always unsucesfully, I decided to ask here...

Below is an exception that eclipse console is throwing every time I try to create a session within hibernate console perspective. My question is what exactly do I need to do to start using those tools. Please note I am really new to java and eclipse. However I already have been using NHibernate on .NET platform...

Thanx in advance... Roland

--- exception ---
Error lut 10, 2005 19:30:56.128 Exception while connecting/starting Hibernate
org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading database driverclass (org.firebirdsql.jdbc.FBDriver)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver(ConsoleConfiguration.java:195)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:155)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:128)
at org.hibernate.eclipse.console.actions.BuildSessionFactoryAction.doRun(BuildSessionFactoryAction.java:50)
at org.hibernate.eclipse.console.actions.ConsoleConfigurationBasedAction.run(ConsoleConfigurationBasedAction.java:47)
at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:167)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:555)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:505)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:419)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2803)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2448)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1569)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1540)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:285)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:220)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:710)
at org.eclipse.core.launcher.Main.main(Main.java:694)
Caused by: java.lang.ClassNotFoundException: org.firebirdsql.jdbc.FBDriver
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:404)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:103)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver(ConsoleConfiguration.java:187)
... 27 more


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 18, 2005 6:32 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Did you read and follow the docs ?

if you follow that, especially the part about adding the driver classes to the classpath into the console configuration wizard then you will not get that error message.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 18, 2005 9:46 am 
Regular
Regular

Joined: Fri Feb 18, 2005 3:34 am
Posts: 88
Location: Poland/Wrocław
max wrote:
Did you read and follow the docs ?

if you follow that, especially the part about adding the driver classes to the classpath into the console configuration wizard then you will not get that error message.


In fact I am new to java. Since I find classpath so important I'll read more about java itself.

Could you explain me shortly where do I find the classpath in winXP (Eclipse) and how do I set it .

Or does it mean that it is enouugh to put firebird's JDBC jar file into the hibernate plugin directory?

Thanx in advance.

Roland


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 18, 2005 9:51 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
I dont want to tell you about basic java - that you can find alot of other places.

Regarding this exact classpath, you will find in the wizard you used to setup the hibernate console - its all in the docs. Simply add the jar file to the classpath list in the wizard dialog.

/max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 21, 2005 9:25 am 
Regular
Regular

Joined: Fri Feb 18, 2005 3:34 am
Posts: 88
Location: Poland/Wrocław
max wrote:
Regarding this exact classpath, you will find in the wizard you used to setup the hibernate console ...


Thanx - this single sentence told me to look at console configuration dialog once again...

And I realized that I was blind 'cause there is a very big list for classpath definition.

Thanx once again :-)

_________________
Please rate this post if you've found it helpfull
Roland


Top
 Profile  
 
 Post subject: Re: Using hibernate's eclipse console - problems
PostPosted: Mon Feb 21, 2005 9:34 am 
Newbie

Joined: Mon Feb 21, 2005 8:47 am
Posts: 2
Put all jar files(Hibernate related and Driver related) in lib folder of your projecy directory.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.