-->
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.  [ 1 post ] 
Author Message
 Post subject: hibernate.cfg.xml configuration problem
PostPosted: Mon Nov 14, 2011 7:51 am 
Newbie

Joined: Mon Nov 14, 2011 7:38 am
Posts: 1
Hi,

I try to use Reverse Engeneering with NetBeans. My configuration file is this:

<?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.dialect">org.hibernate.dialect.OracleDialect</property>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@host:port:dbname</property>
<property name="hibernate.connection.username">user</property>
<property name="hibernate.connection.password">pass</property>
</session-factory>
</hibernate-configuration>

When i try to create "hibernate.reveng" an error appears:

"Unable to connet to URL using the driver" - "Unable to find a suitable driver".

I wrote a simply class in java and i can connect to the DB:

Class.forName ("oracle.jdbc.OracleDriver");

Connection conn = DriverManager.getConnection
(url);

How i can resolve the problem?


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

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.