Salut les coupains,
je suis en train de me former sur Hibernate (v3), est j'ai un erreur récurrente que je n'arrive pas a résoudre.
Voici mon code : hibernate.cfg.xml
Ma classe principale : test1.java
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
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
33
34
35
36
37
38<!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="connection.url">jdbc:mysql://127.0.0.1/TP_BDD_Projet</property> <property name="connection.username">root</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.pool_size">10</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="connection.password">pass</property> <property name="show_sql">true</property> <property name="hibernate.current_session_context_class">thread</property> <mapping resource="ComporteMatiere.hbm.xml" /> <mapping resource="Libelleclasse.hbm.xml" /> <mapping resource="Matieres.hbm.xml" /> <mapping resource="Vaccination.hbm.xml" /> <mapping resource="Allergie.hbm.xml" /> <mapping resource="SubitAllergie.hbm.xml" /> <mapping resource="EstVaccine.hbm.xml" /> <mapping resource="Classe.hbm.xml" /> <mapping resource="Ancieneleve.hbm.xml" /> <mapping resource="EtudieMatiere.hbm.xml" /> <mapping resource="Note.hbm.xml" /> <mapping resource="Convocation.hbm.xml" /> <mapping resource="Comporteresponsable.hbm.xml" /> <mapping resource="Responsable.hbm.xml" /> <mapping resource="Etablissementprecedent.hbm.xml" /> <mapping resource="Eleve.hbm.xml" /> <mapping resource="Adresse.hbm.xml" /> <mapping resource="Etablissement.hbm.xml" /> <mapping resource="Medecin.hbm.xml" /> </session-factory> </hibernate-configuration>
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Lorsque que je lance le code j'ai cette erreur :
Enfin voici le fichier ComporteMatiere.hbm.xml ou semble se produire l'erreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
12
13
J'ai chercher sur plusieurs forum la solution, mais je n'ai pas trouvé.
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
12
13
14
Merci d'avance

 

 
		
		 
        

 
			
			


 
   


 [Hibernate3 - MySQL] Erreur récurrente "Error parsing XML"
 [Hibernate3 - MySQL] Erreur récurrente "Error parsing XML"
				 Répondre avec citation
  Répondre avec citation
Partager