-->
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: Reverse engineering connection error
PostPosted: Mon Jul 16, 2012 11:19 am 
Newbie

Joined: Mon Jul 16, 2012 11:06 am
Posts: 1
Hello,

I'm trying to reverse engineer my database to hibernate entities in my current Struts 2 project. But i'm facing a problem since when I run the generation I get this :

(translated)
Quote:
org.hibernate.exception.JDBCConnectionException: Getting database metadata
Getting database metadata
org.postgresql.util.PSQLException: The server asked a password authentification but none was provided


The thing is, it was ! And I even could select my tables with the wizard when creating reveng.xml. Here my config :

Code:
<?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">org.postgresql.Driver</property>
        <property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/booxstore</property>
        <property name="hibernate.connection.username">shinosha</property>
        <property name="hibernate.connection.password">****</property>
        <property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
        <property name="hibernate.hbm2ddl.auto">update</property>
    </session-factory>
</hibernate-configuration>


I use PostgreSQL 9.1 (connection role set up with shinosha and **** for pass with booxstore db), latest Hibernate and Eclipse indigo.

Thanks


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.