-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Prb de chargement de la classe Dialect [Résolu]
PostPosted: Thu Apr 05, 2007 10:07 am 
Newbie

Joined: Thu Apr 05, 2007 10:04 am
Posts: 2
Bonjour,

Voici mon problème : Je code un service sous eclipse accédant a une base de donnée via Hibernate. Jusque la tout est nickel, il se lance et marche correctement.
La ou ca se corse c'est quant il me faut deployer ce service sous un server SOAP Tomcat.
Je copie tout mes jar dans le common/lib de tomcat et je fais appel a mon service; celui ci se lance bien mais dès que je veux accéder a une base via hibernate :

Quote:
- JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.5 ( $Date: 2007-03-01 00:01:06 +0100 (Thu, 01 Mar 2007) $, $Revision: 6329 $ )
- Using dialect: org.hibernate.dialect.MySQLDialect
%%%% Error Creating SessionFactory %%%%
org.hibernate.HibernateException: Could not instantiate dialect class
at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:84)


Ma lib mysql-connector.jar contenant org.hibernate.dialect.MySQLDialect est bien sous le common/lib mais il n'a pas l'air d'arriver la charger. Remarquez qu'il trouve la version du connector quand même... Il la charge un peu mais pas trop !!!
Je pencherais pour une grossière erreur d'inclusion de jar mais la franchement je vois plus ...
A vous les spécialistes ...


Last edited by pckado on Fri Apr 20, 2007 11:16 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 11:46 am 
Expert
Expert

Joined: Thu Sep 04, 2003 8:23 am
Posts: 368
Ne serait-ce pas un prolbème de classloader. Si tu mets le jar dans web-inf/lib que se passe t'il.
Si on regarde la ligne incriminée dans le source d'hibernate il y a une exception cause. Il faudrait que tu la récupères (via un log ou au debug) pour savoir de quoi ça vient exactement

_________________
Seb
(Please don't forget to give credits if you found this answer useful :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 20, 2007 11:15 am 
Newbie

Joined: Thu Apr 05, 2007 10:04 am
Posts: 2
Effectivement ca marche nickel le coup du WEB-INF/lib. Merci de ton aide.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.