Fw: topia-contexte hibernate exception
Je forward ton message sur topia-devel, car je n'ai pas le temps de te repondre, et il y a d'autres personnes qui peuvent repondre. ----- Message Transféré ----- Date: Fri, 27 Feb 2009 12:53:07 +0000 De: Erwan Nema <nemawan@hotmail.com> Ã: <poussin@codelutin.com>, <zhykos@gmail.com> Sujet: topia-contexte hibernate exception Bonjour nous sommes toujours bloqués sur la connexion à la BDD H2. pour nos tests nous utilisons un projet maven simple (sans modules) et un diagramme argoUML contenant une seul classe entity. les fichiers de mappings sont correctement générés. le fichier de property H2 est correctement chargé. la tentative de création de l'entité génère l'exception suivante : Chargement du fichier de properties hibernate.hbm2ddl.auto:create hibernate.dialect:org.hibernate.dialect.H2Dialect Context loaded..... WARN [main] (UserSuppliedConnectionProvider.java:46) configure - No connection properties specified - the user must supply JDBC connections org.hibernate.HibernateException: Hibernate Dialect must be explicitly set at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:80) at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:62) at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:460) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:155) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325) at org.codelutin.topia.framework.TopiaContextImpl.getHibernateFactory(TopiaContextImpl.java:450) at org.codelutin.topia.framework.TopiaContextImpl.beginTransaction(TopiaContextImpl.java:663) at org.codelutin.pollen.TestPersistence.persist(TestPersistence.java:40) at org.codelutin.pollen.TestPersistence.main(TestPersistence.java:66) Vous trouverez joint notre projet (pom,zargo,classe de test ) ainsi qu'une trace du classpath parallélement nous avons posté ce problème sur la liste Topia user. merci de votre aide Cordialement Erwan Nema _________________________________________________________________ Téléphonez gratuitement à tous vos proches avec Windows Live Messenger ! Téléchargez-le maintenant ! http://www.windowslive.fr/messenger/1.asp -- Benjamin -------------------- tél: +33 (0) 2 40 50 29 28 email: poussin@codelutin.com () campagne du ruban ascii http://www.codelutin.com /\ pour les mails en ascii
Salut Erwan, Visiblement, il y a un problème de personnalisation des fichier ContetxImpl.properties. (cf la réponse d'Éric) Dans votre code, j'ai viré l'objet 'conf', renommé h2.TopieContextImpl.properties sans le (h2.), et ca marche. J'ai aussi changé le jdbc:h2:file://pollen en jdbc:h2:file:/tmp/pollen pour des raisons de permissions. Et sinon, pour que ca fonctionne j'ai du retirer le schema="Pollen" dans le fichier .hbm.xml J'ai peur que H2 ne gère pas vraiment les schémas, donc je vous déconseille ça pour le moment : model.tagvalue.dbSchema=Pollen (user.properties) Voilà, Arnaud. Benjamin POUSSIN a écrit :
Je forward ton message sur topia-devel, car je n'ai pas le temps de te repondre, et il y a d'autres personnes qui peuvent repondre.
----- Message Transféré -----
Date: Fri, 27 Feb 2009 12:53:07 +0000 De: Erwan Nema <nemawan@hotmail.com> Ã: <poussin@codelutin.com>, <zhykos@gmail.com> Sujet: topia-contexte hibernate exception
Bonjour nous sommes toujours bloqués sur la connexion à la BDD H2. pour nos tests nous utilisons un projet maven simple (sans modules) et un diagramme argoUML contenant une seul classe entity. les fichiers de mappings sont correctement générés. le fichier de property H2 est correctement chargé. la tentative de création de l'entité génère l'exception suivante :
Chargement du fichier de properties hibernate.hbm2ddl.auto:create hibernate.dialect:org.hibernate.dialect.H2Dialect Context loaded..... WARN [main] (UserSuppliedConnectionProvider.java:46) configure - No connection properties specified - the user must supply JDBC connections org.hibernate.HibernateException: Hibernate Dialect must be explicitly set at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:80) at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:62) at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:460) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:155) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325) at org.codelutin.topia.framework.TopiaContextImpl.getHibernateFactory(TopiaContextImpl.java:450) at org.codelutin.topia.framework.TopiaContextImpl.beginTransaction(TopiaContextImpl.java:663) at org.codelutin.pollen.TestPersistence.persist(TestPersistence.java:40) at org.codelutin.pollen.TestPersistence.main(TestPersistence.java:66)
Vous trouverez joint notre projet (pom,zargo,classe de test ) ainsi qu'une trace du classpath
parallélement nous avons posté ce problème sur la liste Topia user. merci de votre aide
Cordialement
Erwan Nema
_________________________________________________________________ Téléphonez gratuitement à tous vos proches avec Windows Live Messenger ! Téléchargez-le maintenant ! http://www.windowslive.fr/messenger/1.asp
-- Benjamin -------------------- tél: +33 (0) 2 40 50 29 28 email: poussin@codelutin.com () campagne du ruban ascii http://www.codelutin.com /\ pour les mails en ascii
------------------------------------------------------------------------
Bonjour nous sommes toujours bloqu�s sur la connexion � la BDD H2. pour nos tests nous utilisons un projet maven simple (sans modules) et un diagramme argoUML contenant une seul classe entity. les fichiers de mappings sont correctement g�n�r�s. le fichier de property H2 est correctement charg�. la tentative de cr�ation de l'entit� g�n�re l'exception suivante :
Chargement du fichier de properties hibernate.hbm2ddl.auto:create hibernate.dialect:org.hibernate.dialect.H2Dialect Context loaded..... WARN [main] (UserSuppliedConnectionProvider.java:46) configure - No connection properties specified - the user must supply JDBC connections org.hibernate.HibernateException: Hibernate Dialect must be explicitly set at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:80) at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:62) at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:460) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:155) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325) at org.codelutin.topia.framework.TopiaContextImpl.getHibernateFactory(TopiaContextImpl.java:450) at org.codelutin.topia.framework.TopiaContextImpl.beginTransaction(TopiaContextImpl.java:663) at org.codelutin.pollen.TestPersistence.persist(TestPersistence.java:40) at org.codelutin.pollen.TestPersistence.main(TestPersistence.java:66)
Vous trouverez joint notre projet (pom,zargo,classe de test ) ainsi qu'une trace du classpath
parall�lement nous avons post� ce probl�me sur la liste Topia user. merci de votre aide
Cordialement
Erwan Nema
------------------------------------------------------------------------ Discutez sur Messenger o� que vous soyez ! Mettez Messenger sur votre mobile ! <http://www.messengersurvotremobile.com/> ------------------------------------------------------------------------
_______________________________________________ Topia-devel mailing list Topia-devel@lists.labs.libre-entreprise.org http://lists.labs.libre-entreprise.org/mailman/listinfo/topia-devel
-- Société Code Lutin http://www.codelutin.com tel : 02 40 50 29 28 fax : 09 59 92 29 28
participants (2)
-
Arnaud Thimel -
Benjamin POUSSIN