Problème avec mapping via Hibernate Synchronizer
Bonjour,
Je souhaite faire un projet avec hibernate (hibernate-release-4.1.2.Final), j'utilise eclispe et j'ai installer le plug-in Hibernate Synchroniser 2.3.1, j'utilise Windows Seven, j'utilise wamp pour avoir MySql en local. Voilà, je crois que c'est bon pour résumé ma configuration, je décris maintenant mon problème :
Sur mon projet j'ai fais new Hibernate>Hibernate Configuration file , voici la configuration :
.hibernateSynchronizer :
Code:
1 2 3 4
| databaseUrl=jdbc://mysql://localhost/gestionParoisse
driver=com.mysql.jdbc.Driver
username=root
ConfigurationFile=\GestionParoisse\src\hibernate.cfg.xml |
hibernate.cfg.xml :
Code:
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
| <?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 >
<!-- local connection properties -->
<property name="hibernate.connection.url">jdbc://mysql://localhost/gestionParoisse</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password"></property>
<!-- property name="hibernate.connection.pool_size"></property -->
<!-- dialect for MySQL -->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.show_sql">false</property>
<property name="hibernate.use_outer_join">true</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="jta.UserTransaction">java:comp/UserTransaction</property>
<mapping resource="messe.hbm.xml"/>
</session-factory>
</hibernate-configuration> |
J'ai importé sur mon projet les fichier suivant :
Code:
1 2 3 4 5 6 7 8 9 10
|
antlr-2.7.7.jar
dom4j-1.6.1.jar
hibernate-commons-annotations-4.0.1.Final.jar
hibernate-core-4.1.2.Final.jar
hibernate-jpa-2.0-api-1.0.1.Final.jar
javassist-3.15.0-GA.jar
jboss-logging-3.1.0.GA.jar
jboss-transaction-api_1.1_spec-1.0.0.Final.jar
mysql-connector-java-5.1.18-bin.jar |
sous Mysql, j'ai crée une BDD "gestionParoisse" & sous Window Seven j'ai crée un ODBC MySql (fonctionne en cliquant sur test via l'interface ODBC/Connector )
J'ai ensuite fais new Hibernate > Hibernate Mapping File est là quand je clique sur Refresh j'ai l'erreur suivant (sous forme de boite de dialogue) :
Code:
this is most due to the URL not matching the expected value the JDBC driver. Please verify your settings.
j'ai aussi testé en remplaçant 'localhost' par 'localhost:3306' et e problème persiste
PS : j'ai fait le tour sur internet et je trouve pas la solution, merci de bien vouloir résoudre mon problème et j’espère avoir donner tout les information nécessaire, je vous remercie d'avance