-->
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.  [ 15 posts ] 
Author Message
 Post subject: JDBC driver not loaded
PostPosted: Mon Jul 18, 2005 6:39 am 
Newbie

Joined: Mon Jul 18, 2005 6:35 am
Posts: 9
i've install the tools from hibernate, and i want to use hibernate console.
The problem is that it's giving me this error:

org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading database driverclass (oracle.jdbc.Oracle)

Where do i have to put the classes so that hibernate console can connect to Oracle ?

Best regards
NTony


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 18, 2005 7:25 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you need to add the jdbc driver to the classpath of the console configuration as specified in the docs and the wizard ,)

-max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 3:58 am 
Newbie

Joined: Mon Jul 18, 2005 6:35 am
Posts: 9
Where?

I've tried to put the jar into the lib directori (and add the path to plugin.xlm).
But nothing.
I've all tryed to changed the hibernate.connection.driver_class.
If i change it to a class that start with org and the class is into a jar from the lib directory is working(error: class cast exception), but if the class does is not in the org pakage then is not working.

Best regards
NTony


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 4:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
why are you messing with plugin.xml when I say you need to specify it for the classpath of your console configuration ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 4:34 am 
Newbie

Joined: Mon Jul 18, 2005 6:35 am
Posts: 9
can you tell exacly where?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 4:40 am 
Newbie

Joined: Mon Jul 18, 2005 6:35 am
Posts: 9
console.custom.classpath ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 4:54 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
it is in the wizard for the console configuration!

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 4:55 am 
Newbie

Joined: Mon Jul 18, 2005 6:35 am
Posts: 9
It's wporking but i'm getting:
org.hibernate.HibernateException: The dialect was not set. Set the property hibernate.dialect
i've put hibernate.dialect.=org.hibernate.dialect.OracleDialec into the properties file.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 4:58 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
and you have pointed to the exact same hibernate.properties inside the wizard ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 5:21 am 
Newbie

Joined: Mon Jul 18, 2005 6:35 am
Posts: 9
i have a hibernateconsole.properties file:

console.custom.classpath=E:/../classes;C:/oracle/ora90/jdbc/lib/classes12.jar;
console.hibernate.properties=E:/../oracle-hibernate.properties


And the oracle-hibernate.properties file:

hibernate.connection.driver_class=oracle.jdbc.Oracle
hibernate.connection.url=jdbc:oracle:oci:@cls817
hibernate.connection.username=xxx
hibernate.connection.password=xxx
hibernate.dialect=org.hibernate.dialect.OracleDialec
hibernate.show_sql=true


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 5:27 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
org.hibernate.dialect.OracleDialec is missing a t at the end

should be org.hibernate.dialect.OracleDialect

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 5:34 am 
Newbie

Joined: Mon Jul 18, 2005 6:35 am
Posts: 9
it's not working

hibernate.dialect=org.hibernate.dialect.OracleDialect


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 5:37 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
can you make a sreenshot of the console configuration wizard?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 5:50 am 
Newbie

Joined: Mon Jul 18, 2005 6:35 am
Posts: 9
please give me a email to send the image.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 5:54 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you can use Image or if you really must, click the email button under my user name.[/img]

_________________
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.  [ 15 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.