Salut,
Lors de mon demarrage de mon appli proto utilisant hibernate j'obtiens une erreur strange:
Pouvez vous m'aider ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 Caused by: org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. at org.dom4j.io.SAXReader.read(SAXReader.java:482) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1484) ... 3 more
Mon fichier de configuration est assez simple:
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 <?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">oracle.jdbc.driver.OracleDriver</property> <property name="hibernate.connection.password">x</property> <property name="hibernate.connection.url">jdbc:oracle:thin:@xx:1521:osb10201</property> <property name="hibernate.connection.username">x</property> <property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property> <property name="connection.pool_size">1</property> <property name="show_sql">true</property> <mapping resource="net/xx/business/Rma.hbm.xml"/> </session-factory> </hibernate-configuration>
Partager