-->
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.  [ 3 posts ] 
Author Message
 Post subject: failed to create pojos from oracle schema
PostPosted: Tue Feb 28, 2006 1:07 am 
Newbie

Joined: Mon Feb 27, 2006 4:24 pm
Posts: 5
Hello ,
i am new to hibernate and have a problem.
i get always the following exception on creating java beans from oracle tables.
org.hibernate.exception.GenericJDBCException: Could not get list of tables from database. Propably a JDBC driver problem.

i am using eclipse3.1.2, hibernate 3.1.2, hibernate tools 3.1.0 jsdk 1.4.2.10 and oracle 8i

is there any problem with this configuration?


the config file looks as follows....

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">
oracle.jdbc.driver.OracleDriver
</property>
<property name="hibernate.connection.password">
passwd
</property>
<property name="hibernate.connection.url">
jdbc:oracle:thin:@dbname:1521:po28
</property>
<property name="hibernate.connection.username">userid</property>
<property name="hibernate.default_schema">NVS</property>
<property name="hibernate.dialect">
org.hibernate.dialect.OracleDialect
</property>
</session-factory>
</hibernate-configuration>

Drazil.


Top
 Profile  
 
 Post subject: permissions
PostPosted: Tue Feb 28, 2006 6:10 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
Looks like the user you are connecting with does not have permissions to query and see ORACLE system views.

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 01, 2006 9:18 am 
Newbie

Joined: Mon Feb 27, 2006 4:24 pm
Posts: 5
i've fixed the problem,
by using another oracle jdbc driver. the oracle 8i jdbc driver does not work well with hibernate but ojdbc14.jar for oracle 10g worked well.


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