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.  [ 2 posts ] 
Author Message
 Post subject: erreur de configuration
PostPosted: Wed Apr 12, 2006 5:31 am 
Newbie

Joined: Mon Mar 27, 2006 10:23 am
Posts: 11
j'ai configuré ma base et mes fichiers de mapping
j'ai executé le programme ,et je connecté à la base ,mais lorsque je le refait une autre fois ulterieurement il m'affiche l'exception :
fichier de configuration inextistant


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 15, 2006 6:32 am 
Beginner
Beginner

Joined: Mon Nov 28, 2005 7:16 pm
Posts: 20
Cette réponse vaut pour tout tes autres post :

Vérifie que tu as bien un fichier hibernate.cfg.xml à la racine de ton application et vérifie qu'il est correct.

Je te renvoi à la doc en ligne pour plus d'information : http://www.hibernate.org/hib_docs/refer ... tart-intro


un exemple de fichier de conf :

Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration
    PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">

<hibernate-configuration>

    <session-factory>

        <property name="connection.datasource">java:comp/env/jdbc/quickstart</property>
        <property name="show_sql">false</property>
        <property name="dialect">net.sf.hibernate.dialect.PostgreSQLDialect</property>

        <!-- fichiers de mapping -->
        <mapping resource="Cat.hbm.xml"/>

    </session-factory>

</hibernate-configuration>


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