Hibernate,mysql et java ......

bensalaa Messages postés 4 Date d'inscription lundi 22 mars 2004 Statut Membre Dernière intervention 6 décembre 2005 - 5 déc. 2005 à 17:42
super_toinou Messages postés 764 Date d'inscription mardi 25 mai 2004 Statut Membre Dernière intervention 8 mars 2011 - 7 déc. 2005 à 09:43
Hakoloco



Salut tous le monde, j'utilise Hibernate pour persister ma base de
donnée mysql et pour afficher une requete, j'obtiens cette erreur!!

Quelqu'un a deja rencontré cette erreur, j'ai peut etre oublié une
manipe,En faite c'est un exemple d'application que j'ai trouvé sur le
net, utilisé avec eclipse et un plugin d'Hibernate.





Merci pour l'aide, d'avance.



Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by
java.lang.NullPointerException) (Caused by
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by
java.lang.NullPointerException))

at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)

at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)

at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)

at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)

at net.sf.hibernate.cfg.Configuration.<clinit>(Configuration.java:94)

... 2 more

Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by
java.lang.NullPointerException)

at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)

at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)

... 6 more

Caused by: java.lang.NullPointerException

at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:374)

... 7 more

3 réponses

super_toinou Messages postés 764 Date d'inscription mardi 25 mai 2004 Statut Membre Dernière intervention 8 mars 2011 6
6 déc. 2005 à 13:42
t utilise Log4J ds ton application
parce que ca a l air d etre ca qui merde !!
0
bensalaa Messages postés 4 Date d'inscription lundi 22 mars 2004 Statut Membre Dernière intervention 6 décembre 2005
6 déc. 2005 à 15:35
J'en ai aucunues idées ! !
Qu'est ce qu'il faut que je fasse alors ?
Merci.


Hakoloco
0
super_toinou Messages postés 764 Date d'inscription mardi 25 mai 2004 Statut Membre Dernière intervention 8 mars 2011 6
7 déc. 2005 à 09:43
met le jar de Log4J dans le classpath de ton projet (il devra etre ds les lib de ton web inf) ca peut peut etre marcher !!!

http://logging.apache.org/log4j/docs/index.html

je pense qu hibernate cherche a instancier ses log mais qu il ne trouve pas les factory de log (et a mon avis elles doivent etre dans le jar de log4j)

si c pas ca reviens faire un tour pr le dire

++ Toinou
0
Rejoignez-nous
A voir également