Hello à tous,

J'ai un problème avec hibernate.
J'ai tout configuré, il me semble correctement, et quand je démarre le serveur tomcat j'ai l'erreur suivante que je n'arrive pas à résoudre :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
GRAVE: Initial SessionFactory creation failed.net.sf.hibernate.MappingException: Bad identifier type: net.sf.hibernate.type.ComponentType
Il a l'air de me faire tout les mapping (dans la console) et l'erreur vient une fois qu'il a parcouru toute les tables de la base.

Dans hibernate configurations, il m'affiche bien toutes les tables....

Configuration actuelle :

Tomcat 6.0
Hibernate tools 3.2
Eclipse Europa

Extrait de hibernate.cfg.xml :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
<?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 name="session">
        <property name="hibernate.bytecode.use_reflection_optimizer">false</property>
        <property name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property>
        <property name="hibernate.connection.password">mdp</property>
        <property name="hibernate.connection.url">jdbc:mysql://X.X.X.X:3306/BASE</property>
        <property name="hibernate.connection.username">root</property>
        <property name="hibernate.default_schema">BASE</property>
        <property name="hibernate.dialect">net.sf.hibernate.dialect.MySQLDialect</property>
 
        <!-- Use the C3P0 connection pool. -->
        <property name="c3p0.min_size">3</property>
        <property name="c3p0.max_size">5</property>
        <property name="c3p0.timeout">1800</property>
 
        <!-- Print SQL to stdout. -->
        <property name="show_sql">true</property>
        <property name="format_sql">true</property>
 
        <!-- Drop and then re-create schema on SessionFactory build, for testing. -->
        <property name="hbm2ddl.auto">create</property>
 
        <!-- Bind the getCurrentSession() method to the thread. -->
        <property name="current_session_context_class">thread</property>
 
        <mapping resource="model/Table1.hbm.xml" />
       .....
Je vous remercie de l'aide que vous pourrez m'apporter !!